Skip to content

Commit ac968dc

Browse files
committed
Adopt new ConstantWriteNode node
1 parent edff900 commit ac968dc

11 files changed

+46
-43
lines changed

spec/truffle/parsing/fixtures/rescue/capturing/with_attribute.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
subject: "Rescue keyword"
22
description: "capturing / with an attribute"
3-
yarp_specific: true
3+
yarp_specific: true # an AssignRescueVariableNode node is introduced
44
notes: >
55
Capturing exception to a setter is represented as a `a.foo=()` method call.
66

spec/truffle/parsing/fixtures/rescue/capturing/with_class_variable.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
subject: "Rescue keyword"
22
description: "capturing / with a class variable"
3-
yarp_specific: true
3+
yarp_specific: true # an AssignRescueVariableNode node is introduced
44
notes: >
55
A class variable capturing is represented with the following simplified AST:
66

spec/truffle/parsing/fixtures/rescue/capturing/with_constant.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
subject: "Rescue keyword"
22
description: "capturing / with a constant"
3-
yarp_specific: true
3+
yarp_specific: true # an AssignRescueVariableNode node is introduced
44
notes: >
55
A constant capturing is represented with the following simplified AST:
66
@@ -72,7 +72,7 @@ ast: |
7272
DeadNode
7373
attributes:
7474
flags = 0
75-
reason = "YARPTranslator#visitConstantPathWriteNode"
75+
reason = "YARPTranslator#visitConstantWriteNode"
7676
IntegerFixnumLiteralNode
7777
attributes:
7878
flags = 1

spec/truffle/parsing/fixtures/rescue/capturing/with_constant_and_lexical_parent.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
subject: "Rescue keyword"
22
description: "capturing / with a constant with lexical parent (A::B)"
3-
yarp_specific: true
3+
yarp_specific: true # an AssignRescueVariableNode node is introduced
44
notes: >
55
A constant capturing is represented with the following simplified AST:
66

spec/truffle/parsing/fixtures/rescue/capturing/with_constant_fully_qualified.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
subject: "Rescue keyword"
22
description: "capturing / with a fully qualified constant (::A)"
3-
yarp_specific: true
3+
yarp_specific: true # an AssignRescueVariableNode node is introduced
44
notes: >
55
A constant capturing is represented with the following simplified AST:
66

spec/truffle/parsing/fixtures/rescue/capturing/with_constant_fully_qualified_and_lexical_parent.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
subject: "Rescue keyword"
22
description: "capturing / with a constant with fully qualified lexical parent (::A::B)"
3-
yarp_specific: true
3+
yarp_specific: true # an AssignRescueVariableNode node is introduced
44
notes: >
55
A constant capturing is represented with the following simplified AST:
66

spec/truffle/parsing/fixtures/rescue/capturing/with_element_reference.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
subject: "Rescue keyword"
22
description: "capturing / with element reference"
3-
yarp_specific: true
3+
yarp_specific: true # an AssignRescueVariableNode node is introduced
44
notes: >
55
Capturing exception to element reference is represented as a `a.[]=()` method call.
66

spec/truffle/parsing/fixtures/rescue/capturing/with_global_variable.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
subject: "Rescue keyword"
22
description: "capturing / with a global variable"
3-
yarp_specific: true
3+
yarp_specific: true # an AssignRescueVariableNode node is introduced
44
notes: >
55
A global variable capturing is represented with the following simplified AST:
66

spec/truffle/parsing/fixtures/rescue/capturing/with_instance_variable.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
subject: "Rescue keyword"
22
description: "capturing / with an instance variable"
3-
yarp_specific: true
3+
yarp_specific: true # an AssignRescueVariableNode node is introduced
44
notes: >
55
An instance variable capturing is represented with the following simplified AST:
66

spec/truffle/parsing/fixtures/rescue/capturing/with_local_variable.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
subject: "Rescue keyword"
22
description: "capturing / with a local variable"
3-
yarp_specific: true
3+
yarp_specific: true # an AssignRescueVariableNode node is introduced
44
notes: >
55
A local variable is represented with the following simplified AST:
66

0 commit comments

Comments
 (0)