Skip to content

Commit bfb9c6d

Browse files
committed
Untag passing super parsing fixtures
1 parent 45eee80 commit bfb9c6d

File tree

5 files changed

+10
-17
lines changed

5 files changed

+10
-17
lines changed

spec/tags/truffle/parsing/parsing_tags.txt

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ fails:Parsing a defined? (with yield in a method body (defined? yield)) case is
1919
fails:Parsing a Ensure keyword (ensure in a method) case is parsed correctly
2020
fails:Parsing a For operator (for ... in ... operator) case is parsed correctly
2121
fails:Parsing a Integer (when doesn't fit into Java Long (>= 64 bits)) case is parsed correctly
22-
fails:Parsing a Method call (super / in a method body with explicit arguments) case is parsed correctly
23-
fails:Parsing a Method call (super / in a method body without explicit arguments) case is parsed correctly
24-
fails:Parsing a Method call (super / outside a method body with explicit arguments) case is parsed correctly
25-
fails:Parsing a Method call (super / outside a method body without explicit arguments) case is parsed correctly
26-
fails:Parsing a Method call (super / in a method body with explicit arguments) case is parsed correctly
27-
fails:Parsing a Method call (super / in a method body without explicit arguments) case is parsed correctly
28-
fails:Parsing a Method call (super / outside a method body with explicit arguments) case is parsed correctly
29-
fails:Parsing a Method call (super / outside a method body without explicit arguments) case is parsed correctly
3022
fails:Parsing a &&= (Assign an attribute local variable (a.b &&= c)) case is parsed correctly
3123
fails:Parsing a &&= (Assign an referenced element (a[b] &&= c)) case is parsed correctly
3224
fails:Parsing a &&= (Assign an element referenced with multiple indexes (a[b, c, d] &&= e)) case is parsed correctly
@@ -98,3 +90,4 @@ fails:Parsing a Yield (yield operator with splat operator with a single followin
9890
fails:Parsing a Yield (yield operator with splat operator with a single preceding and following positional argument (yield a, *b, c)) case is parsed correctly
9991
fails:Parsing a Yield (yield operator with splat operator with a single preceding positional argument (yield a, *b)) case is parsed correctly
10092
fails:Parsing a Yield (yield operator without arguments) case is parsed correctly
93+
fails:Parsing a Method call (super / outside a method body without explicit arguments) case is parsed correctly

spec/truffle/parsing/fixtures/method_calls/super/in_method_body_with_explicit_arguments.yaml

Lines changed: 3 additions & 3 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
@@ -62,7 +62,7 @@ ast: |
6262
attributes:
6363
descriptor = org.truffleruby.language.arguments.NoKeywordArgumentsDescriptor@...
6464
emptyKeywordsProfile = false
65-
flags = 0
65+
flags = 1
6666
isSplatted = false
6767
lastArgIsNotHashProfile = false
6868
notEmptyKeywordsProfile = false
@@ -84,6 +84,6 @@ ast: |
8484
ReadLocalVariableNode
8585
attributes:
8686
flags = 0
87-
frameSlot = 2
87+
frameSlot = 2 # %method_block_arg
8888
type = FRAME_LOCAL
8989
]

spec/truffle/parsing/fixtures/method_calls/super/in_method_body_without_explicit_arguments.yaml

Lines changed: 3 additions & 3 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
@@ -62,7 +62,7 @@ ast: |
6262
attributes:
6363
descriptor = org.truffleruby.language.arguments.NoKeywordArgumentsDescriptor@...
6464
emptyKeywordsProfile = false
65-
flags = 0
65+
flags = 1
6666
isSplatted = false
6767
lastArgIsNotHashProfile = false
6868
notEmptyKeywordsProfile = false
@@ -77,6 +77,6 @@ ast: |
7777
ReadLocalVariableNode
7878
attributes:
7979
flags = 0
80-
frameSlot = 2
80+
frameSlot = 2 # %method_block_arg
8181
type = FRAME_LOCAL
8282
]

spec/truffle/parsing/fixtures/method_calls/super/outside_method_body_with_explicit_arguments.yaml

Lines changed: 2 additions & 2 deletions
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
@@ -62,7 +62,7 @@ ast: |
6262
attributes:
6363
descriptor = org.truffleruby.language.arguments.NoKeywordArgumentsDescriptor@...
6464
emptyKeywordsProfile = false
65-
flags = 0
65+
flags = 1
6666
isSplatted = false
6767
lastArgIsNotHashProfile = false
6868
notEmptyKeywordsProfile = false

spec/truffle/parsing/parsing_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@
102102
end
103103

104104
unless actual_ast == expected_ast
105-
$stderr.puts "\nYARP AST:", Truffle::Debug.yarp_parse(source_code)
105+
$stderr.puts "\n#{filename}\nYARP AST:", Truffle::Debug.yarp_parse(source_code)
106106
end
107107
actual_ast.should == expected_ast
108108
end

0 commit comments

Comments
 (0)