summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/whitequark/bug_rescue_empty_else.txt
blob: 52734cc1e9c6b27d30a210989764d3a9753c2dc1 (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
@ ProgramNode (location: (1,0)-(1,34))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(1,34))
    └── body: (length: 1)
        └── @ BeginNode (location: (1,0)-(1,34))
            ├── begin_keyword_loc: (1,0)-(1,5) = "begin"
            ├── statements: ∅
            ├── rescue_clause:
            │   @ RescueNode (location: (1,7)-(1,23))
            │   ├── keyword_loc: (1,7)-(1,13) = "rescue"
            │   ├── exceptions: (length: 1)
            │   │   └── @ ConstantReadNode (location: (1,14)-(1,23))
            │   │       └── name: :LoadError
            │   ├── operator_loc: ∅
            │   ├── reference: ∅
            │   ├── statements: ∅
            │   └── consequent: ∅
            ├── else_clause:
            │   @ ElseNode (location: (1,25)-(1,34))
            │   ├── else_keyword_loc: (1,25)-(1,29) = "else"
            │   ├── statements: ∅
            │   └── end_keyword_loc: (1,31)-(1,34) = "end"
            ├── ensure_clause: ∅
            └── end_keyword_loc: (1,31)-(1,34) = "end"