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
|
@ ProgramNode (location: (1,0)-(10,17))
├── flags: ∅
├── locals: []
└── statements:
@ StatementsNode (location: (1,0)-(10,17))
├── flags: ∅
└── body: (length: 10)
├── @ CallNode (location: (1,0)-(1,1))
│ ├── flags: newline, variable_call, ignore_visibility
│ ├── receiver: ∅
│ ├── call_operator_loc: ∅
│ ├── name: :a
│ ├── message_loc: (1,0)-(1,1) = "a"
│ ├── opening_loc: ∅
│ ├── arguments: ∅
│ ├── closing_loc: ∅
│ └── block: ∅
├── @ InstanceVariableReadNode (location: (2,0)-(2,2))
│ ├── flags: newline
│ └── name: :@a
├── @ ClassVariableReadNode (location: (3,0)-(3,3))
│ ├── flags: newline
│ └── name: :@@a
├── @ GlobalVariableReadNode (location: (4,0)-(4,2))
│ ├── flags: newline
│ └── name: :$a
├── @ NumberedReferenceReadNode (location: (5,0)-(5,2))
│ ├── flags: newline
│ └── number: 1
├── @ BackReferenceReadNode (location: (6,0)-(6,2))
│ ├── flags: newline
│ └── name: :$`
├── @ ConstantReadNode (location: (7,0)-(7,5))
│ ├── flags: newline
│ └── name: :CONST
├── @ ConstantPathNode (location: (8,0)-(8,13))
│ ├── flags: newline
│ ├── parent:
│ │ @ ConstantReadNode (location: (8,0)-(8,6))
│ │ ├── flags: ∅
│ │ └── name: :SCOPED
│ ├── name: :CONST
│ ├── delimiter_loc: (8,6)-(8,8) = "::"
│ └── name_loc: (8,8)-(8,13) = "CONST"
├── @ ConstantPathNode (location: (9,0)-(9,10))
│ ├── flags: newline
│ ├── parent: ∅
│ ├── name: :TOPLEVEL
│ ├── delimiter_loc: (9,0)-(9,2) = "::"
│ └── name_loc: (9,2)-(9,10) = "TOPLEVEL"
└── @ ConstantPathNode (location: (10,0)-(10,17))
├── flags: newline
├── parent:
│ @ ConstantPathNode (location: (10,0)-(10,10))
│ ├── flags: ∅
│ ├── parent: ∅
│ ├── name: :TOPLEVEL
│ ├── delimiter_loc: (10,0)-(10,2) = "::"
│ └── name_loc: (10,2)-(10,10) = "TOPLEVEL"
├── name: :CONST
├── delimiter_loc: (10,10)-(10,12) = "::"
└── name_loc: (10,12)-(10,17) = "CONST"
|