| 1 |
{ |
| 2 |
"type": "File", |
| 3 |
"start":0,"end":359,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":19,"column":1,"index":359}}, |
| 4 |
"program": { |
| 5 |
"type": "Program", |
| 6 |
"start":0,"end":359,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":19,"column":1,"index":359}}, |
| 7 |
"sourceType": "script", |
| 8 |
"interpreter": null, |
| 9 |
"body": [ |
| 10 |
{ |
| 11 |
"type": "ClassDeclaration", |
| 12 |
"start":0,"end":359,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":19,"column":1,"index":359}}, |
| 13 |
"id": { |
| 14 |
"type": "Identifier", |
| 15 |
"start":6,"end":11,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":11,"index":11},"identifierName":"Point"}, |
| 16 |
"name": "Point" |
| 17 |
}, |
| 18 |
"superClass": null, |
| 19 |
"body": { |
| 20 |
"type": "ClassBody", |
| 21 |
"start":12,"end":359,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":19,"column":1,"index":359}}, |
| 22 |
"body": [ |
| 23 |
{ |
| 24 |
"type": "ClassPrivateProperty", |
| 25 |
"start":16,"end":23,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":9,"index":23}}, |
| 26 |
"static": false, |
| 27 |
"key": { |
| 28 |
"type": "PrivateName", |
| 29 |
"start":16,"end":18,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":4,"index":18}}, |
| 30 |
"id": { |
| 31 |
"type": "Identifier", |
| 32 |
"start":17,"end":18,"loc":{"start":{"line":2,"column":3,"index":17},"end":{"line":2,"column":4,"index":18},"identifierName":"x"}, |
| 33 |
"name": "x" |
| 34 |
} |
| 35 |
}, |
| 36 |
"value": { |
| 37 |
"type": "NumericLiteral", |
| 38 |
"start":21,"end":22,"loc":{"start":{"line":2,"column":7,"index":21},"end":{"line":2,"column":8,"index":22}}, |
| 39 |
"extra": { |
| 40 |
"rawValue": 1, |
| 41 |
"raw": "1" |
| 42 |
}, |
| 43 |
"value": 1 |
| 44 |
} |
| 45 |
}, |
| 46 |
{ |
| 47 |
"type": "ClassPrivateProperty", |
| 48 |
"start":26,"end":33,"loc":{"start":{"line":3,"column":2,"index":26},"end":{"line":3,"column":9,"index":33}}, |
| 49 |
"static": false, |
| 50 |
"key": { |
| 51 |
"type": "PrivateName", |
| 52 |
"start":26,"end":28,"loc":{"start":{"line":3,"column":2,"index":26},"end":{"line":3,"column":4,"index":28}}, |
| 53 |
"id": { |
| 54 |
"type": "Identifier", |
| 55 |
"start":27,"end":28,"loc":{"start":{"line":3,"column":3,"index":27},"end":{"line":3,"column":4,"index":28},"identifierName":"y"}, |
| 56 |
"name": "y" |
| 57 |
} |
| 58 |
}, |
| 59 |
"value": { |
| 60 |
"type": "NumericLiteral", |
| 61 |
"start":31,"end":32,"loc":{"start":{"line":3,"column":7,"index":31},"end":{"line":3,"column":8,"index":32}}, |
| 62 |
"extra": { |
| 63 |
"rawValue": 2, |
| 64 |
"raw": "2" |
| 65 |
}, |
| 66 |
"value": 2 |
| 67 |
} |
| 68 |
}, |
| 69 |
{ |
| 70 |
"type": "ClassMethod", |
| 71 |
"start":37,"end":104,"loc":{"start":{"line":5,"column":2,"index":37},"end":{"line":8,"column":3,"index":104}}, |
| 72 |
"static": false, |
| 73 |
"key": { |
| 74 |
"type": "Identifier", |
| 75 |
"start":37,"end":48,"loc":{"start":{"line":5,"column":2,"index":37},"end":{"line":5,"column":13,"index":48},"identifierName":"constructor"}, |
| 76 |
"name": "constructor" |
| 77 |
}, |
| 78 |
"computed": false, |
| 79 |
"kind": "constructor", |
| 80 |
"id": null, |
| 81 |
"generator": false, |
| 82 |
"async": false, |
| 83 |
"params": [ |
| 84 |
{ |
| 85 |
"type": "AssignmentPattern", |
| 86 |
"start":49,"end":54,"loc":{"start":{"line":5,"column":14,"index":49},"end":{"line":5,"column":19,"index":54}}, |
| 87 |
"left": { |
| 88 |
"type": "Identifier", |
| 89 |
"start":49,"end":50,"loc":{"start":{"line":5,"column":14,"index":49},"end":{"line":5,"column":15,"index":50},"identifierName":"x"}, |
| 90 |
"name": "x" |
| 91 |
}, |
| 92 |
"right": { |
| 93 |
"type": "NumericLiteral", |
| 94 |
"start":53,"end":54,"loc":{"start":{"line":5,"column":18,"index":53},"end":{"line":5,"column":19,"index":54}}, |
| 95 |
"extra": { |
| 96 |
"rawValue": 0, |
| 97 |
"raw": "0" |
| 98 |
}, |
| 99 |
"value": 0 |
| 100 |
} |
| 101 |
}, |
| 102 |
{ |
| 103 |
"type": "AssignmentPattern", |
| 104 |
"start":56,"end":61,"loc":{"start":{"line":5,"column":21,"index":56},"end":{"line":5,"column":26,"index":61}}, |
| 105 |
"left": { |
| 106 |
"type": "Identifier", |
| 107 |
"start":56,"end":57,"loc":{"start":{"line":5,"column":21,"index":56},"end":{"line":5,"column":22,"index":57},"identifierName":"y"}, |
| 108 |
"name": "y" |
| 109 |
}, |
| 110 |
"right": { |
| 111 |
"type": "NumericLiteral", |
| 112 |
"start":60,"end":61,"loc":{"start":{"line":5,"column":25,"index":60},"end":{"line":5,"column":26,"index":61}}, |
| 113 |
"extra": { |
| 114 |
"rawValue": 0, |
| 115 |
"raw": "0" |
| 116 |
}, |
| 117 |
"value": 0 |
| 118 |
} |
| 119 |
} |
| 120 |
], |
| 121 |
"body": { |
| 122 |
"type": "BlockStatement", |
| 123 |
"start":63,"end":104,"loc":{"start":{"line":5,"column":28,"index":63},"end":{"line":8,"column":3,"index":104}}, |
| 124 |
"body": [ |
| 125 |
{ |
| 126 |
"type": "ExpressionStatement", |
| 127 |
"start":69,"end":82,"loc":{"start":{"line":6,"column":4,"index":69},"end":{"line":6,"column":17,"index":82}}, |
| 128 |
"expression": { |
| 129 |
"type": "AssignmentExpression", |
| 130 |
"start":69,"end":81,"loc":{"start":{"line":6,"column":4,"index":69},"end":{"line":6,"column":16,"index":81}}, |
| 131 |
"operator": "=", |
| 132 |
"left": { |
| 133 |
"type": "MemberExpression", |
| 134 |
"start":69,"end":76,"loc":{"start":{"line":6,"column":4,"index":69},"end":{"line":6,"column":11,"index":76}}, |
| 135 |
"object": { |
| 136 |
"type": "ThisExpression", |
| 137 |
"start":69,"end":73,"loc":{"start":{"line":6,"column":4,"index":69},"end":{"line":6,"column":8,"index":73}} |
| 138 |
}, |
| 139 |
"computed": false, |
| 140 |
"property": { |
| 141 |
"type": "PrivateName", |
| 142 |
"start":74,"end":76,"loc":{"start":{"line":6,"column":9,"index":74},"end":{"line":6,"column":11,"index":76}}, |
| 143 |
"id": { |
| 144 |
"type": "Identifier", |
| 145 |
"start":75,"end":76,"loc":{"start":{"line":6,"column":10,"index":75},"end":{"line":6,"column":11,"index":76},"identifierName":"x"}, |
| 146 |
"name": "x" |
| 147 |
} |
| 148 |
} |
| 149 |
}, |
| 150 |
"right": { |
| 151 |
"type": "UnaryExpression", |
| 152 |
"start":79,"end":81,"loc":{"start":{"line":6,"column":14,"index":79},"end":{"line":6,"column":16,"index":81}}, |
| 153 |
"operator": "+", |
| 154 |
"prefix": true, |
| 155 |
"argument": { |
| 156 |
"type": "Identifier", |
| 157 |
"start":80,"end":81,"loc":{"start":{"line":6,"column":15,"index":80},"end":{"line":6,"column":16,"index":81},"identifierName":"x"}, |
| 158 |
"name": "x" |
| 159 |
} |
| 160 |
} |
| 161 |
} |
| 162 |
}, |
| 163 |
{ |
| 164 |
"type": "ExpressionStatement", |
| 165 |
"start":87,"end":100,"loc":{"start":{"line":7,"column":4,"index":87},"end":{"line":7,"column":17,"index":100}}, |
| 166 |
"expression": { |
| 167 |
"type": "AssignmentExpression", |
| 168 |
"start":87,"end":99,"loc":{"start":{"line":7,"column":4,"index":87},"end":{"line":7,"column":16,"index":99}}, |
| 169 |
"operator": "=", |
| 170 |
"left": { |
| 171 |
"type": "MemberExpression", |
| 172 |
"start":87,"end":94,"loc":{"start":{"line":7,"column":4,"index":87},"end":{"line":7,"column":11,"index":94}}, |
| 173 |
"object": { |
| 174 |
"type": "ThisExpression", |
| 175 |
"start":87,"end":91,"loc":{"start":{"line":7,"column":4,"index":87},"end":{"line":7,"column":8,"index":91}} |
| 176 |
}, |
| 177 |
"computed": false, |
| 178 |
"property": { |
| 179 |
"type": "PrivateName", |
| 180 |
"start":92,"end":94,"loc":{"start":{"line":7,"column":9,"index":92},"end":{"line":7,"column":11,"index":94}}, |
| 181 |
"id": { |
| 182 |
"type": "Identifier", |
| 183 |
"start":93,"end":94,"loc":{"start":{"line":7,"column":10,"index":93},"end":{"line":7,"column":11,"index":94},"identifierName":"y"}, |
| 184 |
"name": "y" |
| 185 |
} |
| 186 |
} |
| 187 |
}, |
| 188 |
"right": { |
| 189 |
"type": "UnaryExpression", |
| 190 |
"start":97,"end":99,"loc":{"start":{"line":7,"column":14,"index":97},"end":{"line":7,"column":16,"index":99}}, |
| 191 |
"operator": "+", |
| 192 |
"prefix": true, |
| 193 |
"argument": { |
| 194 |
"type": "Identifier", |
| 195 |
"start":98,"end":99,"loc":{"start":{"line":7,"column":15,"index":98},"end":{"line":7,"column":16,"index":99},"identifierName":"y"}, |
| 196 |
"name": "y" |
| 197 |
} |
| 198 |
} |
| 199 |
} |
| 200 |
} |
| 201 |
], |
| 202 |
"directives": [] |
| 203 |
} |
| 204 |
}, |
| 205 |
{ |
| 206 |
"type": "ClassMethod", |
| 207 |
"start":108,"end":134,"loc":{"start":{"line":10,"column":2,"index":108},"end":{"line":10,"column":28,"index":134}}, |
| 208 |
"static": false, |
| 209 |
"key": { |
| 210 |
"type": "Identifier", |
| 211 |
"start":112,"end":113,"loc":{"start":{"line":10,"column":6,"index":112},"end":{"line":10,"column":7,"index":113},"identifierName":"x"}, |
| 212 |
"name": "x" |
| 213 |
}, |
| 214 |
"computed": false, |
| 215 |
"kind": "get", |
| 216 |
"id": null, |
| 217 |
"generator": false, |
| 218 |
"async": false, |
| 219 |
"params": [], |
| 220 |
"body": { |
| 221 |
"type": "BlockStatement", |
| 222 |
"start":116,"end":134,"loc":{"start":{"line":10,"column":10,"index":116},"end":{"line":10,"column":28,"index":134}}, |
| 223 |
"body": [ |
| 224 |
{ |
| 225 |
"type": "ReturnStatement", |
| 226 |
"start":118,"end":132,"loc":{"start":{"line":10,"column":12,"index":118},"end":{"line":10,"column":26,"index":132}}, |
| 227 |
"argument": { |
| 228 |
"type": "MemberExpression", |
| 229 |
"start":125,"end":132,"loc":{"start":{"line":10,"column":19,"index":125},"end":{"line":10,"column":26,"index":132}}, |
| 230 |
"object": { |
| 231 |
"type": "ThisExpression", |
| 232 |
"start":125,"end":129,"loc":{"start":{"line":10,"column":19,"index":125},"end":{"line":10,"column":23,"index":129}} |
| 233 |
}, |
| 234 |
"computed": false, |
| 235 |
"property": { |
| 236 |
"type": "PrivateName", |
| 237 |
"start":130,"end":132,"loc":{"start":{"line":10,"column":24,"index":130},"end":{"line":10,"column":26,"index":132}}, |
| 238 |
"id": { |
| 239 |
"type": "Identifier", |
| 240 |
"start":131,"end":132,"loc":{"start":{"line":10,"column":25,"index":131},"end":{"line":10,"column":26,"index":132},"identifierName":"x"}, |
| 241 |
"name": "x" |
| 242 |
} |
| 243 |
} |
| 244 |
} |
| 245 |
} |
| 246 |
], |
| 247 |
"directives": [] |
| 248 |
} |
| 249 |
}, |
| 250 |
{ |
| 251 |
"type": "ClassMethod", |
| 252 |
"start":137,"end":170,"loc":{"start":{"line":11,"column":2,"index":137},"end":{"line":11,"column":35,"index":170}}, |
| 253 |
"static": false, |
| 254 |
"key": { |
| 255 |
"type": "Identifier", |
| 256 |
"start":141,"end":142,"loc":{"start":{"line":11,"column":6,"index":141},"end":{"line":11,"column":7,"index":142},"identifierName":"x"}, |
| 257 |
"name": "x" |
| 258 |
}, |
| 259 |
"computed": false, |
| 260 |
"kind": "set", |
| 261 |
"id": null, |
| 262 |
"generator": false, |
| 263 |
"async": false, |
| 264 |
"params": [ |
| 265 |
{ |
| 266 |
"type": "Identifier", |
| 267 |
"start":143,"end":148,"loc":{"start":{"line":11,"column":8,"index":143},"end":{"line":11,"column":13,"index":148},"identifierName":"value"}, |
| 268 |
"name": "value" |
| 269 |
} |
| 270 |
], |
| 271 |
"body": { |
| 272 |
"type": "BlockStatement", |
| 273 |
"start":150,"end":170,"loc":{"start":{"line":11,"column":15,"index":150},"end":{"line":11,"column":35,"index":170}}, |
| 274 |
"body": [ |
| 275 |
{ |
| 276 |
"type": "ExpressionStatement", |
| 277 |
"start":152,"end":168,"loc":{"start":{"line":11,"column":17,"index":152},"end":{"line":11,"column":33,"index":168}}, |
| 278 |
"expression": { |
| 279 |
"type": "AssignmentExpression", |
| 280 |
"start":152,"end":168,"loc":{"start":{"line":11,"column":17,"index":152},"end":{"line":11,"column":33,"index":168}}, |
| 281 |
"operator": "=", |
| 282 |
"left": { |
| 283 |
"type": "MemberExpression", |
| 284 |
"start":152,"end":159,"loc":{"start":{"line":11,"column":17,"index":152},"end":{"line":11,"column":24,"index":159}}, |
| 285 |
"object": { |
| 286 |
"type": "ThisExpression", |
| 287 |
"start":152,"end":156,"loc":{"start":{"line":11,"column":17,"index":152},"end":{"line":11,"column":21,"index":156}} |
| 288 |
}, |
| 289 |
"computed": false, |
| 290 |
"property": { |
| 291 |
"type": "PrivateName", |
| 292 |
"start":157,"end":159,"loc":{"start":{"line":11,"column":22,"index":157},"end":{"line":11,"column":24,"index":159}}, |
| 293 |
"id": { |
| 294 |
"type": "Identifier", |
| 295 |
"start":158,"end":159,"loc":{"start":{"line":11,"column":23,"index":158},"end":{"line":11,"column":24,"index":159},"identifierName":"x"}, |
| 296 |
"name": "x" |
| 297 |
} |
| 298 |
} |
| 299 |
}, |
| 300 |
"right": { |
| 301 |
"type": "UnaryExpression", |
| 302 |
"start":162,"end":168,"loc":{"start":{"line":11,"column":27,"index":162},"end":{"line":11,"column":33,"index":168}}, |
| 303 |
"operator": "+", |
| 304 |
"prefix": true, |
| 305 |
"argument": { |
| 306 |
"type": "Identifier", |
| 307 |
"start":163,"end":168,"loc":{"start":{"line":11,"column":28,"index":163},"end":{"line":11,"column":33,"index":168},"identifierName":"value"}, |
| 308 |
"name": "value" |
| 309 |
} |
| 310 |
} |
| 311 |
} |
| 312 |
} |
| 313 |
], |
| 314 |
"directives": [] |
| 315 |
} |
| 316 |
}, |
| 317 |
{ |
| 318 |
"type": "ClassMethod", |
| 319 |
"start":174,"end":200,"loc":{"start":{"line":13,"column":2,"index":174},"end":{"line":13,"column":28,"index":200}}, |
| 320 |
"static": false, |
| 321 |
"key": { |
| 322 |
"type": "Identifier", |
| 323 |
"start":178,"end":179,"loc":{"start":{"line":13,"column":6,"index":178},"end":{"line":13,"column":7,"index":179},"identifierName":"y"}, |
| 324 |
"name": "y" |
| 325 |
}, |
| 326 |
"computed": false, |
| 327 |
"kind": "get", |
| 328 |
"id": null, |
| 329 |
"generator": false, |
| 330 |
"async": false, |
| 331 |
"params": [], |
| 332 |
"body": { |
| 333 |
"type": "BlockStatement", |
| 334 |
"start":182,"end":200,"loc":{"start":{"line":13,"column":10,"index":182},"end":{"line":13,"column":28,"index":200}}, |
| 335 |
"body": [ |
| 336 |
{ |
| 337 |
"type": "ReturnStatement", |
| 338 |
"start":184,"end":198,"loc":{"start":{"line":13,"column":12,"index":184},"end":{"line":13,"column":26,"index":198}}, |
| 339 |
"argument": { |
| 340 |
"type": "MemberExpression", |
| 341 |
"start":191,"end":198,"loc":{"start":{"line":13,"column":19,"index":191},"end":{"line":13,"column":26,"index":198}}, |
| 342 |
"object": { |
| 343 |
"type": "ThisExpression", |
| 344 |
"start":191,"end":195,"loc":{"start":{"line":13,"column":19,"index":191},"end":{"line":13,"column":23,"index":195}} |
| 345 |
}, |
| 346 |
"computed": false, |
| 347 |
"property": { |
| 348 |
"type": "PrivateName", |
| 349 |
"start":196,"end":198,"loc":{"start":{"line":13,"column":24,"index":196},"end":{"line":13,"column":26,"index":198}}, |
| 350 |
"id": { |
| 351 |
"type": "Identifier", |
| 352 |
"start":197,"end":198,"loc":{"start":{"line":13,"column":25,"index":197},"end":{"line":13,"column":26,"index":198},"identifierName":"y"}, |
| 353 |
"name": "y" |
| 354 |
} |
| 355 |
} |
| 356 |
} |
| 357 |
} |
| 358 |
], |
| 359 |
"directives": [] |
| 360 |
} |
| 361 |
}, |
| 362 |
{ |
| 363 |
"type": "ClassMethod", |
| 364 |
"start":203,"end":236,"loc":{"start":{"line":14,"column":2,"index":203},"end":{"line":14,"column":35,"index":236}}, |
| 365 |
"static": false, |
| 366 |
"key": { |
| 367 |
"type": "Identifier", |
| 368 |
"start":207,"end":208,"loc":{"start":{"line":14,"column":6,"index":207},"end":{"line":14,"column":7,"index":208},"identifierName":"y"}, |
| 369 |
"name": "y" |
| 370 |
}, |
| 371 |
"computed": false, |
| 372 |
"kind": "set", |
| 373 |
"id": null, |
| 374 |
"generator": false, |
| 375 |
"async": false, |
| 376 |
"params": [ |
| 377 |
{ |
| 378 |
"type": "Identifier", |
| 379 |
"start":209,"end":214,"loc":{"start":{"line":14,"column":8,"index":209},"end":{"line":14,"column":13,"index":214},"identifierName":"value"}, |
| 380 |
"name": "value" |
| 381 |
} |
| 382 |
], |
| 383 |
"body": { |
| 384 |
"type": "BlockStatement", |
| 385 |
"start":216,"end":236,"loc":{"start":{"line":14,"column":15,"index":216},"end":{"line":14,"column":35,"index":236}}, |
| 386 |
"body": [ |
| 387 |
{ |
| 388 |
"type": "ExpressionStatement", |
| 389 |
"start":218,"end":234,"loc":{"start":{"line":14,"column":17,"index":218},"end":{"line":14,"column":33,"index":234}}, |
| 390 |
"expression": { |
| 391 |
"type": "AssignmentExpression", |
| 392 |
"start":218,"end":234,"loc":{"start":{"line":14,"column":17,"index":218},"end":{"line":14,"column":33,"index":234}}, |
| 393 |
"operator": "=", |
| 394 |
"left": { |
| 395 |
"type": "MemberExpression", |
| 396 |
"start":218,"end":225,"loc":{"start":{"line":14,"column":17,"index":218},"end":{"line":14,"column":24,"index":225}}, |
| 397 |
"object": { |
| 398 |
"type": "ThisExpression", |
| 399 |
"start":218,"end":222,"loc":{"start":{"line":14,"column":17,"index":218},"end":{"line":14,"column":21,"index":222}} |
| 400 |
}, |
| 401 |
"computed": false, |
| 402 |
"property": { |
| 403 |
"type": "PrivateName", |
| 404 |
"start":223,"end":225,"loc":{"start":{"line":14,"column":22,"index":223},"end":{"line":14,"column":24,"index":225}}, |
| 405 |
"id": { |
| 406 |
"type": "Identifier", |
| 407 |
"start":224,"end":225,"loc":{"start":{"line":14,"column":23,"index":224},"end":{"line":14,"column":24,"index":225},"identifierName":"y"}, |
| 408 |
"name": "y" |
| 409 |
} |
| 410 |
} |
| 411 |
}, |
| 412 |
"right": { |
| 413 |
"type": "UnaryExpression", |
| 414 |
"start":228,"end":234,"loc":{"start":{"line":14,"column":27,"index":228},"end":{"line":14,"column":33,"index":234}}, |
| 415 |
"operator": "+", |
| 416 |
"prefix": true, |
| 417 |
"argument": { |
| 418 |
"type": "Identifier", |
| 419 |
"start":229,"end":234,"loc":{"start":{"line":14,"column":28,"index":229},"end":{"line":14,"column":33,"index":234},"identifierName":"value"}, |
| 420 |
"name": "value" |
| 421 |
} |
| 422 |
} |
| 423 |
} |
| 424 |
} |
| 425 |
], |
| 426 |
"directives": [] |
| 427 |
} |
| 428 |
}, |
| 429 |
{ |
| 430 |
"type": "ClassMethod", |
| 431 |
"start":240,"end":297,"loc":{"start":{"line":16,"column":2,"index":240},"end":{"line":16,"column":59,"index":297}}, |
| 432 |
"static": false, |
| 433 |
"key": { |
| 434 |
"type": "Identifier", |
| 435 |
"start":240,"end":246,"loc":{"start":{"line":16,"column":2,"index":240},"end":{"line":16,"column":8,"index":246},"identifierName":"equals"}, |
| 436 |
"name": "equals" |
| 437 |
}, |
| 438 |
"computed": false, |
| 439 |
"kind": "method", |
| 440 |
"id": null, |
| 441 |
"generator": false, |
| 442 |
"async": false, |
| 443 |
"params": [ |
| 444 |
{ |
| 445 |
"type": "Identifier", |
| 446 |
"start":247,"end":248,"loc":{"start":{"line":16,"column":9,"index":247},"end":{"line":16,"column":10,"index":248},"identifierName":"p"}, |
| 447 |
"name": "p" |
| 448 |
} |
| 449 |
], |
| 450 |
"body": { |
| 451 |
"type": "BlockStatement", |
| 452 |
"start":250,"end":297,"loc":{"start":{"line":16,"column":12,"index":250},"end":{"line":16,"column":59,"index":297}}, |
| 453 |
"body": [ |
| 454 |
{ |
| 455 |
"type": "ReturnStatement", |
| 456 |
"start":252,"end":295,"loc":{"start":{"line":16,"column":14,"index":252},"end":{"line":16,"column":57,"index":295}}, |
| 457 |
"argument": { |
| 458 |
"type": "LogicalExpression", |
| 459 |
"start":259,"end":295,"loc":{"start":{"line":16,"column":21,"index":259},"end":{"line":16,"column":57,"index":295}}, |
| 460 |
"left": { |
| 461 |
"type": "BinaryExpression", |
| 462 |
"start":259,"end":275,"loc":{"start":{"line":16,"column":21,"index":259},"end":{"line":16,"column":37,"index":275}}, |
| 463 |
"left": { |
| 464 |
"type": "MemberExpression", |
| 465 |
"start":259,"end":266,"loc":{"start":{"line":16,"column":21,"index":259},"end":{"line":16,"column":28,"index":266}}, |
| 466 |
"object": { |
| 467 |
"type": "ThisExpression", |
| 468 |
"start":259,"end":263,"loc":{"start":{"line":16,"column":21,"index":259},"end":{"line":16,"column":25,"index":263}} |
| 469 |
}, |
| 470 |
"computed": false, |
| 471 |
"property": { |
| 472 |
"type": "PrivateName", |
| 473 |
"start":264,"end":266,"loc":{"start":{"line":16,"column":26,"index":264},"end":{"line":16,"column":28,"index":266}}, |
| 474 |
"id": { |
| 475 |
"type": "Identifier", |
| 476 |
"start":265,"end":266,"loc":{"start":{"line":16,"column":27,"index":265},"end":{"line":16,"column":28,"index":266},"identifierName":"x"}, |
| 477 |
"name": "x" |
| 478 |
} |
| 479 |
} |
| 480 |
}, |
| 481 |
"operator": "===", |
| 482 |
"right": { |
| 483 |
"type": "MemberExpression", |
| 484 |
"start":271,"end":275,"loc":{"start":{"line":16,"column":33,"index":271},"end":{"line":16,"column":37,"index":275}}, |
| 485 |
"object": { |
| 486 |
"type": "Identifier", |
| 487 |
"start":271,"end":272,"loc":{"start":{"line":16,"column":33,"index":271},"end":{"line":16,"column":34,"index":272},"identifierName":"p"}, |
| 488 |
"name": "p" |
| 489 |
}, |
| 490 |
"computed": false, |
| 491 |
"property": { |
| 492 |
"type": "PrivateName", |
| 493 |
"start":273,"end":275,"loc":{"start":{"line":16,"column":35,"index":273},"end":{"line":16,"column":37,"index":275}}, |
| 494 |
"id": { |
| 495 |
"type": "Identifier", |
| 496 |
"start":274,"end":275,"loc":{"start":{"line":16,"column":36,"index":274},"end":{"line":16,"column":37,"index":275},"identifierName":"x"}, |
| 497 |
"name": "x" |
| 498 |
} |
| 499 |
} |
| 500 |
} |
| 501 |
}, |
| 502 |
"operator": "&&", |
| 503 |
"right": { |
| 504 |
"type": "BinaryExpression", |
| 505 |
"start":279,"end":295,"loc":{"start":{"line":16,"column":41,"index":279},"end":{"line":16,"column":57,"index":295}}, |
| 506 |
"left": { |
| 507 |
"type": "MemberExpression", |
| 508 |
"start":279,"end":286,"loc":{"start":{"line":16,"column":41,"index":279},"end":{"line":16,"column":48,"index":286}}, |
| 509 |
"object": { |
| 510 |
"type": "ThisExpression", |
| 511 |
"start":279,"end":283,"loc":{"start":{"line":16,"column":41,"index":279},"end":{"line":16,"column":45,"index":283}} |
| 512 |
}, |
| 513 |
"computed": false, |
| 514 |
"property": { |
| 515 |
"type": "PrivateName", |
| 516 |
"start":284,"end":286,"loc":{"start":{"line":16,"column":46,"index":284},"end":{"line":16,"column":48,"index":286}}, |
| 517 |
"id": { |
| 518 |
"type": "Identifier", |
| 519 |
"start":285,"end":286,"loc":{"start":{"line":16,"column":47,"index":285},"end":{"line":16,"column":48,"index":286},"identifierName":"y"}, |
| 520 |
"name": "y" |
| 521 |
} |
| 522 |
} |
| 523 |
}, |
| 524 |
"operator": "===", |
| 525 |
"right": { |
| 526 |
"type": "MemberExpression", |
| 527 |
"start":291,"end":295,"loc":{"start":{"line":16,"column":53,"index":291},"end":{"line":16,"column":57,"index":295}}, |
| 528 |
"object": { |
| 529 |
"type": "Identifier", |
| 530 |
"start":291,"end":292,"loc":{"start":{"line":16,"column":53,"index":291},"end":{"line":16,"column":54,"index":292},"identifierName":"p"}, |
| 531 |
"name": "p" |
| 532 |
}, |
| 533 |
"computed": false, |
| 534 |
"property": { |
| 535 |
"type": "PrivateName", |
| 536 |
"start":293,"end":295,"loc":{"start":{"line":16,"column":55,"index":293},"end":{"line":16,"column":57,"index":295}}, |
| 537 |
"id": { |
| 538 |
"type": "Identifier", |
| 539 |
"start":294,"end":295,"loc":{"start":{"line":16,"column":56,"index":294},"end":{"line":16,"column":57,"index":295},"identifierName":"y"}, |
| 540 |
"name": "y" |
| 541 |
} |
| 542 |
} |
| 543 |
} |
| 544 |
} |
| 545 |
} |
| 546 |
} |
| 547 |
], |
| 548 |
"directives": [] |
| 549 |
} |
| 550 |
}, |
| 551 |
{ |
| 552 |
"type": "ClassMethod", |
| 553 |
"start":301,"end":357,"loc":{"start":{"line":18,"column":2,"index":301},"end":{"line":18,"column":58,"index":357}}, |
| 554 |
"static": false, |
| 555 |
"key": { |
| 556 |
"type": "Identifier", |
| 557 |
"start":301,"end":309,"loc":{"start":{"line":18,"column":2,"index":301},"end":{"line":18,"column":10,"index":309},"identifierName":"toString"}, |
| 558 |
"name": "toString" |
| 559 |
}, |
| 560 |
"computed": false, |
| 561 |
"kind": "method", |
| 562 |
"id": null, |
| 563 |
"generator": false, |
| 564 |
"async": false, |
| 565 |
"params": [], |
| 566 |
"body": { |
| 567 |
"type": "BlockStatement", |
| 568 |
"start":312,"end":357,"loc":{"start":{"line":18,"column":13,"index":312},"end":{"line":18,"column":58,"index":357}}, |
| 569 |
"body": [ |
| 570 |
{ |
| 571 |
"type": "ReturnStatement", |
| 572 |
"start":314,"end":355,"loc":{"start":{"line":18,"column":15,"index":314},"end":{"line":18,"column":56,"index":355}}, |
| 573 |
"argument": { |
| 574 |
"type": "TemplateLiteral", |
| 575 |
"start":321,"end":355,"loc":{"start":{"line":18,"column":22,"index":321},"end":{"line":18,"column":56,"index":355}}, |
| 576 |
"expressions": [ |
| 577 |
{ |
| 578 |
"type": "MemberExpression", |
| 579 |
"start":331,"end":338,"loc":{"start":{"line":18,"column":32,"index":331},"end":{"line":18,"column":39,"index":338}}, |
| 580 |
"object": { |
| 581 |
"type": "ThisExpression", |
| 582 |
"start":331,"end":335,"loc":{"start":{"line":18,"column":32,"index":331},"end":{"line":18,"column":36,"index":335}} |
| 583 |
}, |
| 584 |
"computed": false, |
| 585 |
"property": { |
| 586 |
"type": "PrivateName", |
| 587 |
"start":336,"end":338,"loc":{"start":{"line":18,"column":37,"index":336},"end":{"line":18,"column":39,"index":338}}, |
| 588 |
"id": { |
| 589 |
"type": "Identifier", |
| 590 |
"start":337,"end":338,"loc":{"start":{"line":18,"column":38,"index":337},"end":{"line":18,"column":39,"index":338},"identifierName":"x"}, |
| 591 |
"name": "x" |
| 592 |
} |
| 593 |
} |
| 594 |
}, |
| 595 |
{ |
| 596 |
"type": "MemberExpression", |
| 597 |
"start":344,"end":351,"loc":{"start":{"line":18,"column":45,"index":344},"end":{"line":18,"column":52,"index":351}}, |
| 598 |
"object": { |
| 599 |
"type": "ThisExpression", |
| 600 |
"start":344,"end":348,"loc":{"start":{"line":18,"column":45,"index":344},"end":{"line":18,"column":49,"index":348}} |
| 601 |
}, |
| 602 |
"computed": false, |
| 603 |
"property": { |
| 604 |
"type": "PrivateName", |
| 605 |
"start":349,"end":351,"loc":{"start":{"line":18,"column":50,"index":349},"end":{"line":18,"column":52,"index":351}}, |
| 606 |
"id": { |
| 607 |
"type": "Identifier", |
| 608 |
"start":350,"end":351,"loc":{"start":{"line":18,"column":51,"index":350},"end":{"line":18,"column":52,"index":351},"identifierName":"y"}, |
| 609 |
"name": "y" |
| 610 |
} |
| 611 |
} |
| 612 |
} |
| 613 |
], |
| 614 |
"quasis": [ |
| 615 |
{ |
| 616 |
"type": "TemplateElement", |
| 617 |
"start":322,"end":328,"loc":{"start":{"line":18,"column":23,"index":322},"end":{"line":18,"column":29,"index":328}}, |
| 618 |
"value": { |
| 619 |
"raw": "Point<", |
| 620 |
"cooked": "Point<" |
| 621 |
}, |
| 622 |
"tail": false |
| 623 |
}, |
| 624 |
{ |
| 625 |
"type": "TemplateElement", |
| 626 |
"start":340,"end":341,"loc":{"start":{"line":18,"column":41,"index":340},"end":{"line":18,"column":42,"index":341}}, |
| 627 |
"value": { |
| 628 |
"raw": ",", |
| 629 |
"cooked": "," |
| 630 |
}, |
| 631 |
"tail": false |
| 632 |
}, |
| 633 |
{ |
| 634 |
"type": "TemplateElement", |
| 635 |
"start":353,"end":354,"loc":{"start":{"line":18,"column":54,"index":353},"end":{"line":18,"column":55,"index":354}}, |
| 636 |
"value": { |
| 637 |
"raw": ">", |
| 638 |
"cooked": ">" |
| 639 |
}, |
| 640 |
"tail": true |
| 641 |
} |
| 642 |
] |
| 643 |
} |
| 644 |
} |
| 645 |
], |
| 646 |
"directives": [] |
| 647 |
} |
| 648 |
} |
| 649 |
] |
| 650 |
} |
| 651 |
} |
| 652 |
], |
| 653 |
"directives": [] |
| 654 |
} |
| 655 |
} |