blob: d36409bb842747951f154a99c4b4539b5c9b78fc (
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
|
@ 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: (6...19))
│ ├── requireds: (length: 1)
│ │ └── @ RequiredParameterNode (location: (6...7))
│ │ └── name: :a
│ ├── optionals: (length: 0)
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 2)
│ │ ├── @ KeywordParameterNode (location: (9...13))
│ │ │ ├── name: :b
│ │ │ ├── name_loc: (9...11) = "b:"
│ │ │ └── value:
│ │ │ @ IntegerNode (location: (12...13))
│ │ │ └── flags: decimal
│ │ └── @ KeywordParameterNode (location: (15...19))
│ │ ├── name: :c
│ │ ├── name_loc: (15...17) = "c:"
│ │ └── value:
│ │ @ IntegerNode (location: (18...19))
│ │ └── flags: decimal
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body: ∅
├── locals: [:a, :b, :c]
├── def_keyword_loc: (0...3) = "def"
├── operator_loc: ∅
├── lparen_loc: (5...6) = "("
├── rparen_loc: (19...20) = ")"
├── equal_loc: ∅
└── end_keyword_loc: (21...24) = "end"
|