blob: 5a32c81517d2d9d6ac153553b46de8c2b800fdc9 (
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
|
@ ProgramNode (location: (0...23))
├── locals: []
└── statements:
@ StatementsNode (location: (0...23))
└── body: (length: 1)
└── @ DefNode (location: (0...23))
├── name: :foo
├── name_loc: (4...7) = "foo"
├── receiver: ∅
├── parameters:
│ @ ParametersNode (location: (8...9))
│ ├── requireds: (length: 0)
│ ├── optionals: (length: 0)
│ ├── posts: (length: 0)
│ ├── rest: ∅
│ ├── keywords: (length: 0)
│ ├── keyword_rest: ∅
│ └── block:
│ @ BlockParameterNode (location: (8...9))
│ ├── name: nil
│ ├── name_loc: ∅
│ └── operator_loc: (8...9) = "&"
├── body:
│ @ StatementsNode (location: (12...18))
│ └── body: (length: 1)
│ └── @ CallNode (location: (12...18))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (12...15) = "bar"
│ ├── opening_loc: (15...16) = "("
│ ├── arguments:
│ │ @ ArgumentsNode (location: (16...17))
│ │ └── arguments: (length: 1)
│ │ └── @ BlockArgumentNode (location: (16...17))
│ │ ├── expression: ∅
│ │ └── operator_loc: (16...17) = "&"
│ ├── closing_loc: (17...18) = ")"
│ ├── block: ∅
│ ├── flags:
│ └── name: "bar"
├── locals: [:&]
├── def_keyword_loc: (0...3) = "def"
├── operator_loc: ∅
├── lparen_loc: (7...8) = "("
├── rparen_loc: (9...10) = ")"
├── equal_loc: ∅
└── end_keyword_loc: (20...23) = "end"
|