blob: 74f960f946bf366d705e1de82cfe0b0d919c9ca7 (
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
102
103
104
105
|
@ ProgramNode (location: (0...106))
├── locals: []
└── statements:
@ StatementsNode (location: (0...106))
└── body: (length: 4)
├── @ ModuleNode (location: (0...12))
│ ├── locals: []
│ ├── module_keyword_loc: (0...6) = "module"
│ ├── constant_path:
│ │ @ ConstantReadNode (location: (7...8))
│ │ └── name: :A
│ ├── body: ∅
│ ├── end_keyword_loc: (9...12) = "end"
│ └── name: :A
├── @ ModuleNode (location: (14...29))
│ ├── locals: []
│ ├── module_keyword_loc: (14...20) = "module"
│ ├── constant_path:
│ │ @ ConstantPathNode (location: (21...25))
│ │ ├── parent:
│ │ │ @ ConstantReadNode (location: (21...22))
│ │ │ └── name: :A
│ │ ├── child:
│ │ │ @ ConstantReadNode (location: (24...25))
│ │ │ └── name: :B
│ │ └── delimiter_loc: (22...24) = "::"
│ ├── body: ∅
│ ├── end_keyword_loc: (26...29) = "end"
│ └── name: :B
├── @ ModuleNode (location: (31...49))
│ ├── locals: []
│ ├── module_keyword_loc: (31...37) = "module"
│ ├── constant_path:
│ │ @ ConstantPathNode (location: (38...45))
│ │ ├── parent:
│ │ │ @ ConstantPathNode (location: (38...42))
│ │ │ ├── parent:
│ │ │ │ @ ConstantReadNode (location: (38...39))
│ │ │ │ └── name: :A
│ │ │ ├── child:
│ │ │ │ @ ConstantReadNode (location: (41...42))
│ │ │ │ └── name: :B
│ │ │ └── delimiter_loc: (39...41) = "::"
│ │ ├── child:
│ │ │ @ ConstantReadNode (location: (44...45))
│ │ │ └── name: :C
│ │ └── delimiter_loc: (42...44) = "::"
│ ├── body: ∅
│ ├── end_keyword_loc: (46...49) = "end"
│ └── name: :C
└── @ ModuleNode (location: (51...106))
├── locals: []
├── module_keyword_loc: (51...57) = "module"
├── constant_path:
│ @ ConstantReadNode (location: (58...59))
│ └── name: :A
├── body:
│ @ StatementsNode (location: (62...102))
│ └── body: (length: 2)
│ ├── @ CallNode (location: (62...76))
│ │ ├── receiver: ∅
│ │ ├── call_operator_loc: ∅
│ │ ├── message_loc: (62...69) = "include"
│ │ ├── opening_loc: (69...70) = "("
│ │ ├── arguments:
│ │ │ @ ArgumentsNode (location: (70...75))
│ │ │ └── arguments: (length: 1)
│ │ │ └── @ CallNode (location: (70...75))
│ │ │ ├── receiver:
│ │ │ │ @ ConstantReadNode (location: (70...71))
│ │ │ │ └── name: :B
│ │ │ ├── call_operator_loc: (71...72) = "."
│ │ │ ├── message_loc: (72...75) = "new"
│ │ │ ├── opening_loc: ∅
│ │ │ ├── arguments: ∅
│ │ │ ├── closing_loc: ∅
│ │ │ ├── block: ∅
│ │ │ ├── flags: ∅
│ │ │ └── name: "new"
│ │ ├── closing_loc: (75...76) = ")"
│ │ ├── block: ∅
│ │ ├── flags: ∅
│ │ └── name: "include"
│ └── @ DefNode (location: (80...102))
│ ├── name: :foo
│ ├── name_loc: (84...87) = "foo"
│ ├── receiver: ∅
│ ├── parameters: ∅
│ ├── body:
│ │ @ StatementsNode (location: (92...96))
│ │ └── body: (length: 1)
│ │ └── @ SymbolNode (location: (92...96))
│ │ ├── opening_loc: (92...93) = ":"
│ │ ├── value_loc: (93...96) = "bar"
│ │ ├── closing_loc: ∅
│ │ └── unescaped: "bar"
│ ├── locals: []
│ ├── def_keyword_loc: (80...83) = "def"
│ ├── operator_loc: ∅
│ ├── lparen_loc: ∅
│ ├── rparen_loc: ∅
│ ├── equal_loc: ∅
│ └── end_keyword_loc: (99...102) = "end"
├── end_keyword_loc: (103...106) = "end"
└── name: :A
|