summaryrefslogtreecommitdiff
path: root/test/prism/snapshots/seattlerb/defn_arg_asplat_arg.txt
blob: 3f2bdf44a440e6fbd0d155c443dbb51e33444253 (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
@ ProgramNode (location: (1,0)-(1,29))
├── locals: []
└── statements:
    @ StatementsNode (location: (1,0)-(1,29))
    └── body: (length: 1)
        └── @ DefNode (location: (1,0)-(1,29))
            ├── name: :call
            ├── name_loc: (1,4)-(1,8) = "call"
            ├── receiver: ∅
            ├── parameters:
            │   @ ParametersNode (location: (1,9)-(1,24))
            │   ├── requireds: (length: 1)
            │   │   └── @ RequiredParameterNode (location: (1,9)-(1,15))
            │   │       ├── flags: ∅
            │   │       └── name: :interp
            │   ├── optionals: (length: 0)
            │   ├── rest:
            │   │   @ RestParameterNode (location: (1,17)-(1,18))
            │   │   ├── flags: ∅
            │   │   ├── name: ∅
            │   │   ├── name_loc: ∅
            │   │   └── operator_loc: (1,17)-(1,18) = "*"
            │   ├── posts: (length: 1)
            │   │   └── @ RequiredParameterNode (location: (1,20)-(1,24))
            │   │       ├── flags: ∅
            │   │       └── name: :args
            │   ├── keywords: (length: 0)
            │   ├── keyword_rest: ∅
            │   └── block: ∅
            ├── body: ∅
            ├── locals: [:interp, :args]
            ├── def_keyword_loc: (1,0)-(1,3) = "def"
            ├── operator_loc: ∅
            ├── lparen_loc: (1,8)-(1,9) = "("
            ├── rparen_loc: (1,24)-(1,25) = ")"
            ├── equal_loc: ∅
            └── end_keyword_loc: (1,26)-(1,29) = "end"