blob: 422943969f7d07e43b6fc2ec8621d1e98541aa1a (
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
|
@ ProgramNode (location: (0...90))
├── locals: []
└── statements:
@ StatementsNode (location: (0...90))
└── body: (length: 2)
├── @ 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)
│ │ ├── rest: ∅
│ │ ├── posts: (length: 0)
│ │ ├── keywords: (length: 0)
│ │ ├── keyword_rest:
│ │ │ @ KeywordRestParameterNode (location: (18...20))
│ │ │ ├── name: nil
│ │ │ ├── name_loc: ∅
│ │ │ └── operator_loc: (18...20) = "**"
│ │ └── block: ∅
│ ├── body:
│ │ @ StatementsNode (location: (24...41))
│ │ └── body: (length: 1)
│ │ └── @ CallNode (location: (24...41))
│ │ ├── receiver: ∅
│ │ ├── call_operator_loc: ∅
│ │ ├── message_loc: (24...27) = "bar"
│ │ ├── opening_loc: (27...28) = "("
│ │ ├── arguments:
│ │ │ @ ArgumentsNode (location: (28...40))
│ │ │ └── arguments: (length: 2)
│ │ │ ├── @ LocalVariableReadNode (location: (28...36))
│ │ │ │ ├── name: :argument
│ │ │ │ └── depth: 0
│ │ │ └── @ KeywordHashNode (location: (38...40))
│ │ │ └── elements: (length: 1)
│ │ │ └── @ AssocSplatNode (location: (38...40))
│ │ │ ├── value: ∅
│ │ │ └── operator_loc: (38...40) = "**"
│ │ ├── closing_loc: (40...41) = ")"
│ │ ├── 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"
└── @ DefNode (location: (47...90))
├── name: :foo
├── name_loc: (51...54) = "foo"
├── receiver: ∅
├── parameters:
│ @ ParametersNode (location: (55...66))
│ ├── requireds: (length: 1)
│ │ └── @ RequiredParameterNode (location: (55...63))
│ │ └── name: :argument
│ ├── optionals: (length: 0)
│ ├── rest:
│ │ @ RestParameterNode (location: (65...66))
│ │ ├── name: nil
│ │ ├── name_loc: ∅
│ │ └── operator_loc: (65...66) = "*"
│ ├── posts: (length: 0)
│ ├── keywords: (length: 0)
│ ├── keyword_rest: ∅
│ └── block: ∅
├── body:
│ @ StatementsNode (location: (70...86))
│ └── body: (length: 1)
│ └── @ CallNode (location: (70...86))
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── message_loc: (70...73) = "bar"
│ ├── opening_loc: (73...74) = "("
│ ├── arguments:
│ │ @ ArgumentsNode (location: (74...85))
│ │ └── arguments: (length: 2)
│ │ ├── @ LocalVariableReadNode (location: (74...82))
│ │ │ ├── name: :argument
│ │ │ └── depth: 0
│ │ └── @ SplatNode (location: (84...85))
│ │ ├── operator_loc: (84...85) = "*"
│ │ └── expression: ∅
│ ├── closing_loc: (85...86) = ")"
│ ├── block: ∅
│ ├── flags:
│ └── name: "bar"
├── locals: [:argument, :*]
├── def_keyword_loc: (47...50) = "def"
├── operator_loc: ∅
├── lparen_loc: (54...55) = "("
├── rparen_loc: (66...67) = ")"
├── equal_loc: ∅
└── end_keyword_loc: (87...90) = "end"
|