blob: 94e8f1ae25787161a9d0f4bca74a4534c27bbcf0 (
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
|
@ ProgramNode (location: (0...28))
├── locals: [:a, :b]
└── statements:
@ StatementsNode (location: (0...28))
└── body: (length: 1)
└── @ ForNode (location: (0...28))
├── index:
│ @ MultiTargetNode (location: (4...8))
│ ├── targets: (length: 2)
│ │ ├── @ LocalVariableTargetNode (location: (4...5))
│ │ │ ├── name: :a
│ │ │ └── depth: 0
│ │ └── @ LocalVariableTargetNode (location: (7...8))
│ │ ├── name: :b
│ │ └── depth: 0
│ ├── lparen_loc: ∅
│ └── rparen_loc: ∅
├── collection:
│ @ CallNode (location: (12...15))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (12...15) = "foo"
│ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: variable_call
│ └── name: "foo"
├── statements:
│ @ StatementsNode (location: (17...23))
│ └── body: (length: 1)
│ └── @ CallNode (location: (17...23))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (17...18) = "p"
│ ├── opening_loc: ∅
│ ├── arguments:
│ │ @ ArgumentsNode (location: (19...23))
│ │ └── arguments: (length: 2)
│ │ ├── @ LocalVariableReadNode (location: (19...20))
│ │ │ ├── name: :a
│ │ │ └── depth: 0
│ │ └── @ LocalVariableReadNode (location: (22...23))
│ │ ├── name: :b
│ │ └── depth: 0
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: ∅
│ └── name: "p"
├── for_keyword_loc: (0...3) = "for"
├── in_keyword_loc: (9...11) = "in"
├── do_keyword_loc: ∅
└── end_keyword_loc: (25...28) = "end"
|