blob: 8da20af65ddc89f0af45d20d163c1addd2f9841a (
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: (0...33))
├── locals: []
└── statements:
@ StatementsNode (location: (0...33))
└── body: (length: 2)
├── @ CallNode (location: (0...3))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (0...1) = "a"
│ ├── opening_loc: ∅
│ ├── arguments:
│ │ @ ArgumentsNode (location: (2...3))
│ │ └── arguments: (length: 1)
│ │ └── @ IntegerNode (location: (2...3))
│ │ └── flags: decimal
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: ∅
│ └── name: "a"
└── @ CallNode (location: (4...33))
├── receiver:
│ @ CallNode (location: (4...5))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (4...5) = "a"
│ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: ∅
│ ├── block: ∅
│ ├── flags: variable_call
│ └── name: "a"
├── call_operator_loc: (5...6) = "."
├── message_loc: (6...7) = "b"
├── opening_loc: ∅
├── arguments: ∅
├── closing_loc: ∅
├── block:
│ @ BlockNode (location: (8...33))
│ ├── locals: [:c]
│ ├── parameters:
│ │ @ BlockParametersNode (location: (11...14))
│ │ ├── parameters:
│ │ │ @ ParametersNode (location: (12...13))
│ │ │ ├── requireds: (length: 1)
│ │ │ │ └── @ RequiredParameterNode (location: (12...13))
│ │ │ │ └── name: :c
│ │ │ ├── optionals: (length: 0)
│ │ │ ├── rest: ∅
│ │ │ ├── posts: (length: 0)
│ │ │ ├── keywords: (length: 0)
│ │ │ ├── keyword_rest: ∅
│ │ │ └── block: ∅
│ │ ├── locals: (length: 0)
│ │ ├── opening_loc: (11...12) = "|"
│ │ └── closing_loc: (13...14) = "|"
│ ├── body: ∅
│ ├── opening_loc: (8...10) = "do"
│ └── closing_loc: (30...33) = "end"
├── flags: ∅
└── name: "b"
|