blob: 6fd9903e42527bd5949a7161caadc692c6be220d (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
@ ProgramNode (location: (0...45))
├── locals: []
└── statements:
@ StatementsNode (location: (0...45))
└── body: (length: 1)
└── @ DefNode (location: (0...45))
├── name: :foo
├── name_loc: (4...7) = "foo"
├── receiver: ∅
├── parameters:
│ @ ParametersNode (location: (8...20))
│ ├── requireds: (length: 1)
│ │ └── @ RequiredParameterNode (location: (8...16))
│ │ └── name: :argument
│ ├── optionals: (length: 0)
│ ├── posts: (length: 0)
│ ├── rest: ∅
│ ├── keywords: (length: 0)
│ ├── keyword_rest:
│ │ @ KeywordRestParameterNode (location: (18...20))
│ │ ├── name: nil
│ │ ├── name_loc: ∅
│ │ └── operator_loc: (18...20) = "**"
│ └── block: ∅
├── body:
│ @ StatementsNode (location: (23...40))
│ └── body: (length: 1)
│ └── @ CallNode (location: (23...40))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (23...26) = "bar"
│ ├── opening_loc: (26...27) = "("
│ ├── arguments:
│ │ @ ArgumentsNode (location: (27...39))
│ │ └── arguments: (length: 2)
│ │ ├── @ LocalVariableReadNode (location: (27...35))
│ │ │ ├── name: :argument
│ │ │ └── depth: 0
│ │ └── @ KeywordHashNode (location: (37...39))
│ │ └── elements: (length: 1)
│ │ └── @ AssocSplatNode (location: (37...39))
│ │ ├── value: ∅
│ │ └── operator_loc: (37...39) = "**"
│ ├── closing_loc: (39...40) = ")"
│ ├── block: ∅
│ ├── flags:
│ └── name: "bar"
├── locals: [:argument, :**]
├── def_keyword_loc: (0...3) = "def"
├── operator_loc: ∅
├── lparen_loc: (7...8) = "("
├── rparen_loc: (20...21) = ")"
├── equal_loc: ∅
└── end_keyword_loc: (42...45) = "end"
|