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
|
@ ProgramNode (location: (1,0)-(1,41))
├── flags: ∅
├── locals: []
└── statements:
@ StatementsNode (location: (1,0)-(1,41))
├── flags: ∅
└── body: (length: 1)
└── @ DefNode (location: (1,0)-(1,41))
├── flags: newline
├── name: :a
├── name_loc: (1,4)-(1,5) = "a"
├── receiver: ∅
├── parameters:
│ @ ParametersNode (location: (1,6)-(1,18))
│ ├── flags: ∅
│ ├── requireds: (length: 3)
│ │ ├── @ RequiredParameterNode (location: (1,6)-(1,7))
│ │ │ ├── flags: ∅
│ │ │ └── name: :x
│ │ ├── @ RequiredParameterNode (location: (1,9)-(1,10))
│ │ │ ├── flags: ∅
│ │ │ └── name: :y
│ │ └── @ RequiredParameterNode (location: (1,12)-(1,13))
│ │ ├── flags: ∅
│ │ └── name: :z
│ ├── optionals: (length: 0)
│ ├── rest: ∅
│ ├── posts: (length: 0)
│ ├── keywords: (length: 0)
│ ├── keyword_rest:
│ │ @ ForwardingParameterNode (location: (1,15)-(1,18))
│ │ └── flags: ∅
│ └── block: ∅
├── body:
│ @ StatementsNode (location: (1,21)-(1,36))
│ ├── flags: ∅
│ └── body: (length: 1)
│ └── @ CallNode (location: (1,21)-(1,36))
│ ├── flags: newline, ignore_visibility
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── name: :b
│ ├── message_loc: (1,21)-(1,22) = "b"
│ ├── opening_loc: (1,22)-(1,23) = "("
│ ├── arguments:
│ │ @ ArgumentsNode (location: (1,23)-(1,35))
│ │ ├── flags: ∅
│ │ └── arguments: (length: 3)
│ │ ├── @ SymbolNode (location: (1,23)-(1,27))
│ │ │ ├── flags: static_literal, forced_us_ascii_encoding
│ │ │ ├── opening_loc: (1,23)-(1,24) = ":"
│ │ │ ├── value_loc: (1,24)-(1,27) = "get"
│ │ │ ├── closing_loc: ∅
│ │ │ └── unescaped: "get"
│ │ ├── @ LocalVariableReadNode (location: (1,29)-(1,30))
│ │ │ ├── flags: ∅
│ │ │ ├── name: :z
│ │ │ └── depth: 0
│ │ └── @ ForwardingArgumentsNode (location: (1,32)-(1,35))
│ │ └── flags: ∅
│ ├── closing_loc: (1,35)-(1,36) = ")"
│ └── block: ∅
├── locals: [:x, :y, :z]
├── def_keyword_loc: (1,0)-(1,3) = "def"
├── operator_loc: ∅
├── lparen_loc: (1,5)-(1,6) = "("
├── rparen_loc: (1,18)-(1,19) = ")"
├── equal_loc: ∅
└── end_keyword_loc: (1,38)-(1,41) = "end"
|