blob: d4bb8a49d6844e451a793582d9c11acfa52e1da1 (
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
|
@ ProgramNode (location: (0...24))
├── locals: []
└── statements:
@ StatementsNode (location: (0...24))
└── body: (length: 1)
└── @ DefNode (location: (0...24))
├── name: :f
├── name_loc: (4...5) = "f"
├── receiver: ∅
├── parameters:
│ @ ParametersNode (location: (7...19))
│ ├── requireds: (length: 0)
│ ├── optionals: (length: 1)
│ │ └── @ OptionalParameterNode (location: (7...12))
│ │ ├── name: :a
│ │ ├── name_loc: (7...8) = "a"
│ │ ├── operator_loc: (9...10) = "="
│ │ └── value:
│ │ @ IntegerNode (location: (11...12))
│ │ └── flags: decimal
│ ├── rest:
│ │ @ RestParameterNode (location: (14...16))
│ │ ├── name: :b
│ │ ├── name_loc: (15...16) = "b"
│ │ └── operator_loc: (14...15) = "*"
│ ├── posts: (length: 1)
│ │ └── @ RequiredParameterNode (location: (18...19))
│ │ └── name: :c
│ ├── keywords: (length: 0)
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body: ∅
├── locals: [:a, :b, :c]
├── def_keyword_loc: (0...3) = "def"
├── operator_loc: ∅
├── lparen_loc: (6...7) = "("
├── rparen_loc: (19...20) = ")"
├── equal_loc: ∅
└── end_keyword_loc: (21...24) = "end"
|