Skip to content

Commit 6ccd34a

Browse files
committed
Regenerate parsing fixtures
* With: OVERWRITE_PARSING_RESULTS=true TRUFFLE_PARSING_USE_ORIGINAL_TRANSLATOR=true jt mspec spec/truffle/parsing/parsing_spec.rb OVERWRITE_PARSING_RESULTS=true jt test spec/truffle/parsing/parsing_spec.rb
1 parent cfc3865 commit 6ccd34a

File tree

48 files changed

+139
-138
lines changed

Some content is hidden

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

48 files changed

+139
-138
lines changed

spec/truffle/parsing/fixtures/BEGIN.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ ast: |
1919
WriteLocalVariableNode
2020
attributes:
2121
flags = 0
22-
frameSlot = 0
22+
frameSlot = 0 # (self)
2323
children:
2424
valueNode =
2525
ProfileArgumentNodeGen

spec/truffle/parsing/fixtures/END.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ ast: |
8282
WriteLocalVariableNode
8383
attributes:
8484
flags = 0
85-
frameSlot = 0
85+
frameSlot = 0 # (self)
8686
children:
8787
valueNode =
8888
ProfileArgumentNodeGen

spec/truffle/parsing/fixtures/begin_end_block.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ ast: |
2121
WriteLocalVariableNode
2222
attributes:
2323
flags = 0
24-
frameSlot = 0
24+
frameSlot = 0 # (self)
2525
children:
2626
valueNode =
2727
ProfileArgumentNodeGen

spec/truffle/parsing/fixtures/block/argument_descriptors/with_implicit_rest_parameter.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ast: |
5959
WriteLocalVariableNode
6060
attributes:
6161
flags = 0
62-
frameSlot = 3
62+
frameSlot = 3 # %destructure_1
6363
children:
6464
valueNode =
6565
SplatCastNodeGen
@@ -94,7 +94,7 @@ ast: |
9494
ReadLocalVariableNode
9595
attributes:
9696
flags = 0
97-
frameSlot = 3
97+
frameSlot = 3 # %destructure_1
9898
type = FRAME_LOCAL
9999
]
100100
elseBody =
@@ -106,7 +106,7 @@ ast: |
106106
WriteLocalVariableNode
107107
attributes:
108108
flags = 0
109-
frameSlot = 0
109+
frameSlot = 0 # (self)
110110
children:
111111
valueNode =
112112
ProfileArgumentNodeGen
@@ -120,7 +120,7 @@ ast: |
120120
WriteLocalVariableNode
121121
attributes:
122122
flags = 0
123-
frameSlot = 1
123+
frameSlot = 1 # a
124124
children:
125125
valueNode =
126126
ProfileArgumentNodeGen
@@ -137,7 +137,7 @@ ast: |
137137
WriteLocalVariableNode
138138
attributes:
139139
flags = 0
140-
frameSlot = 2
140+
frameSlot = 2 # %anonymous_rest
141141
children:
142142
valueNode =
143143
ReadRestArgumentNode
@@ -157,7 +157,7 @@ ast: |
157157
WriteLocalVariableNode
158158
attributes:
159159
flags = 0
160-
frameSlot = 0
160+
frameSlot = 0 # (self)
161161
children:
162162
valueNode =
163163
ProfileArgumentNodeGen
@@ -171,7 +171,7 @@ ast: |
171171
WriteLocalVariableNode
172172
attributes:
173173
flags = 0
174-
frameSlot = 1
174+
frameSlot = 1 # a
175175
children:
176176
valueNode =
177177
ArrayIndexNodesFactory$ReadConstantIndexNodeGen
@@ -183,12 +183,12 @@ ast: |
183183
ReadLocalVariableNode
184184
attributes:
185185
flags = 0
186-
frameSlot = 3
186+
frameSlot = 3 # %destructure_1
187187
type = FRAME_LOCAL
188188
WriteLocalVariableNode
189189
attributes:
190190
flags = 0
191-
frameSlot = 2
191+
frameSlot = 2 # %anonymous_rest
192192
children:
193193
valueNode =
194194
ArraySliceNodeGen
@@ -201,7 +201,7 @@ ast: |
201201
ReadLocalVariableNode
202202
attributes:
203203
flags = 0
204-
frameSlot = 3
204+
frameSlot = 3 # %destructure_1
205205
type = FRAME_LOCAL
206206
]
207207
NilLiteralNode

