summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/begin_rescue_else_ensure_no_bodies.txt
blob: 02e1f097ac4eab8d007531b6d3c4385329694bf5 (plain)
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
@ 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: ∅
            ├── rescue_clause:
            │   @ RescueNode (location: (3,0)-(3,6))
            │   ├── keyword_loc: (3,0)-(3,6) = "rescue"
            │   ├── exceptions: (length: 0)
            │   ├── operator_loc: ∅
            │   ├── reference: ∅
            │   ├── statements: ∅
            │   └── consequent: ∅
            ├── else_clause:
            │   @ ElseNode (location: (5,0)-(7,6))
            │   ├── else_keyword_loc: (5,0)-(5,4) = "else"
            │   ├── statements: ∅
            │   └── 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: ∅
            │   └── end_keyword_loc: (9,0)-(9,3) = "end"
            └── end_keyword_loc: (9,0)-(9,3) = "end"