diff options
Diffstat (limited to 'test/prism/snapshots/begin_ensure.txt')
-rw-r--r-- | test/prism/snapshots/begin_ensure.txt | 251 |
1 files changed, 251 insertions, 0 deletions
diff --git a/test/prism/snapshots/begin_ensure.txt b/test/prism/snapshots/begin_ensure.txt new file mode 100644 index 0000000000..9af9b9e573 --- /dev/null +++ b/test/prism/snapshots/begin_ensure.txt @@ -0,0 +1,251 @@ +@ ProgramNode (location: (1,0)-(21,15)) +├── locals: [] +└── statements: + @ StatementsNode (location: (1,0)-(21,15)) + └── body: (length: 5) + ├── @ BeginNode (location: (1,0)-(5,3)) + │ ├── begin_keyword_loc: (1,0)-(1,5) = "begin" + │ ├── statements: + │ │ @ StatementsNode (location: (2,0)-(2,1)) + │ │ └── body: (length: 1) + │ │ └── @ CallNode (location: (2,0)-(2,1)) + │ │ ├── flags: variable_call, ignore_visibility + │ │ ├── receiver: ∅ + │ │ ├── call_operator_loc: ∅ + │ │ ├── name: :a + │ │ ├── message_loc: (2,0)-(2,1) = "a" + │ │ ├── opening_loc: ∅ + │ │ ├── arguments: ∅ + │ │ ├── closing_loc: ∅ + │ │ └── block: ∅ + │ ├── rescue_clause: ∅ + │ ├── else_clause: ∅ + │ ├── ensure_clause: + │ │ @ EnsureNode (location: (3,0)-(5,3)) + │ │ ├── ensure_keyword_loc: (3,0)-(3,6) = "ensure" + │ │ ├── statements: + │ │ │ @ StatementsNode (location: (4,0)-(4,1)) + │ │ │ └── body: (length: 1) + │ │ │ └── @ CallNode (location: (4,0)-(4,1)) + │ │ │ ├── flags: variable_call, ignore_visibility + │ │ │ ├── receiver: ∅ + │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── name: :b + │ │ │ ├── message_loc: (4,0)-(4,1) = "b" + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── arguments: ∅ + │ │ │ ├── closing_loc: ∅ + │ │ │ └── block: ∅ + │ │ └── 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: (7,7)-(7,8)) + │ │ └── body: (length: 1) + │ │ └── @ CallNode (location: (7,7)-(7,8)) + │ │ ├── flags: variable_call, ignore_visibility + │ │ ├── receiver: ∅ + │ │ ├── call_operator_loc: ∅ + │ │ ├── name: :a + │ │ ├── message_loc: (7,7)-(7,8) = "a" + │ │ ├── opening_loc: ∅ + │ │ ├── arguments: ∅ + │ │ ├── closing_loc: ∅ + │ │ └── block: ∅ + │ ├── rescue_clause: ∅ + │ ├── else_clause: ∅ + │ ├── ensure_clause: + │ │ @ EnsureNode (location: (7,10)-(7,24)) + │ │ ├── ensure_keyword_loc: (7,10)-(7,16) = "ensure" + │ │ ├── statements: + │ │ │ @ StatementsNode (location: (7,18)-(7,19)) + │ │ │ └── body: (length: 1) + │ │ │ └── @ CallNode (location: (7,18)-(7,19)) + │ │ │ ├── flags: variable_call, ignore_visibility + │ │ │ ├── receiver: ∅ + │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── name: :b + │ │ │ ├── message_loc: (7,18)-(7,19) = "b" + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── arguments: ∅ + │ │ │ ├── closing_loc: ∅ + │ │ │ └── block: ∅ + │ │ └── 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: (9,6)-(9,7)) + │ │ └── body: (length: 1) + │ │ └── @ CallNode (location: (9,6)-(9,7)) + │ │ ├── flags: variable_call, ignore_visibility + │ │ ├── receiver: ∅ + │ │ ├── call_operator_loc: ∅ + │ │ ├── name: :a + │ │ ├── message_loc: (9,6)-(9,7) = "a" + │ │ ├── opening_loc: ∅ + │ │ ├── arguments: ∅ + │ │ ├── closing_loc: ∅ + │ │ └── block: ∅ + │ ├── rescue_clause: ∅ + │ ├── else_clause: ∅ + │ ├── ensure_clause: + │ │ @ EnsureNode (location: (10,1)-(11,4)) + │ │ ├── ensure_keyword_loc: (10,1)-(10,7) = "ensure" + │ │ ├── statements: + │ │ │ @ StatementsNode (location: (10,8)-(10,9)) + │ │ │ └── body: (length: 1) + │ │ │ └── @ CallNode (location: (10,8)-(10,9)) + │ │ │ ├── flags: variable_call, ignore_visibility + │ │ │ ├── receiver: ∅ + │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── name: :b + │ │ │ ├── message_loc: (10,8)-(10,9) = "b" + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── arguments: ∅ + │ │ │ ├── closing_loc: ∅ + │ │ │ └── block: ∅ + │ │ └── 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: (13,6)-(13,7)) + │ │ └── body: (length: 1) + │ │ └── @ CallNode (location: (13,6)-(13,7)) + │ │ ├── flags: variable_call, ignore_visibility + │ │ ├── receiver: ∅ + │ │ ├── call_operator_loc: ∅ + │ │ ├── name: :a + │ │ ├── message_loc: (13,6)-(13,7) = "a" + │ │ ├── opening_loc: ∅ + │ │ ├── arguments: ∅ + │ │ ├── closing_loc: ∅ + │ │ └── block: ∅ + │ ├── rescue_clause: ∅ + │ ├── else_clause: ∅ + │ ├── ensure_clause: + │ │ @ EnsureNode (location: (13,9)-(13,22)) + │ │ ├── ensure_keyword_loc: (13,9)-(13,15) = "ensure" + │ │ ├── statements: + │ │ │ @ StatementsNode (location: (13,16)-(13,17)) + │ │ │ └── body: (length: 1) + │ │ │ └── @ CallNode (location: (13,16)-(13,17)) + │ │ │ ├── flags: variable_call, ignore_visibility + │ │ │ ├── receiver: ∅ + │ │ │ ├── call_operator_loc: ∅ + │ │ │ ├── name: :b + │ │ │ ├── message_loc: (13,16)-(13,17) = "b" + │ │ │ ├── opening_loc: ∅ + │ │ │ ├── arguments: ∅ + │ │ │ ├── closing_loc: ∅ + │ │ │ └── block: ∅ + │ │ └── 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: (15,6)-(21,11)) + │ └── body: (length: 1) + │ └── @ BeginNode (location: (15,6)-(21,11)) + │ ├── begin_keyword_loc: (15,6)-(15,11) = "begin" + │ ├── statements: + │ │ @ StatementsNode (location: (15,11)-(21,7)) + │ │ └── body: (length: 1) + │ │ └── @ CallNode (location: (15,11)-(21,7)) + │ │ ├── flags: ∅ + │ │ ├── receiver: + │ │ │ @ SymbolNode (location: (15,11)-(15,13)) + │ │ │ ├── flags: forced_us_ascii_encoding + │ │ │ ├── opening_loc: (15,11)-(15,12) = ":" + │ │ │ ├── value_loc: (15,12)-(15,13) = "s" + │ │ │ ├── closing_loc: ∅ + │ │ │ └── unescaped: "s" + │ │ ├── call_operator_loc: (15,13)-(15,14) = "." + │ │ ├── name: :l + │ │ ├── message_loc: (15,14)-(15,15) = "l" + │ │ ├── opening_loc: ∅ + │ │ ├── arguments: + │ │ │ @ ArgumentsNode (location: (15,16)-(21,7)) + │ │ │ ├── flags: ∅ + │ │ │ └── arguments: (length: 1) + │ │ │ └── @ BeginNode (location: (15,16)-(21,7)) + │ │ │ ├── begin_keyword_loc: (15,16)-(15,21) = "begin" + │ │ │ ├── statements: ∅ + │ │ │ ├── rescue_clause: ∅ + │ │ │ ├── else_clause: ∅ + │ │ │ ├── ensure_clause: + │ │ │ │ @ EnsureNode (location: (15,22)-(21,7)) + │ │ │ │ ├── ensure_keyword_loc: (15,22)-(15,28) = "ensure" + │ │ │ │ ├── statements: + │ │ │ │ │ @ StatementsNode (location: (15,29)-(21,3)) + │ │ │ │ │ └── body: (length: 1) + │ │ │ │ │ └── @ CallNode (location: (15,29)-(21,3)) + │ │ │ │ │ ├── flags: ∅ + │ │ │ │ │ ├── receiver: + │ │ │ │ │ │ @ ConstantReadNode (location: (15,29)-(15,35)) + │ │ │ │ │ │ └── name: :Module + │ │ │ │ │ ├── call_operator_loc: (15,35)-(15,36) = "." + │ │ │ │ │ ├── name: :new + │ │ │ │ │ ├── message_loc: (15,36)-(15,39) = "new" + │ │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ │ ├── arguments: ∅ + │ │ │ │ │ ├── closing_loc: ∅ + │ │ │ │ │ └── block: + │ │ │ │ │ @ BlockNode (location: (15,40)-(21,3)) + │ │ │ │ │ ├── locals: [] + │ │ │ │ │ ├── parameters: ∅ + │ │ │ │ │ ├── body: + │ │ │ │ │ │ @ StatementsNode (location: (16,2)-(20,5)) + │ │ │ │ │ │ └── body: (length: 1) + │ │ │ │ │ │ └── @ BeginNode (location: (16,2)-(20,5)) + │ │ │ │ │ │ ├── begin_keyword_loc: (16,2)-(16,7) = "begin" + │ │ │ │ │ │ ├── statements: + │ │ │ │ │ │ │ @ StatementsNode (location: (17,4)-(17,9)) + │ │ │ │ │ │ │ └── body: (length: 1) + │ │ │ │ │ │ │ └── @ BreakNode (location: (17,4)-(17,9)) + │ │ │ │ │ │ │ ├── arguments: ∅ + │ │ │ │ │ │ │ └── keyword_loc: (17,4)-(17,9) = "break" + │ │ │ │ │ │ ├── rescue_clause: ∅ + │ │ │ │ │ │ ├── else_clause: ∅ + │ │ │ │ │ │ ├── ensure_clause: + │ │ │ │ │ │ │ @ EnsureNode (location: (18,4)-(20,5)) + │ │ │ │ │ │ │ ├── ensure_keyword_loc: (18,4)-(18,10) = "ensure" + │ │ │ │ │ │ │ ├── statements: + │ │ │ │ │ │ │ │ @ StatementsNode (location: (18,11)-(19,7)) + │ │ │ │ │ │ │ │ └── body: (length: 1) + │ │ │ │ │ │ │ │ └── @ CallNode (location: (18,11)-(19,7)) + │ │ │ │ │ │ │ │ ├── flags: ∅ + │ │ │ │ │ │ │ │ ├── receiver: + │ │ │ │ │ │ │ │ │ @ ConstantReadNode (location: (18,11)-(18,17)) + │ │ │ │ │ │ │ │ │ └── name: :Module + │ │ │ │ │ │ │ │ ├── call_operator_loc: (18,17)-(18,18) = "." + │ │ │ │ │ │ │ │ ├── name: :new + │ │ │ │ │ │ │ │ ├── message_loc: (18,18)-(18,21) = "new" + │ │ │ │ │ │ │ │ ├── opening_loc: ∅ + │ │ │ │ │ │ │ │ ├── arguments: ∅ + │ │ │ │ │ │ │ │ ├── closing_loc: ∅ + │ │ │ │ │ │ │ │ └── block: + │ │ │ │ │ │ │ │ @ BlockNode (location: (18,22)-(19,7)) + │ │ │ │ │ │ │ │ ├── locals: [] + │ │ │ │ │ │ │ │ ├── parameters: ∅ + │ │ │ │ │ │ │ │ ├── body: ∅ + │ │ │ │ │ │ │ │ ├── opening_loc: (18,22)-(18,24) = "do" + │ │ │ │ │ │ │ │ └── closing_loc: (19,4)-(19,7) = "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" + │ │ │ │ └── end_keyword_loc: (21,4)-(21,7) = "end" + │ │ │ └── end_keyword_loc: (21,4)-(21,7) = "end" + │ │ ├── closing_loc: ∅ + │ │ └── block: ∅ + │ ├── rescue_clause: ∅ + │ ├── else_clause: ∅ + │ ├── ensure_clause: ∅ + │ └── end_keyword_loc: (21,8)-(21,11) = "end" + ├── rescue_clause: ∅ + ├── else_clause: ∅ + ├── ensure_clause: ∅ + └── end_keyword_loc: (21,12)-(21,15) = "end" |