| 1 |
@ ProgramNode (location: (1,0)-(35,3)) |
| 2 |
├── locals: [] |
| 3 |
└── statements: |
| 4 |
@ StatementsNode (location: (1,0)-(35,3)) |
| 5 |
└── body: (length: 10) |
| 6 |
├── @ ClassNode (location: (1,0)-(2,3)) |
| 7 |
│ ├── locals: [] |
| 8 |
│ ├── class_keyword_loc: (1,0)-(1,5) = "class" |
| 9 |
│ ├── constant_path: |
| 10 |
│ │ @ ConstantReadNode (location: (1,6)-(1,7)) |
| 11 |
│ │ └── name: :A |
| 12 |
│ ├── inheritance_operator_loc: ∅ |
| 13 |
│ ├── superclass: ∅ |
| 14 |
│ ├── body: ∅ |
| 15 |
│ ├── end_keyword_loc: (2,0)-(2,3) = "end" |
| 16 |
│ └── name: :A |
| 17 |
├── @ SingletonClassNode (location: (4,0)-(5,3)) |
| 18 |
│ ├── locals: [] |
| 19 |
│ ├── class_keyword_loc: (4,0)-(4,5) = "class" |
| 20 |
│ ├── operator_loc: (4,6)-(4,8) = "<<" |
| 21 |
│ ├── expression: |
| 22 |
│ │ @ CallNode (location: (4,9)-(4,10)) |
| 23 |
│ │ ├── flags: variable_call |
| 24 |
│ │ ├── receiver: ∅ |
| 25 |
│ │ ├── call_operator_loc: ∅ |
| 26 |
│ │ ├── name: :a |
| 27 |
│ │ ├── message_loc: (4,9)-(4,10) = "a" |
| 28 |
│ │ ├── opening_loc: ∅ |
| 29 |
│ │ ├── arguments: ∅ |
| 30 |
│ │ ├── closing_loc: ∅ |
| 31 |
│ │ └── block: ∅ |
| 32 |
│ ├── body: ∅ |
| 33 |
│ └── end_keyword_loc: (5,0)-(5,3) = "end" |
| 34 |
├── @ SingletonClassNode (location: (7,0)-(9,3)) |
| 35 |
│ ├── locals: [] |
| 36 |
│ ├── class_keyword_loc: (7,0)-(7,5) = "class" |
| 37 |
│ ├── operator_loc: (7,6)-(7,8) = "<<" |
| 38 |
│ ├── expression: |
| 39 |
│ │ @ CallNode (location: (7,9)-(7,10)) |
| 40 |
│ │ ├── flags: variable_call |
| 41 |
│ │ ├── receiver: ∅ |
| 42 |
│ │ ├── call_operator_loc: ∅ |
| 43 |
│ │ ├── name: :a |
| 44 |
│ │ ├── message_loc: (7,9)-(7,10) = "a" |
| 45 |
│ │ ├── opening_loc: ∅ |
| 46 |
│ │ ├── arguments: ∅ |
| 47 |
│ │ ├── closing_loc: ∅ |
| 48 |
│ │ └── block: ∅ |
| 49 |
│ ├── body: |
| 50 |
│ │ @ StatementsNode (location: (8,2)-(8,3)) |
| 51 |
│ │ └── body: (length: 1) |
| 52 |
│ │ └── @ CallNode (location: (8,2)-(8,3)) |
| 53 |
│ │ ├── flags: variable_call |
| 54 |
│ │ ├── receiver: ∅ |
| 55 |
│ │ ├── call_operator_loc: ∅ |
| 56 |
│ │ ├── name: :b |
| 57 |
│ │ ├── message_loc: (8,2)-(8,3) = "b" |
| 58 |
│ │ ├── opening_loc: ∅ |
| 59 |
│ │ ├── arguments: ∅ |
| 60 |
│ │ ├── closing_loc: ∅ |
| 61 |
│ │ └── block: ∅ |
| 62 |
│ └── end_keyword_loc: (9,0)-(9,3) = "end" |
| 63 |
├── @ ClassNode (location: (11,0)-(12,3)) |
| 64 |
│ ├── locals: [] |
| 65 |
│ ├── class_keyword_loc: (11,0)-(11,5) = "class" |
| 66 |
│ ├── constant_path: |
| 67 |
│ │ @ ConstantPathNode (location: (11,6)-(11,10)) |
| 68 |
│ │ ├── parent: |
| 69 |
│ │ │ @ ConstantReadNode (location: (11,6)-(11,7)) |
| 70 |
│ │ │ └── name: :A |
| 71 |
│ │ ├── child: |
| 72 |
│ │ │ @ ConstantReadNode (location: (11,9)-(11,10)) |
| 73 |
│ │ │ └── name: :B |
| 74 |
│ │ └── delimiter_loc: (11,7)-(11,9) = "::" |
| 75 |
│ ├── inheritance_operator_loc: ∅ |
| 76 |
│ ├── superclass: ∅ |
| 77 |
│ ├── body: ∅ |
| 78 |
│ ├── end_keyword_loc: (12,0)-(12,3) = "end" |
| 79 |
│ └── name: :B |
| 80 |
├── @ ClassNode (location: (14,0)-(15,3)) |
| 81 |
│ ├── locals: [] |
| 82 |
│ ├── class_keyword_loc: (14,0)-(14,5) = "class" |
| 83 |
│ ├── constant_path: |
| 84 |
│ │ @ ConstantPathNode (location: (14,6)-(14,13)) |
| 85 |
│ │ ├── parent: |
| 86 |
│ │ │ @ ConstantPathNode (location: (14,6)-(14,10)) |
| 87 |
│ │ │ ├── parent: |
| 88 |
│ │ │ │ @ ConstantReadNode (location: (14,6)-(14,7)) |
| 89 |
│ │ │ │ └── name: :A |
| 90 |
│ │ │ ├── child: |
| 91 |
│ │ │ │ @ ConstantReadNode (location: (14,9)-(14,10)) |
| 92 |
│ │ │ │ └── name: :B |
| 93 |
│ │ │ └── delimiter_loc: (14,7)-(14,9) = "::" |
| 94 |
│ │ ├── child: |
| 95 |
│ │ │ @ ConstantReadNode (location: (14,12)-(14,13)) |
| 96 |
│ │ │ └── name: :C |
| 97 |
│ │ └── delimiter_loc: (14,10)-(14,12) = "::" |
| 98 |
│ ├── inheritance_operator_loc: ∅ |
| 99 |
│ ├── superclass: ∅ |
| 100 |
│ ├── body: ∅ |
| 101 |
│ ├── end_keyword_loc: (15,0)-(15,3) = "end" |
| 102 |
│ └── name: :C |
| 103 |
├── @ ClassNode (location: (17,0)-(18,3)) |
| 104 |
│ ├── locals: [] |
| 105 |
│ ├── class_keyword_loc: (17,0)-(17,5) = "class" |
| 106 |
│ ├── constant_path: |
| 107 |
│ │ @ ConstantReadNode (location: (17,6)-(17,7)) |
| 108 |
│ │ └── name: :A |
| 109 |
│ ├── inheritance_operator_loc: (17,8)-(17,9) = "<" |
| 110 |
│ ├── superclass: |
| 111 |
│ │ @ ConstantReadNode (location: (17,10)-(17,11)) |
| 112 |
│ │ └── name: :B |
| 113 |
│ ├── body: ∅ |
| 114 |
│ ├── end_keyword_loc: (18,0)-(18,3) = "end" |
| 115 |
│ └── name: :A |
| 116 |
├── @ ClassNode (location: (20,0)-(21,3)) |
| 117 |
│ ├── locals: [] |
| 118 |
│ ├── class_keyword_loc: (20,0)-(20,5) = "class" |
| 119 |
│ ├── constant_path: |
| 120 |
│ │ @ ConstantReadNode (location: (20,6)-(20,7)) |
| 121 |
│ │ └── name: :A |
| 122 |
│ ├── inheritance_operator_loc: (20,8)-(20,9) = "<" |
| 123 |
│ ├── superclass: |
| 124 |
│ │ @ ConstantPathNode (location: (20,10)-(20,14)) |
| 125 |
│ │ ├── parent: |
| 126 |
│ │ │ @ ConstantReadNode (location: (20,10)-(20,11)) |
| 127 |
│ │ │ └── name: :B |
| 128 |
│ │ ├── child: |
| 129 |
│ │ │ @ ConstantReadNode (location: (20,13)-(20,14)) |
| 130 |
│ │ │ └── name: :C |
| 131 |
│ │ └── delimiter_loc: (20,11)-(20,13) = "::" |
| 132 |
│ ├── body: ∅ |
| 133 |
│ ├── end_keyword_loc: (21,0)-(21,3) = "end" |
| 134 |
│ └── name: :A |
| 135 |
├── @ ClassNode (location: (23,0)-(24,3)) |
| 136 |
│ ├── locals: [] |
| 137 |
│ ├── class_keyword_loc: (23,0)-(23,5) = "class" |
| 138 |
│ ├── constant_path: |
| 139 |
│ │ @ ConstantPathNode (location: (23,6)-(23,10)) |
| 140 |
│ │ ├── parent: |
| 141 |
│ │ │ @ ConstantReadNode (location: (23,6)-(23,7)) |
| 142 |
│ │ │ └── name: :A |
| 143 |
│ │ ├── child: |
| 144 |
│ │ │ @ ConstantReadNode (location: (23,9)-(23,10)) |
| 145 |
│ │ │ └── name: :B |
| 146 |
│ │ └── delimiter_loc: (23,7)-(23,9) = "::" |
| 147 |
│ ├── inheritance_operator_loc: (23,11)-(23,12) = "<" |
| 148 |
│ ├── superclass: |
| 149 |
│ │ @ ConstantPathNode (location: (23,13)-(23,17)) |
| 150 |
│ │ ├── parent: |
| 151 |
│ │ │ @ ConstantReadNode (location: (23,13)-(23,14)) |
| 152 |
│ │ │ └── name: :C |
| 153 |
│ │ ├── child: |
| 154 |
│ │ │ @ ConstantReadNode (location: (23,16)-(23,17)) |
| 155 |
│ │ │ └── name: :D |
| 156 |
│ │ └── delimiter_loc: (23,14)-(23,16) = "::" |
| 157 |
│ ├── body: ∅ |
| 158 |
│ ├── end_keyword_loc: (24,0)-(24,3) = "end" |
| 159 |
│ └── name: :B |
| 160 |
├── @ ClassNode (location: (26,0)-(32,3)) |
| 161 |
│ ├── locals: [] |
| 162 |
│ ├── class_keyword_loc: (26,0)-(26,5) = "class" |
| 163 |
│ ├── constant_path: |
| 164 |
│ │ @ ConstantReadNode (location: (26,6)-(26,7)) |
| 165 |
│ │ └── name: :A |
| 166 |
│ ├── inheritance_operator_loc: ∅ |
| 167 |
│ ├── superclass: ∅ |
| 168 |
│ ├── body: |
| 169 |
│ │ @ StatementsNode (location: (27,2)-(31,5)) |
| 170 |
│ │ └── body: (length: 2) |
| 171 |
│ │ ├── @ CallNode (location: (27,2)-(27,16)) |
| 172 |
│ │ │ ├── flags: ∅ |
| 173 |
│ │ │ ├── receiver: ∅ |
| 174 |
│ │ │ ├── call_operator_loc: ∅ |
| 175 |
│ │ │ ├── name: :include |
| 176 |
│ │ │ ├── message_loc: (27,2)-(27,9) = "include" |
| 177 |
│ │ │ ├── opening_loc: (27,9)-(27,10) = "(" |
| 178 |
│ │ │ ├── arguments: |
| 179 |
│ │ │ │ @ ArgumentsNode (location: (27,10)-(27,15)) |
| 180 |
│ │ │ │ ├── flags: ∅ |
| 181 |
│ │ │ │ └── arguments: (length: 1) |
| 182 |
│ │ │ │ └── @ CallNode (location: (27,10)-(27,15)) |
| 183 |
│ │ │ │ ├── flags: ∅ |
| 184 |
│ │ │ │ ├── receiver: |
| 185 |
│ │ │ │ │ @ ConstantReadNode (location: (27,10)-(27,11)) |
| 186 |
│ │ │ │ │ └── name: :B |
| 187 |
│ │ │ │ ├── call_operator_loc: (27,11)-(27,12) = "." |
| 188 |
│ │ │ │ ├── name: :new |
| 189 |
│ │ │ │ ├── message_loc: (27,12)-(27,15) = "new" |
| 190 |
│ │ │ │ ├── opening_loc: ∅ |
| 191 |
│ │ │ │ ├── arguments: ∅ |
| 192 |
│ │ │ │ ├── closing_loc: ∅ |
| 193 |
│ │ │ │ └── block: ∅ |
| 194 |
│ │ │ ├── closing_loc: (27,15)-(27,16) = ")" |
| 195 |
│ │ │ └── block: ∅ |
| 196 |
│ │ └── @ DefNode (location: (29,2)-(31,5)) |
| 197 |
│ │ ├── name: :foo |
| 198 |
│ │ ├── name_loc: (29,6)-(29,9) = "foo" |
| 199 |
│ │ ├── receiver: ∅ |
| 200 |
│ │ ├── parameters: ∅ |
| 201 |
│ │ ├── body: |
| 202 |
│ │ │ @ StatementsNode (location: (30,4)-(30,8)) |
| 203 |
│ │ │ └── body: (length: 1) |
| 204 |
│ │ │ └── @ SymbolNode (location: (30,4)-(30,8)) |
| 205 |
│ │ │ ├── flags: ∅ |
| 206 |
│ │ │ ├── opening_loc: (30,4)-(30,5) = ":" |
| 207 |
│ │ │ ├── value_loc: (30,5)-(30,8) = "bar" |
| 208 |
│ │ │ ├── closing_loc: ∅ |
| 209 |
│ │ │ └── unescaped: "bar" |
| 210 |
│ │ ├── locals: [] |
| 211 |
│ │ ├── locals_body_index: 0 |
| 212 |
│ │ ├── def_keyword_loc: (29,2)-(29,5) = "def" |
| 213 |
│ │ ├── operator_loc: ∅ |
| 214 |
│ │ ├── lparen_loc: ∅ |
| 215 |
│ │ ├── rparen_loc: ∅ |
| 216 |
│ │ ├── equal_loc: ∅ |
| 217 |
│ │ └── end_keyword_loc: (31,2)-(31,5) = "end" |
| 218 |
│ ├── end_keyword_loc: (32,0)-(32,3) = "end" |
| 219 |
│ └── name: :A |
| 220 |
└── @ ClassNode (location: (34,0)-(35,3)) |
| 221 |
├── locals: [] |
| 222 |
├── class_keyword_loc: (34,0)-(34,5) = "class" |
| 223 |
├── constant_path: |
| 224 |
│ @ ConstantPathNode (location: (34,6)-(34,9)) |
| 225 |
│ ├── parent: ∅ |
| 226 |
│ ├── child: |
| 227 |
│ │ @ ConstantReadNode (location: (34,8)-(34,9)) |
| 228 |
│ │ └── name: :A |
| 229 |
│ └── delimiter_loc: (34,6)-(34,8) = "::" |
| 230 |
├── inheritance_operator_loc: ∅ |
| 231 |
├── superclass: ∅ |
| 232 |
├── body: ∅ |
| 233 |
├── end_keyword_loc: (35,0)-(35,3) = "end" |
| 234 |
└── name: :A |