diff options
Diffstat (limited to 'test/yarp/snapshots/whitequark/ruby_bug_10653.txt')
-rw-r--r-- | test/yarp/snapshots/whitequark/ruby_bug_10653.txt | 116 |
1 files changed, 58 insertions, 58 deletions
diff --git a/test/yarp/snapshots/whitequark/ruby_bug_10653.txt b/test/yarp/snapshots/whitequark/ruby_bug_10653.txt index 89dd71f362..edd3269804 100644 --- a/test/yarp/snapshots/whitequark/ruby_bug_10653.txt +++ b/test/yarp/snapshots/whitequark/ruby_bug_10653.txt @@ -1,127 +1,127 @@ -@ ProgramNode (location: (0...93)) +@ ProgramNode (location: (1,0)-(5,31)) ├── locals: [] └── statements: - @ StatementsNode (location: (0...93)) + @ StatementsNode (location: (1,0)-(5,31)) └── body: (length: 3) - ├── @ IfNode (location: (0...33)) + ├── @ IfNode (location: (1,0)-(1,33)) │ ├── if_keyword_loc: ∅ │ ├── predicate: - │ │ @ FalseNode (location: (0...5)) + │ │ @ FalseNode (location: (1,0)-(1,5)) │ ├── statements: - │ │ @ StatementsNode (location: (8...20)) + │ │ @ StatementsNode (location: (1,8)-(1,20)) │ │ └── body: (length: 1) - │ │ └── @ CallNode (location: (8...20)) + │ │ └── @ CallNode (location: (1,8)-(1,20)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ - │ │ ├── message_loc: (8...13) = "raise" + │ │ ├── message_loc: (1,8)-(1,13) = "raise" │ │ ├── opening_loc: ∅ │ │ ├── arguments: ∅ │ │ ├── closing_loc: ∅ │ │ ├── block: - │ │ │ @ BlockNode (location: (14...20)) + │ │ │ @ BlockNode (location: (1,14)-(1,20)) │ │ │ ├── locals: [] │ │ │ ├── parameters: ∅ │ │ │ ├── body: ∅ - │ │ │ ├── opening_loc: (14...16) = "do" - │ │ │ └── closing_loc: (17...20) = "end" + │ │ │ ├── opening_loc: (1,14)-(1,16) = "do" + │ │ │ └── closing_loc: (1,17)-(1,20) = "end" │ │ ├── flags: ∅ │ │ └── name: "raise" │ ├── consequent: - │ │ @ ElseNode (location: (21...33)) - │ │ ├── else_keyword_loc: (21...22) = ":" + │ │ @ ElseNode (location: (1,21)-(1,33)) + │ │ ├── else_keyword_loc: (1,21)-(1,22) = ":" │ │ ├── statements: - │ │ │ @ StatementsNode (location: (23...33)) + │ │ │ @ StatementsNode (location: (1,23)-(1,33)) │ │ │ └── body: (length: 1) - │ │ │ └── @ CallNode (location: (23...33)) + │ │ │ └── @ CallNode (location: (1,23)-(1,33)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ - │ │ │ ├── message_loc: (23...26) = "tap" + │ │ │ ├── message_loc: (1,23)-(1,26) = "tap" │ │ │ ├── opening_loc: ∅ │ │ │ ├── arguments: ∅ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: - │ │ │ │ @ BlockNode (location: (27...33)) + │ │ │ │ @ BlockNode (location: (1,27)-(1,33)) │ │ │ │ ├── locals: [] │ │ │ │ ├── parameters: ∅ │ │ │ │ ├── body: ∅ - │ │ │ │ ├── opening_loc: (27...29) = "do" - │ │ │ │ └── closing_loc: (30...33) = "end" + │ │ │ │ ├── opening_loc: (1,27)-(1,29) = "do" + │ │ │ │ └── closing_loc: (1,30)-(1,33) = "end" │ │ │ ├── flags: ∅ │ │ │ └── name: "tap" │ │ └── end_keyword_loc: ∅ │ └── end_keyword_loc: ∅ - ├── @ IfNode (location: (35...60)) + ├── @ IfNode (location: (3,0)-(3,25)) │ ├── if_keyword_loc: ∅ │ ├── predicate: - │ │ @ FalseNode (location: (35...40)) + │ │ @ FalseNode (location: (3,0)-(3,5)) │ ├── statements: - │ │ @ StatementsNode (location: (43...51)) + │ │ @ StatementsNode (location: (3,8)-(3,16)) │ │ └── body: (length: 1) - │ │ └── @ CallNode (location: (43...51)) + │ │ └── @ CallNode (location: (3,8)-(3,16)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ - │ │ ├── message_loc: (43...48) = "raise" + │ │ ├── message_loc: (3,8)-(3,13) = "raise" │ │ ├── opening_loc: ∅ │ │ ├── arguments: ∅ │ │ ├── closing_loc: ∅ │ │ ├── block: - │ │ │ @ BlockNode (location: (49...51)) + │ │ │ @ BlockNode (location: (3,14)-(3,16)) │ │ │ ├── locals: [] │ │ │ ├── parameters: ∅ │ │ │ ├── body: ∅ - │ │ │ ├── opening_loc: (49...50) = "{" - │ │ │ └── closing_loc: (50...51) = "}" + │ │ │ ├── opening_loc: (3,14)-(3,15) = "{" + │ │ │ └── closing_loc: (3,15)-(3,16) = "}" │ │ ├── flags: ∅ │ │ └── name: "raise" │ ├── consequent: - │ │ @ ElseNode (location: (52...60)) - │ │ ├── else_keyword_loc: (52...53) = ":" + │ │ @ ElseNode (location: (3,17)-(3,25)) + │ │ ├── else_keyword_loc: (3,17)-(3,18) = ":" │ │ ├── statements: - │ │ │ @ StatementsNode (location: (54...60)) + │ │ │ @ StatementsNode (location: (3,19)-(3,25)) │ │ │ └── body: (length: 1) - │ │ │ └── @ CallNode (location: (54...60)) + │ │ │ └── @ CallNode (location: (3,19)-(3,25)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ - │ │ │ ├── message_loc: (54...57) = "tap" + │ │ │ ├── message_loc: (3,19)-(3,22) = "tap" │ │ │ ├── opening_loc: ∅ │ │ │ ├── arguments: ∅ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: - │ │ │ │ @ BlockNode (location: (58...60)) + │ │ │ │ @ BlockNode (location: (3,23)-(3,25)) │ │ │ │ ├── locals: [] │ │ │ │ ├── parameters: ∅ │ │ │ │ ├── body: ∅ - │ │ │ │ ├── opening_loc: (58...59) = "{" - │ │ │ │ └── closing_loc: (59...60) = "}" + │ │ │ │ ├── opening_loc: (3,23)-(3,24) = "{" + │ │ │ │ └── closing_loc: (3,24)-(3,25) = "}" │ │ │ ├── flags: ∅ │ │ │ └── name: "tap" │ │ └── end_keyword_loc: ∅ │ └── end_keyword_loc: ∅ - └── @ IfNode (location: (62...93)) + └── @ IfNode (location: (5,0)-(5,31)) ├── if_keyword_loc: ∅ ├── predicate: - │ @ TrueNode (location: (62...66)) + │ @ TrueNode (location: (5,0)-(5,4)) ├── statements: - │ @ StatementsNode (location: (69...89)) + │ @ StatementsNode (location: (5,7)-(5,27)) │ └── body: (length: 1) - │ └── @ CallNode (location: (69...89)) + │ └── @ CallNode (location: (5,7)-(5,27)) │ ├── receiver: - │ │ @ IntegerNode (location: (69...70)) + │ │ @ IntegerNode (location: (5,7)-(5,8)) │ │ └── flags: decimal - │ ├── call_operator_loc: (70...71) = "." - │ ├── message_loc: (71...74) = "tap" + │ ├── call_operator_loc: (5,8)-(5,9) = "." + │ ├── message_loc: (5,9)-(5,12) = "tap" │ ├── opening_loc: ∅ │ ├── arguments: ∅ │ ├── closing_loc: ∅ │ ├── block: - │ │ @ BlockNode (location: (75...89)) + │ │ @ BlockNode (location: (5,13)-(5,27)) │ │ ├── locals: [:n] │ │ ├── parameters: - │ │ │ @ BlockParametersNode (location: (78...81)) + │ │ │ @ BlockParametersNode (location: (5,16)-(5,19)) │ │ │ ├── parameters: - │ │ │ │ @ ParametersNode (location: (79...80)) + │ │ │ │ @ ParametersNode (location: (5,17)-(5,18)) │ │ │ │ ├── requireds: (length: 1) - │ │ │ │ │ └── @ RequiredParameterNode (location: (79...80)) + │ │ │ │ │ └── @ RequiredParameterNode (location: (5,17)-(5,18)) │ │ │ │ │ └── name: :n │ │ │ │ ├── optionals: (length: 0) │ │ │ │ ├── rest: ∅ @@ -130,37 +130,37 @@ │ │ │ │ ├── keyword_rest: ∅ │ │ │ │ └── block: ∅ │ │ │ ├── locals: (length: 0) - │ │ │ ├── opening_loc: (78...79) = "|" - │ │ │ └── closing_loc: (80...81) = "|" + │ │ │ ├── opening_loc: (5,16)-(5,17) = "|" + │ │ │ └── closing_loc: (5,18)-(5,19) = "|" │ │ ├── body: - │ │ │ @ StatementsNode (location: (82...85)) + │ │ │ @ StatementsNode (location: (5,20)-(5,23)) │ │ │ └── body: (length: 1) - │ │ │ └── @ CallNode (location: (82...85)) + │ │ │ └── @ CallNode (location: (5,20)-(5,23)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ - │ │ │ ├── message_loc: (82...83) = "p" + │ │ │ ├── message_loc: (5,20)-(5,21) = "p" │ │ │ ├── opening_loc: ∅ │ │ │ ├── arguments: - │ │ │ │ @ ArgumentsNode (location: (84...85)) + │ │ │ │ @ ArgumentsNode (location: (5,22)-(5,23)) │ │ │ │ └── arguments: (length: 1) - │ │ │ │ └── @ LocalVariableReadNode (location: (84...85)) + │ │ │ │ └── @ LocalVariableReadNode (location: (5,22)-(5,23)) │ │ │ │ ├── name: :n │ │ │ │ └── depth: 0 │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: ∅ │ │ │ └── name: "p" - │ │ ├── opening_loc: (75...77) = "do" - │ │ └── closing_loc: (86...89) = "end" + │ │ ├── opening_loc: (5,13)-(5,15) = "do" + │ │ └── closing_loc: (5,24)-(5,27) = "end" │ ├── flags: ∅ │ └── name: "tap" ├── consequent: - │ @ ElseNode (location: (90...93)) - │ ├── else_keyword_loc: (90...91) = ":" + │ @ ElseNode (location: (5,28)-(5,31)) + │ ├── else_keyword_loc: (5,28)-(5,29) = ":" │ ├── statements: - │ │ @ StatementsNode (location: (92...93)) + │ │ @ StatementsNode (location: (5,30)-(5,31)) │ │ └── body: (length: 1) - │ │ └── @ IntegerNode (location: (92...93)) + │ │ └── @ IntegerNode (location: (5,30)-(5,31)) │ │ └── flags: decimal │ └── end_keyword_loc: ∅ └── end_keyword_loc: ∅ |