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