blob: 30982bf9b724456cbe731fba266d1c10e442a0a8 (
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
57
58
59
60
|
@ ProgramNode (location: (1...30))
├── locals: [:b, :a, :c]
└── statements:
@ StatementsNode (location: (1...30))
└── body: (length: 2)
├── @ MultiWriteNode (location: (1...13))
│ ├── targets: (length: 1)
│ │ └── @ MultiTargetNode (location: (1...6))
│ │ ├── targets: (length: 2)
│ │ │ ├── @ LocalVariableTargetNode (location: (2...3))
│ │ │ │ ├── name: :b
│ │ │ │ └── depth: 0
│ │ │ └── @ SplatNode (location: (3...4))
│ │ │ ├── operator_loc: (3...4) = ","
│ │ │ └── expression: ∅
│ │ ├── lparen_loc: (1...2) = "("
│ │ └── rparen_loc: (5...6) = ")"
│ ├── lparen_loc: ∅
│ ├── rparen_loc: ∅
│ ├── operator_loc: (8...9) = "="
│ └── value:
│ @ CallNode (location: (10...13))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (10...13) = "foo"
│ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: variable_call
│ └── name: "foo"
└── @ MultiWriteNode (location: (15...30))
├── targets: (length: 2)
│ ├── @ LocalVariableTargetNode (location: (15...16))
│ │ ├── name: :a
│ │ └── depth: 0
│ └── @ MultiTargetNode (location: (18...24))
│ ├── targets: (length: 2)
│ │ ├── @ LocalVariableTargetNode (location: (19...20))
│ │ │ ├── name: :b
│ │ │ └── depth: 0
│ │ └── @ LocalVariableTargetNode (location: (22...23))
│ │ ├── name: :c
│ │ └── depth: 0
│ ├── lparen_loc: (18...19) = "("
│ └── rparen_loc: (23...24) = ")"
├── lparen_loc: ∅
├── rparen_loc: ∅
├── operator_loc: (25...26) = "="
└── value:
@ CallNode (location: (27...30))
├── receiver: ∅
├── call_operator_loc: ∅
├── message_loc: (27...30) = "foo"
├── opening_loc: ∅
├── arguments: ∅
├── closing_loc: ∅
├── block: ∅
├── flags: variable_call
└── name: "foo"
|