aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots/whitequark/forward_arg.txt
blob: ff91265da91c093c19a5fb7fac944075d9269749 (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
@ ProgramNode (location: (0...27))
├── locals: []
└── statements:
    @ StatementsNode (location: (0...27))
    └── body: (length: 1)
        └── @ DefNode (location: (0...27))
            ├── name: :foo
            ├── name_loc: (4...7) = "foo"
            ├── receiver: ∅
            ├── parameters:
            │   @ ParametersNode (location: (8...11))
            │   ├── requireds: (length: 0)
            │   ├── optionals: (length: 0)
            │   ├── rest: ∅
            │   ├── posts: (length: 0)
            │   ├── keywords: (length: 0)
            │   ├── keyword_rest:
            │   │   @ ForwardingParameterNode (location: (8...11))
            │   └── block: ∅
            ├── body:
            │   @ StatementsNode (location: (14...22))
            │   └── body: (length: 1)
            │       └── @ CallNode (location: (14...22))
            │           ├── receiver: ∅
            │           ├── call_operator_loc: ∅
            │           ├── message_loc: (14...17) = "bar"
            │           ├── opening_loc: (17...18) = "("
            │           ├── arguments:
            │           │   @ ArgumentsNode (location: (18...21))
            │           │   └── arguments: (length: 1)
            │           │       └── @ ForwardingArgumentsNode (location: (18...21))
            │           ├── closing_loc: (21...22) = ")"
            │           ├── block: ∅
            │           ├── flags: 
            │           └── name: "bar"
            ├── locals: [:"..."]
            ├── def_keyword_loc: (0...3) = "def"
            ├── operator_loc: ∅
            ├── lparen_loc: (7...8) = "("
            ├── rparen_loc: (11...12) = ")"
            ├── equal_loc: ∅
            └── end_keyword_loc: (24...27) = "end"