Skip to content

Commit c21b2e1

Browse files
andrykonchineregon
authored andcommitted
[GR-45043] Handle YARP syntax errors and warnings
PullRequest: truffleruby/3931
2 parents 00c2b82 + 7fbed11 commit c21b2e1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+2584
-2189
lines changed

doc/contributor/yarp.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
* Clone `yarp` as a sibling of `truffleruby-ws`.
66
* Run `tool/import-yarp.sh` in the truffleruby repo.
7-
* Commit the result with message `Import Shopify/yarp@COMMIT`
7+
* Commit the result with message `Import ruby/yarp@COMMIT`
88

99
## Print Detailed YARP AST
1010

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

0 commit comments

Comments
 (0)