blob: 2d2200365c70bff143885753dbaa17bbf166f7c3 (
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
|
@ ProgramNode (location: (0...19))
├── locals: [:m]
└── statements:
@ StatementsNode (location: (0...19))
└── body: (length: 1)
└── @ LocalVariableWriteNode (location: (0...19))
├── name: :m
├── depth: 0
├── name_loc: (0...1) = "m"
├── value:
│ @ LambdaNode (location: (4...19))
│ ├── locals: [:args]
│ ├── operator_loc: (4...6) = "->"
│ ├── opening_loc: (13...15) = "do"
│ ├── closing_loc: (16...19) = "end"
│ ├── parameters:
│ │ @ BlockParametersNode (location: (7...12))
│ │ ├── parameters:
│ │ │ @ ParametersNode (location: (7...12))
│ │ │ ├── requireds: (length: 0)
│ │ │ ├── optionals: (length: 0)
│ │ │ ├── posts: (length: 0)
│ │ │ ├── rest:
│ │ │ │ @ RestParameterNode (location: (7...12))
│ │ │ │ ├── name: :args
│ │ │ │ ├── name_loc: (8...12) = "args"
│ │ │ │ └── operator_loc: (7...8) = "*"
│ │ │ ├── keywords: (length: 0)
│ │ │ ├── keyword_rest: ∅
│ │ │ └── block: ∅
│ │ ├── locals: (length: 0)
│ │ ├── opening_loc: ∅
│ │ └── closing_loc: ∅
│ └── body: ∅
└── operator_loc: (2...3) = "="
|