blob: 12da5265b9858f591ffb64eedb350a09b703f1ce (
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...26))
├── locals: []
└── statements:
@ StatementsNode (location: (0...26))
└── body: (length: 1)
└── @ BreakNode (location: (0...26))
├── arguments:
│ @ ArgumentsNode (location: (6...26))
│ └── arguments: (length: 1)
│ └── @ CallNode (location: (6...26))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (6...9) = "foo"
│ ├── opening_loc: ∅
│ ├── arguments:
│ │ @ ArgumentsNode (location: (10...13))
│ │ └── arguments: (length: 1)
│ │ └── @ CallNode (location: (10...13))
│ │ ├── receiver: ∅
│ │ ├── call_operator_loc: ∅
│ │ ├── message_loc: (10...13) = "arg"
│ │ ├── opening_loc: ∅
│ │ ├── arguments: ∅
│ │ ├── closing_loc: ∅
│ │ ├── block: ∅
│ │ ├── flags: variable_call
│ │ └── name: "arg"
│ ├── closing_loc: ∅
│ ├── block:
│ │ @ BlockNode (location: (14...26))
│ │ ├── locals: [:bar]
│ │ ├── parameters:
│ │ │ @ BlockParametersNode (location: (17...22))
│ │ │ ├── parameters:
│ │ │ │ @ ParametersNode (location: (18...21))
│ │ │ │ ├── requireds: (length: 1)
│ │ │ │ │ └── @ RequiredParameterNode (location: (18...21))
│ │ │ │ │ └── name: :bar
│ │ │ │ ├── optionals: (length: 0)
│ │ │ │ ├── posts: (length: 0)
│ │ │ │ ├── rest: ∅
│ │ │ │ ├── keywords: (length: 0)
│ │ │ │ ├── keyword_rest: ∅
│ │ │ │ └── block: ∅
│ │ │ ├── locals: (length: 0)
│ │ │ ├── opening_loc: (17...18) = "|"
│ │ │ └── closing_loc: (21...22) = "|"
│ │ ├── body: ∅
│ │ ├── opening_loc: (14...16) = "do"
│ │ └── closing_loc: (23...26) = "end"
│ ├── flags:
│ └── name: "foo"
└── keyword_loc: (0...5) = "break"
|