spec/truffle/parsing/fixtures/block/arity/with_implicit_rest_parameter.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ ast: |
5959
WriteLocalVariableNode
6060
attributes:
6161
flags = 0
62-
frameSlot = 3
62+
frameSlot = 3 # %destructure_1
6363
children:
6464
valueNode =
6565
SplatCastNodeGen
@@ -94,7 +94,7 @@ ast: |
9494
ReadLocalVariableNode
9595
attributes:
9696
flags = 0
97-
frameSlot = 3
97+
frameSlot = 3 # %destructure_1
9898
type = FRAME_LOCAL
9999
]
100100
elseBody =
@@ -106,7 +106,7 @@ ast: |
106106
WriteLocalVariableNode
107107
attributes:
108108
flags = 0
109-
frameSlot = 0
109+
frameSlot = 0 # (self)
110110
children:
111111
valueNode =
112112
ProfileArgumentNodeGen
@@ -120,7 +120,7 @@ ast: |
120120
WriteLocalVariableNode
121121
attributes:
122122
flags = 0
123-
frameSlot = 1
123+
frameSlot = 1 # a
124124
children:
125125
valueNode =
126126
ProfileArgumentNodeGen
@@ -137,7 +137,7 @@ ast: |
137137
WriteLocalVariableNode
138138
attributes:
139139
flags = 0
140-
frameSlot = 2
140+
frameSlot = 2 # %anonymous_rest
141141
children:
142142
valueNode =
143143
ReadRestArgumentNode
@@ -157,7 +157,7 @@ ast: |
157157
WriteLocalVariableNode
158158
attributes:
159159
flags = 0
160-
frameSlot = 0
160+
frameSlot = 0 # (self)
161161
children:
162162
valueNode =
163163
ProfileArgumentNodeGen
@@ -171,7 +171,7 @@ ast: |
171171
WriteLocalVariableNode
172172
attributes:
173173
flags = 0
174-
frameSlot = 1
174+
frameSlot = 1 # a
175175
children:
176176
valueNode =
177177
ArrayIndexNodesFactory$ReadConstantIndexNodeGen
@@ -183,12 +183,12 @@ ast: |
183183
ReadLocalVariableNode
184184
attributes:
185185
flags = 0
186-
frameSlot = 3
186+
frameSlot = 3 # %destructure_1
187187
type = FRAME_LOCAL
188188
WriteLocalVariableNode
189189
attributes:
190190
flags = 0
191-
frameSlot = 2
191+
frameSlot = 2 # %anonymous_rest
192192
children:
193193
valueNode =
194194
ArraySliceNodeGen
@@ -201,7 +201,7 @@ ast: |
201201
ReadLocalVariableNode
202202
attributes:
203203
flags = 0
204-
frameSlot = 3
204+
frameSlot = 3 # %destructure_1
205205
type = FRAME_LOCAL
206206
]
207207
NilLiteralNode

spec/truffle/parsing/fixtures/class <<.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ ast: |
4747
WriteLocalVariableNode
4848
attributes:
4949
flags = 0
50-
frameSlot = 0
50+
frameSlot = 0 # (self)
5151
children:
5252
valueNode =
5353
ProfileArgumentNodeGen

spec/truffle/parsing/fixtures/def/name/non_singleton/in_anonymous_module.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ ast: |
4343
WriteLocalVariableNode
4444
attributes:
4545
flags = 0
46-
frameSlot = 0
46+
frameSlot = 0 # (self)
4747
children:
4848
valueNode =
4949
ProfileArgumentNodeGen
@@ -89,7 +89,7 @@ ast: |
8989
WriteLocalVariableNode
9090
attributes:
9191
flags = 0
92-
frameSlot = 0
92+
frameSlot = 0 # (self)
9393
children:
9494
valueNode =
9595
ProfileArgumentNodeGen

spec/truffle/parsing/fixtures/def/name/singleton/in_anonymous_module.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ ast: |
4444
WriteLocalVariableNode
4545
attributes:
4646
flags = 0
47-
frameSlot = 0
47+
frameSlot = 0 # (self)
4848
children:
4949
valueNode =
5050
ProfileArgumentNodeGen
@@ -58,7 +58,7 @@ ast: |
5858
WriteLocalVariableNode
5959
attributes:
6060
flags = 1
61-
frameSlot = 1
61+
frameSlot = 1 # bar
6262
children:
6363
valueNode =
6464
StringLiteralNode
@@ -83,7 +83,7 @@ ast: |
8383
ReadLocalVariableNode
8484
attributes:
8585
flags = 0
86-
frameSlot = 1
86+
frameSlot = 1 # bar
8787
type = FRAME_LOCAL
8888
call targets:
8989
RubyMethodRootNode
@@ -113,7 +113,7 @@ ast: |
113113
WriteLocalVariableNode
114114
attributes:
115115
flags = 0
116-
frameSlot = 0
116+
frameSlot = 0 # (self)
117117
children:
118118
valueNode =
119119
ProfileArgumentNodeGen

0 commit comments

Comments
 (0)