summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/parse_line_rescue.txt
blob: cb20d5403bba83ee770df2b41240fb8d2b30e460 (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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
@ ProgramNode (location: (1,0)-(7,3))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(7,3))
    └── body: (length: 1)
        └── @ BeginNode (location: (1,0)-(7,3))
            ├── begin_keyword_loc: (1,0)-(1,5) = "begin"
            ├── statements:
            │   @ StatementsNode (location: (2,2)-(2,3))
            │   └── body: (length: 1)
            │       └── @ CallNode (location: (2,2)-(2,3))
            │           ├── flags: variable_call, ignore_visibility
            │           ├── receiver: ∅
            │           ├── call_operator_loc: ∅
            │           ├── name: :a
            │           ├── message_loc: (2,2)-(2,3) = "a"
            │           ├── opening_loc: ∅
            │           ├── arguments: ∅
            │           ├── closing_loc: ∅
            │           └── block: ∅
            ├── rescue_clause:
            │   @ RescueNode (location: (3,0)-(6,3))
            │   ├── keyword_loc: (3,0)-(3,6) = "rescue"
            │   ├── exceptions: (length: 0)
            │   ├── operator_loc: ∅
            │   ├── reference: ∅
            │   ├── statements:
            │   │   @ StatementsNode (location: (4,2)-(4,3))
            │   │   └── body: (length: 1)
            │   │       └── @ CallNode (location: (4,2)-(4,3))
            │   │           ├── flags: variable_call, ignore_visibility
            │   │           ├── receiver: ∅
            │   │           ├── call_operator_loc: ∅
            │   │           ├── name: :b
            │   │           ├── message_loc: (4,2)-(4,3) = "b"
            │   │           ├── opening_loc: ∅
            │   │           ├── arguments: ∅
            │   │           ├── closing_loc: ∅
            │   │           └── block: ∅
            │   └── consequent:
            │       @ RescueNode (location: (5,0)-(6,3))
            │       ├── keyword_loc: (5,0)-(5,6) = "rescue"
            │       ├── exceptions: (length: 0)
            │       ├── operator_loc: ∅
            │       ├── reference: ∅
            │       ├── statements:
            │       │   @ StatementsNode (location: (6,2)-(6,3))
            │       │   └── body: (length: 1)
            │       │       └── @ CallNode (location: (6,2)-(6,3))
            │       │           ├── flags: variable_call, ignore_visibility
            │       │           ├── receiver: ∅
            │       │           ├── call_operator_loc: ∅
            │       │           ├── name: :c
            │       │           ├── message_loc: (6,2)-(6,3) = "c"
            │       │           ├── opening_loc: ∅
            │       │           ├── arguments: ∅
            │       │           ├── closing_loc: ∅
            │       │           └── block: ∅
            │       └── consequent: ∅
            ├── else_clause: ∅
            ├── ensure_clause: ∅
            └── end_keyword_loc: (7,0)-(7,3) = "end"