aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots/whitequark/trailing_forward_arg.txt
blob: a3a26d4b3b760ee91ed5f9cf5e31bb9376c763e2 (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
@ ProgramNode (location: (0...40))
├── locals: []
└── statements:
    @ StatementsNode (location: (0...40))
    └── body: (length: 1)
        └── @ DefNode (location: (0...40))
            ├── name: :foo
            ├── name_loc: (4...7) = "foo"
            ├── receiver: ∅
            ├── parameters:
            │   @ ParametersNode (location: (8...17))
            │   ├── requireds: (length: 2)
            │   │   ├── @ RequiredParameterNode (location: (8...9))
            │   │   │   └── name: :a
            │   │   └── @ RequiredParameterNode (location: (11...12))
            │   │       └── name: :b
            │   ├── optionals: (length: 0)
            │   ├── rest: ∅
            │   ├── posts: (length: 0)
            │   ├── keywords: (length: 0)
            │   ├── keyword_rest:
            │   │   @ ForwardingParameterNode (location: (14...17))
            │   └── block: ∅
            ├── body:
            │   @ StatementsNode (location: (20...35))
            │   └── body: (length: 1)
            │       └── @ CallNode (location: (20...35))
            │           ├── receiver: ∅
            │           ├── call_operator_loc: ∅
            │           ├── message_loc: (20...23) = "bar"
            │           ├── opening_loc: (23...24) = "("
            │           ├── arguments:
            │           │   @ ArgumentsNode (location: (24...34))
            │           │   └── arguments: (length: 3)
            │           │       ├── @ LocalVariableReadNode (location: (24...25))
            │           │       │   ├── name: :a
            │           │       │   └── depth: 0
            │           │       ├── @ IntegerNode (location: (27...29))
            │           │       │   └── flags: decimal
            │           │       └── @ ForwardingArgumentsNode (location: (31...34))
            │           ├── closing_loc: (34...35) = ")"
            │           ├── block: ∅
            │           ├── flags: 
            │           └── name: "bar"
            ├── locals: [:a, :b, :"..."]
            ├── def_keyword_loc: (0...3) = "def"
            ├── operator_loc: ∅
            ├── lparen_loc: (7...8) = "("
            ├── rparen_loc: (17...18) = ")"
            ├── equal_loc: ∅
            └── end_keyword_loc: (37...40) = "end"