summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/whitequark/return.txt
blob: 5c982591039c9e4d1ed468ba3385420f1ae54a58 (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
@ ProgramNode (location: (1,0)-(7,11))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(7,11))
    └── body: (length: 4)
        ├── @ ReturnNode (location: (1,0)-(1,6))
        │   ├── flags: ∅
        │   ├── keyword_loc: (1,0)-(1,6) = "return"
        │   └── arguments: ∅
        ├── @ ReturnNode (location: (3,0)-(3,10))
        │   ├── flags: ∅
        │   ├── keyword_loc: (3,0)-(3,6) = "return"
        │   └── arguments:
        │       @ ArgumentsNode (location: (3,7)-(3,10))
        │       ├── flags: ∅
        │       └── arguments: (length: 1)
        │           └── @ CallNode (location: (3,7)-(3,10))
        │               ├── flags: variable_call, ignore_visibility
        │               ├── receiver: ∅
        │               ├── call_operator_loc: ∅
        │               ├── name: :foo
        │               ├── message_loc: (3,7)-(3,10) = "foo"
        │               ├── opening_loc: ∅
        │               ├── arguments: ∅
        │               ├── closing_loc: ∅
        │               └── block: ∅
        ├── @ ReturnNode (location: (5,0)-(5,8))
        │   ├── flags: ∅
        │   ├── keyword_loc: (5,0)-(5,6) = "return"
        │   └── arguments:
        │       @ ArgumentsNode (location: (5,6)-(5,8))
        │       ├── flags: ∅
        │       └── arguments: (length: 1)
        │           └── @ ParenthesesNode (location: (5,6)-(5,8))
        │               ├── body: ∅
        │               ├── opening_loc: (5,6)-(5,7) = "("
        │               └── closing_loc: (5,7)-(5,8) = ")"
        └── @ ReturnNode (location: (7,0)-(7,11))
            ├── flags: ∅
            ├── keyword_loc: (7,0)-(7,6) = "return"
            └── arguments:
                @ ArgumentsNode (location: (7,6)-(7,11))
                ├── flags: ∅
                └── arguments: (length: 1)
                    └── @ ParenthesesNode (location: (7,6)-(7,11))
                        ├── body:
                        │   @ StatementsNode (location: (7,7)-(7,10))
                        │   └── body: (length: 1)
                        │       └── @ CallNode (location: (7,7)-(7,10))
                        │           ├── flags: variable_call, ignore_visibility
                        │           ├── receiver: ∅
                        │           ├── call_operator_loc: ∅
                        │           ├── name: :foo
                        │           ├── message_loc: (7,7)-(7,10) = "foo"
                        │           ├── opening_loc: ∅
                        │           ├── arguments: ∅
                        │           ├── closing_loc: ∅
                        │           └── block: ∅
                        ├── opening_loc: (7,6)-(7,7) = "("
                        └── closing_loc: (7,10)-(7,11) = ")"