1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
@ ProgramNode (location: (1,0)-(9,3))
├── locals: []
└── statements:
@ StatementsNode (location: (1,0)-(9,3))
└── body: (length: 1)
└── @ BeginNode (location: (1,0)-(9,3))
├── begin_keyword_loc: (1,0)-(1,5) = "begin"
├── statements:
│ @ StatementsNode (location: (2,2)-(2,3))
│ └── body: (length: 1)
│ └── @ IntegerNode (location: (2,2)-(2,3))
│ ├── flags: decimal
│ └── value: 1
├── rescue_clause:
│ @ RescueNode (location: (3,0)-(4,3))
│ ├── keyword_loc: (3,0)-(3,6) = "rescue"
│ ├── exceptions: (length: 0)
│ ├── operator_loc: ∅
│ ├── reference: ∅
│ ├── statements:
│ │ @ StatementsNode (location: (4,2)-(4,3))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (4,2)-(4,3))
│ │ ├── flags: decimal
│ │ └── value: 2
│ └── consequent: ∅
├── else_clause:
│ @ ElseNode (location: (5,0)-(7,6))
│ ├── else_keyword_loc: (5,0)-(5,4) = "else"
│ ├── statements:
│ │ @ StatementsNode (location: (6,2)-(6,3))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (6,2)-(6,3))
│ │ ├── flags: decimal
│ │ └── value: 3
│ └── end_keyword_loc: (7,0)-(7,6) = "ensure"
├── ensure_clause:
│ @ EnsureNode (location: (7,0)-(9,3))
│ ├── ensure_keyword_loc: (7,0)-(7,6) = "ensure"
│ ├── statements:
│ │ @ StatementsNode (location: (8,2)-(8,3))
│ │ └── body: (length: 1)
│ │ └── @ IntegerNode (location: (8,2)-(8,3))
│ │ ├── flags: decimal
│ │ └── value: 4
│ └── end_keyword_loc: (9,0)-(9,3) = "end"
└── end_keyword_loc: (9,0)-(9,3) = "end"
|