Skip to content

Commit e4932d1

Browse files
committed
Focus on RubyTopLevelRootNode by default in parsing tests
1 parent 8cf1dbd commit e4932d1

23 files changed

+33
-23
lines changed

spec/truffle/parsing/fixtures/BEGIN/BEGIN.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ notes: >
88
a
99
b
1010
```
11-
focused_on_node: "org.truffleruby.language.RubyTopLevelRootNode"
1211
ruby: |
1312
b
1413
BEGIN {

spec/truffle/parsing/fixtures/BEGIN/when_multiple_occurrences.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ notes: >
99
b
1010
c
1111
```
12-
focused_on_node: "org.truffleruby.language.RubyTopLevelRootNode"
1312
ruby: |
1413
BEGIN {
1514
a

spec/truffle/parsing/fixtures/TOPLEVEL_BINDING.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ subject: "TOPLEVEL_BINDING"
22
description: TOPLEVEL_BINDING constant is defined in main Ruby script
33
notes: >
44
TOPLEVEL_BINDING is defined by SetTopLevelBindingNode node
5-
focused_on_node: "org.truffleruby.language.RubyTopLevelRootNode"
65
main_script: true
76
ruby: |
87
a = 1

spec/truffle/parsing/fixtures/__END__.yaml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ subject: "__END__"
22
description: Presence of __END__ in main Ruby script means a DATA constant should be defined
33
notes: >
44
DATA is defined by DataNode node
5-
focused_on_node: "org.truffleruby.language.RubyTopLevelRootNode"
65
main_script: true
76
ruby: |
87
a = 1

spec/truffle/parsing/fixtures/for/multi_assignment/with_multiple_variables.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
subject: "For operator"
22
description: "multi-assignment / with multiple variables (for a, b, c in [])"
3-
focused_on_node: "org.truffleruby.language.RubyTopLevelRootNode" # to dump local variable declarations in outer scope
3+
notes: >
4+
Focus on RubyTopLevelRootNode (default behaviour) to dump local variable declarations in outer scope
45
ruby: |
56
for a, b, c in [42, 100500]
67
array = [a, b, c]

spec/truffle/parsing/fixtures/for/multi_assignment/with_nested_multi_assignment.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
subject: "For operator"
22
description: "multi-assignment / with nested multi assignment (for a, (b, c) in [])"
3-
focused_on_node: "org.truffleruby.language.RubyTopLevelRootNode" # to dump local variable declarations in outer scope
3+
notes: >
4+
Focus on RubyTopLevelRootNode (default behaviour) to dump local variable declarations in outer scope
45
ruby: |
56
for a, (b, c) in [42, 100500]
67
array = [a, b, c]

spec/truffle/parsing/fixtures/for/multi_assignment/with_preceding_splat_operator_and_following_variables.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
subject: "For operator"
22
description: "multi-assignment / with preceding variables, splat operator and following variables (for a, *b, c in [])"
3-
focused_on_node: "org.truffleruby.language.RubyTopLevelRootNode" # to dump local variable declarations in outer scope
3+
notes: >
4+
Focus on RubyTopLevelRootNode (default behaviour) to dump local variable declarations in outer scope
45
ruby: |
56
for a, *b, c in [42, 100500]
67
array = [a, b, c]

spec/truffle/parsing/fixtures/for/multi_assignment/with_preceding_variables_and_implicit_rest.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
subject: "For operator"
22
description: "multi-assignment / with preceding variables and implicit rest (for a, in [])"
3-
focused_on_node: "org.truffleruby.language.RubyTopLevelRootNode" # to dump local variable declarations in outer scope
3+
notes: >
4+
Focus on RubyTopLevelRootNode (default behaviour) to dump local variable declarations in outer scope
45
ruby: |
56
for a, in [42, 100500]
67
b = a

spec/truffle/parsing/fixtures/for/multi_assignment/with_preceding_variables_and_splat_operator.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
subject: "For operator"
22
description: "multi-assignment / with preceding variables and splat operator (for a, b, *c in [])"
3-
focused_on_node: "org.truffleruby.language.RubyTopLevelRootNode" # to dump local variable declarations in outer scope
3+
notes: >
4+
Focus on RubyTopLevelRootNode (default behaviour) to dump local variable declarations in outer scope
45
ruby: |
56
for a, b, *c in [42, 100500]
67
array = [a, b, c]

spec/truffle/parsing/fixtures/for/multi_assignment/with_splat_operator_and_following_variables.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
subject: "For operator"
22
description: "multi-assignment / with splat operator and following variables (for *a, b, c in [])"
3-
focused_on_node: "org.truffleruby.language.RubyTopLevelRootNode" # to dump local variable declarations in outer scope
3+
notes: >
4+
Focus on RubyTopLevelRootNode (default behaviour) to dump local variable declarations in outer scope
45
ruby: |
56
for *a, b, c in [42, 100500]
67
array = [a, b, c]

0 commit comments

Comments
 (0)