Debian Codegraph @

test/prism/snapshots/unparser/corpus/literal/rescue.txt

raw
1 @ ProgramNode (location: (1,0)-(3,27))
2 ├── locals: [:x]
3 └── statements:
4 @ StatementsNode (location: (1,0)-(3,27))
5 └── body: (length: 3)
6 ├── @ RescueModifierNode (location: (1,0)-(1,14))
7 │ ├── expression:
8 │ │ @ CallNode (location: (1,0)-(1,3))
9 │ │ ├── flags: variable_call
10 │ │ ├── receiver: ∅
11 │ │ ├── call_operator_loc: ∅
12 │ │ ├── name: :foo
13 │ │ ├── message_loc: (1,0)-(1,3) = "foo"
14 │ │ ├── opening_loc: ∅
15 │ │ ├── arguments: ∅
16 │ │ ├── closing_loc: ∅
17 │ │ └── block: ∅
18 │ ├── keyword_loc: (1,4)-(1,10) = "rescue"
19 │ └── rescue_expression:
20 │ @ CallNode (location: (1,11)-(1,14))
21 │ ├── flags: variable_call
22 │ ├── receiver: ∅
23 │ ├── call_operator_loc: ∅
24 │ ├── name: :bar
25 │ ├── message_loc: (1,11)-(1,14) = "bar"
26 │ ├── opening_loc: ∅
27 │ ├── arguments: ∅
28 │ ├── closing_loc: ∅
29 │ └── block: ∅
30 ├── @ RescueModifierNode (location: (2,0)-(2,21))
31 │ ├── expression:
32 │ │ @ CallNode (location: (2,0)-(2,3))
33 │ │ ├── flags: variable_call
34 │ │ ├── receiver: ∅
35 │ │ ├── call_operator_loc: ∅
36 │ │ ├── name: :foo
37 │ │ ├── message_loc: (2,0)-(2,3) = "foo"
38 │ │ ├── opening_loc: ∅
39 │ │ ├── arguments: ∅
40 │ │ ├── closing_loc: ∅
41 │ │ └── block: ∅
42 │ ├── keyword_loc: (2,4)-(2,10) = "rescue"
43 │ └── rescue_expression:
44 │ @ ReturnNode (location: (2,11)-(2,21))
45 │ ├── keyword_loc: (2,11)-(2,17) = "return"
46 │ └── arguments:
47 │ @ ArgumentsNode (location: (2,18)-(2,21))
48 │ ├── flags: ∅
49 │ └── arguments: (length: 1)
50 │ └── @ CallNode (location: (2,18)-(2,21))
51 │ ├── flags: variable_call
52 │ ├── receiver: ∅
53 │ ├── call_operator_loc: ∅
54 │ ├── name: :bar
55 │ ├── message_loc: (2,18)-(2,21) = "bar"
56 │ ├── opening_loc: ∅
57 │ ├── arguments: ∅
58 │ ├── closing_loc: ∅
59 │ └── block: ∅
60 └── @ LocalVariableWriteNode (location: (3,0)-(3,27))
61 ├── name: :x
62 ├── depth: 0
63 ├── name_loc: (3,0)-(3,1) = "x"
64 ├── value:
65 │ @ ParenthesesNode (location: (3,4)-(3,27))
66 │ ├── body:
67 │ │ @ StatementsNode (location: (3,5)-(3,26))
68 │ │ └── body: (length: 1)
69 │ │ └── @ RescueModifierNode (location: (3,5)-(3,26))
70 │ │ ├── expression:
71 │ │ │ @ CallNode (location: (3,5)-(3,8))
72 │ │ │ ├── flags: variable_call
73 │ │ │ ├── receiver: ∅
74 │ │ │ ├── call_operator_loc: ∅
75 │ │ │ ├── name: :foo
76 │ │ │ ├── message_loc: (3,5)-(3,8) = "foo"
77 │ │ │ ├── opening_loc: ∅
78 │ │ │ ├── arguments: ∅
79 │ │ │ ├── closing_loc: ∅
80 │ │ │ └── block: ∅
81 │ │ ├── keyword_loc: (3,9)-(3,15) = "rescue"
82 │ │ └── rescue_expression:
83 │ │ @ ReturnNode (location: (3,16)-(3,26))
84 │ │ ├── keyword_loc: (3,16)-(3,22) = "return"
85 │ │ └── arguments:
86 │ │ @ ArgumentsNode (location: (3,23)-(3,26))
87 │ │ ├── flags: ∅
88 │ │ └── arguments: (length: 1)
89 │ │ └── @ CallNode (location: (3,23)-(3,26))
90 │ │ ├── flags: variable_call
91 │ │ ├── receiver: ∅
92 │ │ ├── call_operator_loc: ∅
93 │ │ ├── name: :bar
94 │ │ ├── message_loc: (3,23)-(3,26) = "bar"
95 │ │ ├── opening_loc: ∅
96 │ │ ├── arguments: ∅
97 │ │ ├── closing_loc: ∅
98 │ │ └── block: ∅
99 │ ├── opening_loc: (3,4)-(3,5) = "("
100 │ └── closing_loc: (3,26)-(3,27) = ")"
101 └── operator_loc: (3,2)-(3,3) = "="