diff options
Diffstat (limited to 'test/yarp/snapshots/begin_ensure.txt')
-rw-r--r-- | test/yarp/snapshots/begin_ensure.txt | 194 |
1 files changed, 97 insertions, 97 deletions
diff --git a/test/yarp/snapshots/begin_ensure.txt b/test/yarp/snapshots/begin_ensure.txt index 0c9f49ad55..42b97cd609 100644 --- a/test/yarp/snapshots/begin_ensure.txt +++ b/test/yarp/snapshots/begin_ensure.txt @@ -1,17 +1,17 @@ -@ ProgramNode (location: (0...211)) +@ ProgramNode (location: (1,0)-(21,15)) ├── locals: [] └── statements: - @ StatementsNode (location: (0...211)) + @ StatementsNode (location: (1,0)-(21,15)) └── body: (length: 5) - ├── @ BeginNode (location: (0...20)) - │ ├── begin_keyword_loc: (0...5) = "begin" + ├── @ BeginNode (location: (1,0)-(5,3)) + │ ├── begin_keyword_loc: (1,0)-(1,5) = "begin" │ ├── statements: - │ │ @ StatementsNode (location: (6...7)) + │ │ @ StatementsNode (location: (2,0)-(2,1)) │ │ └── body: (length: 1) - │ │ └── @ CallNode (location: (6...7)) + │ │ └── @ CallNode (location: (2,0)-(2,1)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ - │ │ ├── message_loc: (6...7) = "a" + │ │ ├── message_loc: (2,0)-(2,1) = "a" │ │ ├── opening_loc: ∅ │ │ ├── arguments: ∅ │ │ ├── closing_loc: ∅ @@ -21,32 +21,32 @@ │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: - │ │ @ EnsureNode (location: (8...20)) - │ │ ├── ensure_keyword_loc: (8...14) = "ensure" + │ │ @ EnsureNode (location: (3,0)-(5,3)) + │ │ ├── ensure_keyword_loc: (3,0)-(3,6) = "ensure" │ │ ├── statements: - │ │ │ @ StatementsNode (location: (15...16)) + │ │ │ @ StatementsNode (location: (4,0)-(4,1)) │ │ │ └── body: (length: 1) - │ │ │ └── @ CallNode (location: (15...16)) + │ │ │ └── @ CallNode (location: (4,0)-(4,1)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ - │ │ │ ├── message_loc: (15...16) = "b" + │ │ │ ├── message_loc: (4,0)-(4,1) = "b" │ │ │ ├── opening_loc: ∅ │ │ │ ├── arguments: ∅ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call │ │ │ └── name: "b" - │ │ └── end_keyword_loc: (17...20) = "end" - │ └── end_keyword_loc: (17...20) = "end" - ├── @ BeginNode (location: (22...46)) - │ ├── begin_keyword_loc: (22...27) = "begin" + │ │ └── end_keyword_loc: (5,0)-(5,3) = "end" + │ └── end_keyword_loc: (5,0)-(5,3) = "end" + ├── @ BeginNode (location: (7,0)-(7,24)) + │ ├── begin_keyword_loc: (7,0)-(7,5) = "begin" │ ├── statements: - │ │ @ StatementsNode (location: (29...30)) + │ │ @ StatementsNode (location: (7,7)-(7,8)) │ │ └── body: (length: 1) - │ │ └── @ CallNode (location: (29...30)) + │ │ └── @ CallNode (location: (7,7)-(7,8)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ - │ │ ├── message_loc: (29...30) = "a" + │ │ ├── message_loc: (7,7)-(7,8) = "a" │ │ ├── opening_loc: ∅ │ │ ├── arguments: ∅ │ │ ├── closing_loc: ∅ @@ -56,32 +56,32 @@ │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: - │ │ @ EnsureNode (location: (32...46)) - │ │ ├── ensure_keyword_loc: (32...38) = "ensure" + │ │ @ EnsureNode (location: (7,10)-(7,24)) + │ │ ├── ensure_keyword_loc: (7,10)-(7,16) = "ensure" │ │ ├── statements: - │ │ │ @ StatementsNode (location: (40...41)) + │ │ │ @ StatementsNode (location: (7,18)-(7,19)) │ │ │ └── body: (length: 1) - │ │ │ └── @ CallNode (location: (40...41)) + │ │ │ └── @ CallNode (location: (7,18)-(7,19)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ - │ │ │ ├── message_loc: (40...41) = "b" + │ │ │ ├── message_loc: (7,18)-(7,19) = "b" │ │ │ ├── opening_loc: ∅ │ │ │ ├── arguments: ∅ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call │ │ │ └── name: "b" - │ │ └── end_keyword_loc: (43...46) = "end" - │ └── end_keyword_loc: (43...46) = "end" - ├── @ BeginNode (location: (48...70)) - │ ├── begin_keyword_loc: (48...53) = "begin" + │ │ └── end_keyword_loc: (7,21)-(7,24) = "end" + │ └── end_keyword_loc: (7,21)-(7,24) = "end" + ├── @ BeginNode (location: (9,0)-(11,4)) + │ ├── begin_keyword_loc: (9,0)-(9,5) = "begin" │ ├── statements: - │ │ @ StatementsNode (location: (54...55)) + │ │ @ StatementsNode (location: (9,6)-(9,7)) │ │ └── body: (length: 1) - │ │ └── @ CallNode (location: (54...55)) + │ │ └── @ CallNode (location: (9,6)-(9,7)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ - │ │ ├── message_loc: (54...55) = "a" + │ │ ├── message_loc: (9,6)-(9,7) = "a" │ │ ├── opening_loc: ∅ │ │ ├── arguments: ∅ │ │ ├── closing_loc: ∅ @@ -91,32 +91,32 @@ │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: - │ │ @ EnsureNode (location: (57...70)) - │ │ ├── ensure_keyword_loc: (57...63) = "ensure" + │ │ @ EnsureNode (location: (10,1)-(11,4)) + │ │ ├── ensure_keyword_loc: (10,1)-(10,7) = "ensure" │ │ ├── statements: - │ │ │ @ StatementsNode (location: (64...65)) + │ │ │ @ StatementsNode (location: (10,8)-(10,9)) │ │ │ └── body: (length: 1) - │ │ │ └── @ CallNode (location: (64...65)) + │ │ │ └── @ CallNode (location: (10,8)-(10,9)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ - │ │ │ ├── message_loc: (64...65) = "b" + │ │ │ ├── message_loc: (10,8)-(10,9) = "b" │ │ │ ├── opening_loc: ∅ │ │ │ ├── arguments: ∅ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call │ │ │ └── name: "b" - │ │ └── end_keyword_loc: (67...70) = "end" - │ └── end_keyword_loc: (67...70) = "end" - ├── @ BeginNode (location: (72...94)) - │ ├── begin_keyword_loc: (72...77) = "begin" + │ │ └── end_keyword_loc: (11,1)-(11,4) = "end" + │ └── end_keyword_loc: (11,1)-(11,4) = "end" + ├── @ BeginNode (location: (13,0)-(13,22)) + │ ├── begin_keyword_loc: (13,0)-(13,5) = "begin" │ ├── statements: - │ │ @ StatementsNode (location: (78...79)) + │ │ @ StatementsNode (location: (13,6)-(13,7)) │ │ └── body: (length: 1) - │ │ └── @ CallNode (location: (78...79)) + │ │ └── @ CallNode (location: (13,6)-(13,7)) │ │ ├── receiver: ∅ │ │ ├── call_operator_loc: ∅ - │ │ ├── message_loc: (78...79) = "a" + │ │ ├── message_loc: (13,6)-(13,7) = "a" │ │ ├── opening_loc: ∅ │ │ ├── arguments: ∅ │ │ ├── closing_loc: ∅ @@ -126,115 +126,115 @@ │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: - │ │ @ EnsureNode (location: (81...94)) - │ │ ├── ensure_keyword_loc: (81...87) = "ensure" + │ │ @ EnsureNode (location: (13,9)-(13,22)) + │ │ ├── ensure_keyword_loc: (13,9)-(13,15) = "ensure" │ │ ├── statements: - │ │ │ @ StatementsNode (location: (88...89)) + │ │ │ @ StatementsNode (location: (13,16)-(13,17)) │ │ │ └── body: (length: 1) - │ │ │ └── @ CallNode (location: (88...89)) + │ │ │ └── @ CallNode (location: (13,16)-(13,17)) │ │ │ ├── receiver: ∅ │ │ │ ├── call_operator_loc: ∅ - │ │ │ ├── message_loc: (88...89) = "b" + │ │ │ ├── message_loc: (13,16)-(13,17) = "b" │ │ │ ├── opening_loc: ∅ │ │ │ ├── arguments: ∅ │ │ │ ├── closing_loc: ∅ │ │ │ ├── block: ∅ │ │ │ ├── flags: variable_call │ │ │ └── name: "b" - │ │ └── end_keyword_loc: (91...94) = "end" - │ └── end_keyword_loc: (91...94) = "end" - └── @ BeginNode (location: (96...211)) - ├── begin_keyword_loc: (96...101) = "begin" + │ │ └── end_keyword_loc: (13,19)-(13,22) = "end" + │ └── end_keyword_loc: (13,19)-(13,22) = "end" + └── @ BeginNode (location: (15,0)-(21,15)) + ├── begin_keyword_loc: (15,0)-(15,5) = "begin" ├── statements: - │ @ StatementsNode (location: (102...207)) + │ @ StatementsNode (location: (15,6)-(21,11)) │ └── body: (length: 1) - │ └── @ BeginNode (location: (102...207)) - │ ├── begin_keyword_loc: (102...107) = "begin" + │ └── @ BeginNode (location: (15,6)-(21,11)) + │ ├── begin_keyword_loc: (15,6)-(15,11) = "begin" │ ├── statements: - │ │ @ StatementsNode (location: (107...203)) + │ │ @ StatementsNode (location: (15,11)-(21,7)) │ │ └── body: (length: 1) - │ │ └── @ CallNode (location: (107...203)) + │ │ └── @ CallNode (location: (15,11)-(21,7)) │ │ ├── receiver: - │ │ │ @ SymbolNode (location: (107...109)) - │ │ │ ├── opening_loc: (107...108) = ":" - │ │ │ ├── value_loc: (108...109) = "s" + │ │ │ @ SymbolNode (location: (15,11)-(15,13)) + │ │ │ ├── opening_loc: (15,11)-(15,12) = ":" + │ │ │ ├── value_loc: (15,12)-(15,13) = "s" │ │ │ ├── closing_loc: ∅ │ │ │ └── unescaped: "s" - │ │ ├── call_operator_loc: (109...110) = "." - │ │ ├── message_loc: (110...111) = "l" + │ │ ├── call_operator_loc: (15,13)-(15,14) = "." + │ │ ├── message_loc: (15,14)-(15,15) = "l" │ │ ├── opening_loc: ∅ │ │ ├── arguments: - │ │ │ @ ArgumentsNode (location: (112...203)) + │ │ │ @ ArgumentsNode (location: (15,16)-(21,7)) │ │ │ └── arguments: (length: 1) - │ │ │ └── @ BeginNode (location: (112...203)) - │ │ │ ├── begin_keyword_loc: (112...117) = "begin" + │ │ │ └── @ BeginNode (location: (15,16)-(21,7)) + │ │ │ ├── begin_keyword_loc: (15,16)-(15,21) = "begin" │ │ │ ├── statements: ∅ │ │ │ ├── rescue_clause: ∅ │ │ │ ├── else_clause: ∅ │ │ │ ├── ensure_clause: - │ │ │ │ @ EnsureNode (location: (118...203)) - │ │ │ │ ├── ensure_keyword_loc: (118...124) = "ensure" + │ │ │ │ @ EnsureNode (location: (15,22)-(21,7)) + │ │ │ │ ├── ensure_keyword_loc: (15,22)-(15,28) = "ensure" │ │ │ │ ├── statements: - │ │ │ │ │ @ StatementsNode (location: (125...199)) + │ │ │ │ │ @ StatementsNode (location: (15,29)-(21,3)) │ │ │ │ │ └── body: (length: 1) - │ │ │ │ │ └── @ CallNode (location: (125...199)) + │ │ │ │ │ └── @ CallNode (location: (15,29)-(21,3)) │ │ │ │ │ ├── receiver: - │ │ │ │ │ │ @ ConstantReadNode (location: (125...131)) + │ │ │ │ │ │ @ ConstantReadNode (location: (15,29)-(15,35)) │ │ │ │ │ │ └── name: :Module - │ │ │ │ │ ├── call_operator_loc: (131...132) = "." - │ │ │ │ │ ├── message_loc: (132...135) = "new" + │ │ │ │ │ ├── call_operator_loc: (15,35)-(15,36) = "." + │ │ │ │ │ ├── message_loc: (15,36)-(15,39) = "new" │ │ │ │ │ ├── opening_loc: ∅ │ │ │ │ │ ├── arguments: ∅ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ ├── block: - │ │ │ │ │ │ @ BlockNode (location: (136...199)) + │ │ │ │ │ │ @ BlockNode (location: (15,40)-(21,3)) │ │ │ │ │ │ ├── locals: [] │ │ │ │ │ │ ├── parameters: ∅ │ │ │ │ │ │ ├── body: - │ │ │ │ │ │ │ @ StatementsNode (location: (141...195)) + │ │ │ │ │ │ │ @ StatementsNode (location: (16,2)-(20,5)) │ │ │ │ │ │ │ └── body: (length: 1) - │ │ │ │ │ │ │ └── @ BeginNode (location: (141...195)) - │ │ │ │ │ │ │ ├── begin_keyword_loc: (141...146) = "begin" + │ │ │ │ │ │ │ └── @ BeginNode (location: (16,2)-(20,5)) + │ │ │ │ │ │ │ ├── begin_keyword_loc: (16,2)-(16,7) = "begin" │ │ │ │ │ │ │ ├── statements: - │ │ │ │ │ │ │ │ @ StatementsNode (location: (151...156)) + │ │ │ │ │ │ │ │ @ StatementsNode (location: (17,4)-(17,9)) │ │ │ │ │ │ │ │ └── body: (length: 1) - │ │ │ │ │ │ │ │ └── @ BreakNode (location: (151...156)) + │ │ │ │ │ │ │ │ └── @ BreakNode (location: (17,4)-(17,9)) │ │ │ │ │ │ │ │ ├── arguments: ∅ - │ │ │ │ │ │ │ │ └── keyword_loc: (151...156) = "break" + │ │ │ │ │ │ │ │ └── keyword_loc: (17,4)-(17,9) = "break" │ │ │ │ │ │ │ ├── rescue_clause: ∅ │ │ │ │ │ │ │ ├── else_clause: ∅ │ │ │ │ │ │ │ ├── ensure_clause: - │ │ │ │ │ │ │ │ @ EnsureNode (location: (161...195)) - │ │ │ │ │ │ │ │ ├── ensure_keyword_loc: (161...167) = "ensure" + │ │ │ │ │ │ │ │ @ EnsureNode (location: (18,4)-(20,5)) + │ │ │ │ │ │ │ │ ├── ensure_keyword_loc: (18,4)-(18,10) = "ensure" │ │ │ │ │ │ │ │ ├── statements: - │ │ │ │ │ │ │ │ │ @ StatementsNode (location: (168...189)) + │ │ │ │ │ │ │ │ │ @ StatementsNode (location: (18,11)-(19,7)) │ │ │ │ │ │ │ │ │ └── body: (length: 1) - │ │ │ │ │ │ │ │ │ └── @ CallNode (location: (168...189)) + │ │ │ │ │ │ │ │ │ └── @ CallNode (location: (18,11)-(19,7)) │ │ │ │ │ │ │ │ │ ├── receiver: - │ │ │ │ │ │ │ │ │ │ @ ConstantReadNode (location: (168...174)) + │ │ │ │ │ │ │ │ │ │ @ ConstantReadNode (location: (18,11)-(18,17)) │ │ │ │ │ │ │ │ │ │ └── name: :Module - │ │ │ │ │ │ │ │ │ ├── call_operator_loc: (174...175) = "." - │ │ │ │ │ │ │ │ │ ├── message_loc: (175...178) = "new" + │ │ │ │ │ │ │ │ │ ├── call_operator_loc: (18,17)-(18,18) = "." + │ │ │ │ │ │ │ │ │ ├── message_loc: (18,18)-(18,21) = "new" │ │ │ │ │ │ │ │ │ ├── opening_loc: ∅ │ │ │ │ │ │ │ │ │ ├── arguments: ∅ │ │ │ │ │ │ │ │ │ ├── closing_loc: ∅ │ │ │ │ │ │ │ │ │ ├── block: - │ │ │ │ │ │ │ │ │ │ @ BlockNode (location: (179...189)) + │ │ │ │ │ │ │ │ │ │ @ BlockNode (location: (18,22)-(19,7)) │ │ │ │ │ │ │ │ │ │ ├── locals: [] │ │ │ │ │ │ │ │ │ │ ├── parameters: ∅ │ │ │ │ │ │ │ │ │ │ ├── body: ∅ - │ │ │ │ │ │ │ │ │ │ ├── opening_loc: (179...181) = "do" - │ │ │ │ │ │ │ │ │ │ └── closing_loc: (186...189) = "end" + │ │ │ │ │ │ │ │ │ │ ├── opening_loc: (18,22)-(18,24) = "do" + │ │ │ │ │ │ │ │ │ │ └── closing_loc: (19,4)-(19,7) = "end" │ │ │ │ │ │ │ │ │ ├── flags: ∅ │ │ │ │ │ │ │ │ │ └── name: "new" - │ │ │ │ │ │ │ │ └── end_keyword_loc: (192...195) = "end" - │ │ │ │ │ │ │ └── end_keyword_loc: (192...195) = "end" - │ │ │ │ │ │ ├── opening_loc: (136...138) = "do" - │ │ │ │ │ │ └── closing_loc: (196...199) = "end" + │ │ │ │ │ │ │ │ └── end_keyword_loc: (20,2)-(20,5) = "end" + │ │ │ │ │ │ │ └── end_keyword_loc: (20,2)-(20,5) = "end" + │ │ │ │ │ │ ├── opening_loc: (15,40)-(15,42) = "do" + │ │ │ │ │ │ └── closing_loc: (21,0)-(21,3) = "end" │ │ │ │ │ ├── flags: ∅ │ │ │ │ │ └── name: "new" - │ │ │ │ └── end_keyword_loc: (200...203) = "end" - │ │ │ └── end_keyword_loc: (200...203) = "end" + │ │ │ │ └── end_keyword_loc: (21,4)-(21,7) = "end" + │ │ │ └── end_keyword_loc: (21,4)-(21,7) = "end" │ │ ├── closing_loc: ∅ │ │ ├── block: ∅ │ │ ├── flags: ∅ @@ -242,8 +242,8 @@ │ ├── rescue_clause: ∅ │ ├── else_clause: ∅ │ ├── ensure_clause: ∅ - │ └── end_keyword_loc: (204...207) = "end" + │ └── end_keyword_loc: (21,8)-(21,11) = "end" ├── rescue_clause: ∅ ├── else_clause: ∅ ├── ensure_clause: ∅ - └── end_keyword_loc: (208...211) = "end" + └── end_keyword_loc: (21,12)-(21,15) = "end" |