aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots/seattlerb/defn_forward_args.txt
blob: 62e0019de72058c4bb7e541ddc10516d6fd3ca52 (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...23))
├── locals: []
└── statements:
    @ StatementsNode (location: (0...23))
    └── body: (length: 1)
        └── @ DefNode (location: (0...23))
            ├── name: :a
            ├── name_loc: (4...5) = "a"
            ├── receiver: ∅
            ├── parameters:
            │   @ ParametersNode (location: (6...9))
            │   ├── requireds: (length: 0)
            │   ├── optionals: (length: 0)
            │   ├── posts: (length: 0)
            │   ├── rest: ∅
            │   ├── keywords: (length: 0)
            │   ├── keyword_rest:
            │   │   @ ForwardingParameterNode (location: (6...9))
            │   └── block: ∅
            ├── body:
            │   @ StatementsNode (location: (12...18))
            │   └── body: (length: 1)
            │       └── @ CallNode (location: (12...18))
            │           ├── receiver: ∅
            │           ├── call_operator_loc: ∅
            │           ├── message_loc: (12...13) = "b"
            │           ├── opening_loc: (13...14) = "("
            │           ├── arguments:
            │           │   @ ArgumentsNode (location: (14...17))
            │           │   └── arguments: (length: 1)
            │           │       └── @ ForwardingArgumentsNode (location: (14...17))
            │           ├── closing_loc: (17...18) = ")"
            │           ├── block: ∅
            │           ├── flags: 
            │           └── name: "b"
            ├── locals: [:"..."]
            ├── def_keyword_loc: (0...3) = "def"
            ├── operator_loc: ∅
            ├── lparen_loc: (5...6) = "("
            ├── rparen_loc: (9...10) = ")"
            ├── equal_loc: ∅
            └── end_keyword_loc: (20...23) = "end"