@@ -1716,11 +1716,11 @@ escape_sequences/escapes.rb:
1716
1716
literals/literals.rb:
1717
1717
# 1| [Toplevel] literals.rb
1718
1718
# 2| getStmt: [NilLiteral] nil
1719
- # 3| getStmt: [NilLiteral ] NIL
1719
+ # 3| getStmt: [ConstantReadAccess ] NIL
1720
1720
# 4| getStmt: [BooleanLiteral] false
1721
- # 5| getStmt: [BooleanLiteral ] FALSE
1721
+ # 5| getStmt: [ConstantReadAccess ] FALSE
1722
1722
# 6| getStmt: [BooleanLiteral] true
1723
- # 7| getStmt: [BooleanLiteral ] TRUE
1723
+ # 7| getStmt: [ConstantReadAccess ] TRUE
1724
1724
# 10| getStmt: [IntegerLiteral] 1234
1725
1725
# 11| getStmt: [IntegerLiteral] 5_678
1726
1726
# 12| getStmt: [IntegerLiteral] 0
@@ -1752,6 +1752,8 @@ literals/literals.rb:
1752
1752
# 48| getStmt: [RationalLiteral] 23r
1753
1753
# 49| getStmt: [RationalLiteral] 9.85r
1754
1754
# 52| getStmt: [ComplexLiteral] 2i
1755
+ # 53| getStmt: [ComplexLiteral] 3.14i
1756
+ # 56| getStmt: [ComplexLiteral] 1.2ri
1755
1757
# 59| getStmt: [StringLiteral] ""
1756
1758
# 60| getStmt: [StringLiteral] ""
1757
1759
# 61| getStmt: [StringLiteral] "hello"
@@ -2054,10 +2056,10 @@ literals/literals.rb:
2054
2056
# 139| getStmt: [RangeLiteral] _ .. _
2055
2057
# 139| getEnd: [IntegerLiteral] 1
2056
2058
# 140| getStmt: [ParenthesizedExpr] ( ... )
2057
- # 140| getStmt: [SubExpr] ... - ...
2058
- # 140| getAnOperand/getLeftOperand/getReceiver : [RangeLiteral] _ .. _
2059
- # 140| getBegin : [IntegerLiteral] 0
2060
- # 140| getAnOperand/getArgument/getRightOperand : [IntegerLiteral] 1
2059
+ # 140| getStmt: [RangeLiteral] _ .. _
2060
+ # 140| getBegin : [IntegerLiteral] 0
2061
+ # 140| getEnd : [UnaryMinusExpr] - ...
2062
+ # 140| getAnOperand/getOperand/getReceiver : [IntegerLiteral] 1
2061
2063
# 143| getStmt: [SubshellLiteral] `ls -l`
2062
2064
# 143| getComponent: [StringTextComponent] ls -l
2063
2065
# 144| getStmt: [SubshellLiteral] `ls -l`
@@ -2990,6 +2992,16 @@ params/params.rb:
2990
2992
# 83| getReceiver: [LocalVariableAccess] array
2991
2993
# 83| getArgument: [BlockArgument] &...
2992
2994
# 83| getValue: [LocalVariableAccess] __synth__0
2995
+ # 86| getStmt: [MethodCall] call to run_block
2996
+ # 86| getReceiver: [SelfVariableAccess] self
2997
+ # 86| getBlock: [BraceBlock] { ... }
2998
+ # 86| getParameter: [SimpleParameter] x
2999
+ # 86| getDefiningAccess: [LocalVariableAccess] x
3000
+ # 86| getLocalVariable: [LocalVariableAccess] y
3001
+ # 86| getLocalVariable: [LocalVariableAccess] z
3002
+ # 86| getStmt: [MethodCall] call to puts
3003
+ # 86| getReceiver: [SelfVariableAccess] self
3004
+ # 86| getArgument: [LocalVariableAccess] x
2993
3005
erb/template.html.erb:
2994
3006
# 19| [Toplevel] template.html.erb
2995
3007
# 19| getStmt: [StringLiteral] "hello world"
0 commit comments