aboutsummaryrefslogtreecommitdiffstats
path: root/test/yarp/snapshots/seattlerb/defn_kwarg_env.txt
blob: 3def0b466a5c56d67a64b46f30b998d3aa363a61 (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
@ ProgramNode (location: (0...45))
├── locals: []
└── statements:
    @ StatementsNode (location: (0...45))
    └── body: (length: 1)
        └── @ DefNode (location: (0...45))
            ├── name: :test
            ├── name_loc: (4...8) = "test"
            ├── receiver: ∅
            ├── parameters:
            │   @ ParametersNode (location: (9...18))
            │   ├── requireds: (length: 0)
            │   ├── optionals: (length: 0)
            │   ├── posts: (length: 0)
            │   ├── rest: ∅
            │   ├── keywords: (length: 0)
            │   ├── keyword_rest:
            │   │   @ KeywordRestParameterNode (location: (9...18))
            │   │   ├── name: :testing
            │   │   ├── name_loc: (11...18) = "testing"
            │   │   └── operator_loc: (9...11) = "**"
            │   └── block: ∅
            ├── body:
            │   @ StatementsNode (location: (20...41))
            │   └── body: (length: 1)
            │       └── @ CallNode (location: (20...41))
            │           ├── receiver: ∅
            │           ├── call_operator_loc: ∅
            │           ├── message_loc: (20...30) = "test_splat"
            │           ├── opening_loc: (30...31) = "("
            │           ├── arguments:
            │           │   @ ArgumentsNode (location: (31...40))
            │           │   └── arguments: (length: 1)
            │           │       └── @ KeywordHashNode (location: (31...40))
            │           │           └── elements: (length: 1)
            │           │               └── @ AssocSplatNode (location: (31...40))
            │           │                   ├── value:
            │           │                   │   @ LocalVariableReadNode (location: (33...40))
            │           │                   │   ├── name: :testing
            │           │                   │   └── depth: 0
            │           │                   └── operator_loc: (31...33) = "**"
            │           ├── closing_loc: (40...41) = ")"
            │           ├── block: ∅
            │           ├── flags: 
            │           └── name: "test_splat"
            ├── locals: [:testing]
            ├── def_keyword_loc: (0...3) = "def"
            ├── operator_loc: ∅
            ├── lparen_loc: (8...9) = "("
            ├── rparen_loc: (18...19) = ")"
            ├── equal_loc: ∅
            └── end_keyword_loc: (42...45) = "end"