blob: 3c6c950a9877549135f27ff783985873e7d35fe8 (
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
|
@ ProgramNode (location: (0...20))
├── locals: []
└── statements:
@ StatementsNode (location: (0...20))
└── body: (length: 1)
└── @ CallNode (location: (0...20))
├── receiver: ∅
├── call_operator_loc: ∅
├── message_loc: (0...2) = "bl"
├── opening_loc: ∅
├── arguments: ∅
├── closing_loc: ∅
├── block:
│ @ BlockNode (location: (3...20))
│ ├── locals: [:kw]
│ ├── parameters:
│ │ @ BlockParametersNode (location: (5...15))
│ │ ├── parameters:
│ │ │ @ ParametersNode (location: (6...14))
│ │ │ ├── requireds: (length: 0)
│ │ │ ├── optionals: (length: 0)
│ │ │ ├── posts: (length: 0)
│ │ │ ├── rest: ∅
│ │ │ ├── keywords: (length: 1)
│ │ │ │ └── @ KeywordParameterNode (location: (6...14))
│ │ │ │ ├── name: :kw
│ │ │ │ ├── name_loc: (6...9) = "kw:"
│ │ │ │ └── value:
│ │ │ │ @ SymbolNode (location: (10...14))
│ │ │ │ ├── opening_loc: (10...11) = ":"
│ │ │ │ ├── value_loc: (11...14) = "val"
│ │ │ │ ├── closing_loc: ∅
│ │ │ │ └── unescaped: "val"
│ │ │ ├── keyword_rest: ∅
│ │ │ └── block: ∅
│ │ ├── locals: (length: 0)
│ │ ├── opening_loc: (5...6) = "|"
│ │ └── closing_loc: (14...15) = "|"
│ ├── body:
│ │ @ StatementsNode (location: (16...18))
│ │ └── body: (length: 1)
│ │ └── @ LocalVariableReadNode (location: (16...18))
│ │ ├── name: :kw
│ │ └── depth: 0
│ ├── opening_loc: (3...4) = "{"
│ └── closing_loc: (19...20) = "}"
├── flags:
└── name: "bl"
|