blob: d1903f4cd389739cace545bc522251404ad527b5 (
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
|
@ ProgramNode (location: (0...12))
├── locals: []
└── statements:
@ StatementsNode (location: (0...12))
└── body: (length: 1)
└── @ CallNode (location: (0...12))
├── receiver: ∅
├── call_operator_loc: ∅
├── message_loc: (0...1) = "a"
├── opening_loc: ∅
├── arguments: ∅
├── closing_loc: ∅
├── block:
│ @ BlockNode (location: (2...12))
│ ├── locals: [:b]
│ ├── parameters:
│ │ @ BlockParametersNode (location: (4...10))
│ │ ├── parameters:
│ │ │ @ ParametersNode (location: (5...9))
│ │ │ ├── requireds: (length: 0)
│ │ │ ├── optionals: (length: 0)
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 1)
│ │ │ │ └── @ KeywordParameterNode (location: (5...9))
│ │ │ │ ├── name: :b
│ │ │ │ ├── name_loc: (5...7) = "b:"
│ │ │ │ └── value:
│ │ │ │ @ IntegerNode (location: (8...9))
│ │ │ │ └── flags: decimal
│ │ │ ├── keyword_rest: ∅
│ │ │ └── block: ∅
│ │ ├── locals: (length: 0)
│ │ ├── opening_loc: (4...5) = "|"
│ │ └── closing_loc: (9...10) = "|"
│ ├── body: ∅
│ ├── opening_loc: (2...3) = "{"
│ └── closing_loc: (11...12) = "}"
├── flags: ∅
└── name: "a"
|