blob: 6552b4c4055ea7db1255d17cf21686b7a2e4c73f (
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
|
@ ProgramNode (location: (0...16))
├── locals: []
└── statements:
@ StatementsNode (location: (0...16))
└── body: (length: 1)
└── @ DefNode (location: (0...16))
├── name: :f
├── name_loc: (4...5) = "f"
├── receiver: ∅
├── parameters:
│ @ ParametersNode (location: (6...10))
│ ├── requireds: (length: 0)
│ ├── optionals: (length: 0)
│ ├── posts: (length: 0)
│ ├── rest: ∅
│ ├── keywords: (length: 1)
│ │ └── @ KeywordParameterNode (location: (6...10))
│ │ ├── name: :foo
│ │ ├── name_loc: (6...10) = "foo:"
│ │ └── value: ∅
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body: ∅
├── locals: [:foo]
├── def_keyword_loc: (0...3) = "def"
├── operator_loc: ∅
├── lparen_loc: (5...6) = "("
├── rparen_loc: (10...11) = ")"
├── equal_loc: ∅
└── end_keyword_loc: (13...16) = "end"
|