aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots/seattlerb/defn_args_forward_args.txt
blob: 7e585e396c18b586e96c721119b07ef583048c2b (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
@ ProgramNode (location: (0...41))
├── locals: []
└── statements:
    @ StatementsNode (location: (0...41))
    └── body: (length: 1)
        └── @ DefNode (location: (0...41))
            ├── name: :a
            ├── name_loc: (4...5) = "a"
            ├── receiver: ∅
            ├── parameters:
            │   @ ParametersNode (location: (6...18))
            │   ├── requireds: (length: 3)
            │   │   ├── @ RequiredParameterNode (location: (6...7))
            │   │   │   └── name: :x
            │   │   ├── @ RequiredParameterNode (location: (9...10))
            │   │   │   └── name: :y
            │   │   └── @ RequiredParameterNode (location: (12...13))
            │   │       └── name: :z
            │   ├── optionals: (length: 0)
            │   ├── rest: ∅
            │   ├── posts: (length: 0)
            │   ├── keywords: (length: 0)
            │   ├── keyword_rest:
            │   │   @ ForwardingParameterNode (location: (15...18))
            │   └── block: ∅
            ├── body:
            │   @ StatementsNode (location: (21...36))
            │   └── body: (length: 1)
            │       └── @ CallNode (location: (21...36))
            │           ├── receiver: ∅
            │           ├── call_operator_loc: ∅
            │           ├── message_loc: (21...22) = "b"
            │           ├── opening_loc: (22...23) = "("
            │           ├── arguments:
            │           │   @ ArgumentsNode (location: (23...35))
            │           │   └── arguments: (length: 3)
            │           │       ├── @ SymbolNode (location: (23...27))
            │           │       │   ├── opening_loc: (23...24) = ":"
            │           │       │   ├── value_loc: (24...27) = "get"
            │           │       │   ├── closing_loc: ∅
            │           │       │   └── unescaped: "get"
            │           │       ├── @ LocalVariableReadNode (location: (29...30))
            │           │       │   ├── name: :z
            │           │       │   └── depth: 0
            │           │       └── @ ForwardingArgumentsNode (location: (32...35))
            │           ├── closing_loc: (35...36) = ")"
            │           ├── block: ∅
            │           ├── flags: ∅
            │           └── name: "b"
            ├── locals: [:x, :y, :z, :"..."]
            ├── def_keyword_loc: (0...3) = "def"
            ├── operator_loc: ∅
            ├── lparen_loc: (5...6) = "("
            ├── rparen_loc: (18...19) = ")"
            ├── equal_loc: ∅
            └── end_keyword_loc: (38...41) = "end"