Files

656 lines
33 KiB
JSON

{
"type": "File",
"start":0,"end":359,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":19,"column":1,"index":359}},
"program": {
"type": "Program",
"start":0,"end":359,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":19,"column":1,"index":359}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":359,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":19,"column":1,"index":359}},
"id": {
"type": "Identifier",
"start":6,"end":11,"loc":{"start":{"line":1,"column":6,"index":6},"end":{"line":1,"column":11,"index":11},"identifierName":"Point"},
"name": "Point"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":12,"end":359,"loc":{"start":{"line":1,"column":12,"index":12},"end":{"line":19,"column":1,"index":359}},
"body": [
{
"type": "ClassPrivateProperty",
"start":16,"end":23,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":9,"index":23}},
"static": false,
"key": {
"type": "PrivateName",
"start":16,"end":18,"loc":{"start":{"line":2,"column":2,"index":16},"end":{"line":2,"column":4,"index":18}},
"id": {
"type": "Identifier",
"start":17,"end":18,"loc":{"start":{"line":2,"column":3,"index":17},"end":{"line":2,"column":4,"index":18},"identifierName":"x"},
"name": "x"
}
},
"value": {
"type": "NumericLiteral",
"start":21,"end":22,"loc":{"start":{"line":2,"column":7,"index":21},"end":{"line":2,"column":8,"index":22}},
"extra": {
"rawValue": 1,
"raw": "1"
},
"value": 1
}
},
{
"type": "ClassPrivateProperty",
"start":26,"end":33,"loc":{"start":{"line":3,"column":2,"index":26},"end":{"line":3,"column":9,"index":33}},
"static": false,
"key": {
"type": "PrivateName",
"start":26,"end":28,"loc":{"start":{"line":3,"column":2,"index":26},"end":{"line":3,"column":4,"index":28}},
"id": {
"type": "Identifier",
"start":27,"end":28,"loc":{"start":{"line":3,"column":3,"index":27},"end":{"line":3,"column":4,"index":28},"identifierName":"y"},
"name": "y"
}
},
"value": {
"type": "NumericLiteral",
"start":31,"end":32,"loc":{"start":{"line":3,"column":7,"index":31},"end":{"line":3,"column":8,"index":32}},
"extra": {
"rawValue": 2,
"raw": "2"
},
"value": 2
}
},
{
"type": "ClassMethod",
"start":37,"end":104,"loc":{"start":{"line":5,"column":2,"index":37},"end":{"line":8,"column":3,"index":104}},
"static": false,
"key": {
"type": "Identifier",
"start":37,"end":48,"loc":{"start":{"line":5,"column":2,"index":37},"end":{"line":5,"column":13,"index":48},"identifierName":"constructor"},
"name": "constructor"
},
"computed": false,
"kind": "constructor",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "AssignmentPattern",
"start":49,"end":54,"loc":{"start":{"line":5,"column":14,"index":49},"end":{"line":5,"column":19,"index":54}},
"left": {
"type": "Identifier",
"start":49,"end":50,"loc":{"start":{"line":5,"column":14,"index":49},"end":{"line":5,"column":15,"index":50},"identifierName":"x"},
"name": "x"
},
"right": {
"type": "NumericLiteral",
"start":53,"end":54,"loc":{"start":{"line":5,"column":18,"index":53},"end":{"line":5,"column":19,"index":54}},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
},
{
"type": "AssignmentPattern",
"start":56,"end":61,"loc":{"start":{"line":5,"column":21,"index":56},"end":{"line":5,"column":26,"index":61}},
"left": {
"type": "Identifier",
"start":56,"end":57,"loc":{"start":{"line":5,"column":21,"index":56},"end":{"line":5,"column":22,"index":57},"identifierName":"y"},
"name": "y"
},
"right": {
"type": "NumericLiteral",
"start":60,"end":61,"loc":{"start":{"line":5,"column":25,"index":60},"end":{"line":5,"column":26,"index":61}},
"extra": {
"rawValue": 0,
"raw": "0"
},
"value": 0
}
}
],
"body": {
"type": "BlockStatement",
"start":63,"end":104,"loc":{"start":{"line":5,"column":28,"index":63},"end":{"line":8,"column":3,"index":104}},
"body": [
{
"type": "ExpressionStatement",
"start":69,"end":82,"loc":{"start":{"line":6,"column":4,"index":69},"end":{"line":6,"column":17,"index":82}},
"expression": {
"type": "AssignmentExpression",
"start":69,"end":81,"loc":{"start":{"line":6,"column":4,"index":69},"end":{"line":6,"column":16,"index":81}},
"operator": "=",
"left": {
"type": "MemberExpression",
"start":69,"end":76,"loc":{"start":{"line":6,"column":4,"index":69},"end":{"line":6,"column":11,"index":76}},
"object": {
"type": "ThisExpression",
"start":69,"end":73,"loc":{"start":{"line":6,"column":4,"index":69},"end":{"line":6,"column":8,"index":73}}
},
"computed": false,
"property": {
"type": "PrivateName",
"start":74,"end":76,"loc":{"start":{"line":6,"column":9,"index":74},"end":{"line":6,"column":11,"index":76}},
"id": {
"type": "Identifier",
"start":75,"end":76,"loc":{"start":{"line":6,"column":10,"index":75},"end":{"line":6,"column":11,"index":76},"identifierName":"x"},
"name": "x"
}
}
},
"right": {
"type": "UnaryExpression",
"start":79,"end":81,"loc":{"start":{"line":6,"column":14,"index":79},"end":{"line":6,"column":16,"index":81}},
"operator": "+",
"prefix": true,
"argument": {
"type": "Identifier",
"start":80,"end":81,"loc":{"start":{"line":6,"column":15,"index":80},"end":{"line":6,"column":16,"index":81},"identifierName":"x"},
"name": "x"
}
}
}
},
{
"type": "ExpressionStatement",
"start":87,"end":100,"loc":{"start":{"line":7,"column":4,"index":87},"end":{"line":7,"column":17,"index":100}},
"expression": {
"type": "AssignmentExpression",
"start":87,"end":99,"loc":{"start":{"line":7,"column":4,"index":87},"end":{"line":7,"column":16,"index":99}},
"operator": "=",
"left": {
"type": "MemberExpression",
"start":87,"end":94,"loc":{"start":{"line":7,"column":4,"index":87},"end":{"line":7,"column":11,"index":94}},
"object": {
"type": "ThisExpression",
"start":87,"end":91,"loc":{"start":{"line":7,"column":4,"index":87},"end":{"line":7,"column":8,"index":91}}
},
"computed": false,
"property": {
"type": "PrivateName",
"start":92,"end":94,"loc":{"start":{"line":7,"column":9,"index":92},"end":{"line":7,"column":11,"index":94}},
"id": {
"type": "Identifier",
"start":93,"end":94,"loc":{"start":{"line":7,"column":10,"index":93},"end":{"line":7,"column":11,"index":94},"identifierName":"y"},
"name": "y"
}
}
},
"right": {
"type": "UnaryExpression",
"start":97,"end":99,"loc":{"start":{"line":7,"column":14,"index":97},"end":{"line":7,"column":16,"index":99}},
"operator": "+",
"prefix": true,
"argument": {
"type": "Identifier",
"start":98,"end":99,"loc":{"start":{"line":7,"column":15,"index":98},"end":{"line":7,"column":16,"index":99},"identifierName":"y"},
"name": "y"
}
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start":108,"end":134,"loc":{"start":{"line":10,"column":2,"index":108},"end":{"line":10,"column":28,"index":134}},
"static": false,
"key": {
"type": "Identifier",
"start":112,"end":113,"loc":{"start":{"line":10,"column":6,"index":112},"end":{"line":10,"column":7,"index":113},"identifierName":"x"},
"name": "x"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":116,"end":134,"loc":{"start":{"line":10,"column":10,"index":116},"end":{"line":10,"column":28,"index":134}},
"body": [
{
"type": "ReturnStatement",
"start":118,"end":132,"loc":{"start":{"line":10,"column":12,"index":118},"end":{"line":10,"column":26,"index":132}},
"argument": {
"type": "MemberExpression",
"start":125,"end":132,"loc":{"start":{"line":10,"column":19,"index":125},"end":{"line":10,"column":26,"index":132}},
"object": {
"type": "ThisExpression",
"start":125,"end":129,"loc":{"start":{"line":10,"column":19,"index":125},"end":{"line":10,"column":23,"index":129}}
},
"computed": false,
"property": {
"type": "PrivateName",
"start":130,"end":132,"loc":{"start":{"line":10,"column":24,"index":130},"end":{"line":10,"column":26,"index":132}},
"id": {
"type": "Identifier",
"start":131,"end":132,"loc":{"start":{"line":10,"column":25,"index":131},"end":{"line":10,"column":26,"index":132},"identifierName":"x"},
"name": "x"
}
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start":137,"end":170,"loc":{"start":{"line":11,"column":2,"index":137},"end":{"line":11,"column":35,"index":170}},
"static": false,
"key": {
"type": "Identifier",
"start":141,"end":142,"loc":{"start":{"line":11,"column":6,"index":141},"end":{"line":11,"column":7,"index":142},"identifierName":"x"},
"name": "x"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":143,"end":148,"loc":{"start":{"line":11,"column":8,"index":143},"end":{"line":11,"column":13,"index":148},"identifierName":"value"},
"name": "value"
}
],
"body": {
"type": "BlockStatement",
"start":150,"end":170,"loc":{"start":{"line":11,"column":15,"index":150},"end":{"line":11,"column":35,"index":170}},
"body": [
{
"type": "ExpressionStatement",
"start":152,"end":168,"loc":{"start":{"line":11,"column":17,"index":152},"end":{"line":11,"column":33,"index":168}},
"expression": {
"type": "AssignmentExpression",
"start":152,"end":168,"loc":{"start":{"line":11,"column":17,"index":152},"end":{"line":11,"column":33,"index":168}},
"operator": "=",
"left": {
"type": "MemberExpression",
"start":152,"end":159,"loc":{"start":{"line":11,"column":17,"index":152},"end":{"line":11,"column":24,"index":159}},
"object": {
"type": "ThisExpression",
"start":152,"end":156,"loc":{"start":{"line":11,"column":17,"index":152},"end":{"line":11,"column":21,"index":156}}
},
"computed": false,
"property": {
"type": "PrivateName",
"start":157,"end":159,"loc":{"start":{"line":11,"column":22,"index":157},"end":{"line":11,"column":24,"index":159}},
"id": {
"type": "Identifier",
"start":158,"end":159,"loc":{"start":{"line":11,"column":23,"index":158},"end":{"line":11,"column":24,"index":159},"identifierName":"x"},
"name": "x"
}
}
},
"right": {
"type": "UnaryExpression",
"start":162,"end":168,"loc":{"start":{"line":11,"column":27,"index":162},"end":{"line":11,"column":33,"index":168}},
"operator": "+",
"prefix": true,
"argument": {
"type": "Identifier",
"start":163,"end":168,"loc":{"start":{"line":11,"column":28,"index":163},"end":{"line":11,"column":33,"index":168},"identifierName":"value"},
"name": "value"
}
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start":174,"end":200,"loc":{"start":{"line":13,"column":2,"index":174},"end":{"line":13,"column":28,"index":200}},
"static": false,
"key": {
"type": "Identifier",
"start":178,"end":179,"loc":{"start":{"line":13,"column":6,"index":178},"end":{"line":13,"column":7,"index":179},"identifierName":"y"},
"name": "y"
},
"computed": false,
"kind": "get",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":182,"end":200,"loc":{"start":{"line":13,"column":10,"index":182},"end":{"line":13,"column":28,"index":200}},
"body": [
{
"type": "ReturnStatement",
"start":184,"end":198,"loc":{"start":{"line":13,"column":12,"index":184},"end":{"line":13,"column":26,"index":198}},
"argument": {
"type": "MemberExpression",
"start":191,"end":198,"loc":{"start":{"line":13,"column":19,"index":191},"end":{"line":13,"column":26,"index":198}},
"object": {
"type": "ThisExpression",
"start":191,"end":195,"loc":{"start":{"line":13,"column":19,"index":191},"end":{"line":13,"column":23,"index":195}}
},
"computed": false,
"property": {
"type": "PrivateName",
"start":196,"end":198,"loc":{"start":{"line":13,"column":24,"index":196},"end":{"line":13,"column":26,"index":198}},
"id": {
"type": "Identifier",
"start":197,"end":198,"loc":{"start":{"line":13,"column":25,"index":197},"end":{"line":13,"column":26,"index":198},"identifierName":"y"},
"name": "y"
}
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start":203,"end":236,"loc":{"start":{"line":14,"column":2,"index":203},"end":{"line":14,"column":35,"index":236}},
"static": false,
"key": {
"type": "Identifier",
"start":207,"end":208,"loc":{"start":{"line":14,"column":6,"index":207},"end":{"line":14,"column":7,"index":208},"identifierName":"y"},
"name": "y"
},
"computed": false,
"kind": "set",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":209,"end":214,"loc":{"start":{"line":14,"column":8,"index":209},"end":{"line":14,"column":13,"index":214},"identifierName":"value"},
"name": "value"
}
],
"body": {
"type": "BlockStatement",
"start":216,"end":236,"loc":{"start":{"line":14,"column":15,"index":216},"end":{"line":14,"column":35,"index":236}},
"body": [
{
"type": "ExpressionStatement",
"start":218,"end":234,"loc":{"start":{"line":14,"column":17,"index":218},"end":{"line":14,"column":33,"index":234}},
"expression": {
"type": "AssignmentExpression",
"start":218,"end":234,"loc":{"start":{"line":14,"column":17,"index":218},"end":{"line":14,"column":33,"index":234}},
"operator": "=",
"left": {
"type": "MemberExpression",
"start":218,"end":225,"loc":{"start":{"line":14,"column":17,"index":218},"end":{"line":14,"column":24,"index":225}},
"object": {
"type": "ThisExpression",
"start":218,"end":222,"loc":{"start":{"line":14,"column":17,"index":218},"end":{"line":14,"column":21,"index":222}}
},
"computed": false,
"property": {
"type": "PrivateName",
"start":223,"end":225,"loc":{"start":{"line":14,"column":22,"index":223},"end":{"line":14,"column":24,"index":225}},
"id": {
"type": "Identifier",
"start":224,"end":225,"loc":{"start":{"line":14,"column":23,"index":224},"end":{"line":14,"column":24,"index":225},"identifierName":"y"},
"name": "y"
}
}
},
"right": {
"type": "UnaryExpression",
"start":228,"end":234,"loc":{"start":{"line":14,"column":27,"index":228},"end":{"line":14,"column":33,"index":234}},
"operator": "+",
"prefix": true,
"argument": {
"type": "Identifier",
"start":229,"end":234,"loc":{"start":{"line":14,"column":28,"index":229},"end":{"line":14,"column":33,"index":234},"identifierName":"value"},
"name": "value"
}
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start":240,"end":297,"loc":{"start":{"line":16,"column":2,"index":240},"end":{"line":16,"column":59,"index":297}},
"static": false,
"key": {
"type": "Identifier",
"start":240,"end":246,"loc":{"start":{"line":16,"column":2,"index":240},"end":{"line":16,"column":8,"index":246},"identifierName":"equals"},
"name": "equals"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":247,"end":248,"loc":{"start":{"line":16,"column":9,"index":247},"end":{"line":16,"column":10,"index":248},"identifierName":"p"},
"name": "p"
}
],
"body": {
"type": "BlockStatement",
"start":250,"end":297,"loc":{"start":{"line":16,"column":12,"index":250},"end":{"line":16,"column":59,"index":297}},
"body": [
{
"type": "ReturnStatement",
"start":252,"end":295,"loc":{"start":{"line":16,"column":14,"index":252},"end":{"line":16,"column":57,"index":295}},
"argument": {
"type": "LogicalExpression",
"start":259,"end":295,"loc":{"start":{"line":16,"column":21,"index":259},"end":{"line":16,"column":57,"index":295}},
"left": {
"type": "BinaryExpression",
"start":259,"end":275,"loc":{"start":{"line":16,"column":21,"index":259},"end":{"line":16,"column":37,"index":275}},
"left": {
"type": "MemberExpression",
"start":259,"end":266,"loc":{"start":{"line":16,"column":21,"index":259},"end":{"line":16,"column":28,"index":266}},
"object": {
"type": "ThisExpression",
"start":259,"end":263,"loc":{"start":{"line":16,"column":21,"index":259},"end":{"line":16,"column":25,"index":263}}
},
"computed": false,
"property": {
"type": "PrivateName",
"start":264,"end":266,"loc":{"start":{"line":16,"column":26,"index":264},"end":{"line":16,"column":28,"index":266}},
"id": {
"type": "Identifier",
"start":265,"end":266,"loc":{"start":{"line":16,"column":27,"index":265},"end":{"line":16,"column":28,"index":266},"identifierName":"x"},
"name": "x"
}
}
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start":271,"end":275,"loc":{"start":{"line":16,"column":33,"index":271},"end":{"line":16,"column":37,"index":275}},
"object": {
"type": "Identifier",
"start":271,"end":272,"loc":{"start":{"line":16,"column":33,"index":271},"end":{"line":16,"column":34,"index":272},"identifierName":"p"},
"name": "p"
},
"computed": false,
"property": {
"type": "PrivateName",
"start":273,"end":275,"loc":{"start":{"line":16,"column":35,"index":273},"end":{"line":16,"column":37,"index":275}},
"id": {
"type": "Identifier",
"start":274,"end":275,"loc":{"start":{"line":16,"column":36,"index":274},"end":{"line":16,"column":37,"index":275},"identifierName":"x"},
"name": "x"
}
}
}
},
"operator": "&&",
"right": {
"type": "BinaryExpression",
"start":279,"end":295,"loc":{"start":{"line":16,"column":41,"index":279},"end":{"line":16,"column":57,"index":295}},
"left": {
"type": "MemberExpression",
"start":279,"end":286,"loc":{"start":{"line":16,"column":41,"index":279},"end":{"line":16,"column":48,"index":286}},
"object": {
"type": "ThisExpression",
"start":279,"end":283,"loc":{"start":{"line":16,"column":41,"index":279},"end":{"line":16,"column":45,"index":283}}
},
"computed": false,
"property": {
"type": "PrivateName",
"start":284,"end":286,"loc":{"start":{"line":16,"column":46,"index":284},"end":{"line":16,"column":48,"index":286}},
"id": {
"type": "Identifier",
"start":285,"end":286,"loc":{"start":{"line":16,"column":47,"index":285},"end":{"line":16,"column":48,"index":286},"identifierName":"y"},
"name": "y"
}
}
},
"operator": "===",
"right": {
"type": "MemberExpression",
"start":291,"end":295,"loc":{"start":{"line":16,"column":53,"index":291},"end":{"line":16,"column":57,"index":295}},
"object": {
"type": "Identifier",
"start":291,"end":292,"loc":{"start":{"line":16,"column":53,"index":291},"end":{"line":16,"column":54,"index":292},"identifierName":"p"},
"name": "p"
},
"computed": false,
"property": {
"type": "PrivateName",
"start":293,"end":295,"loc":{"start":{"line":16,"column":55,"index":293},"end":{"line":16,"column":57,"index":295}},
"id": {
"type": "Identifier",
"start":294,"end":295,"loc":{"start":{"line":16,"column":56,"index":294},"end":{"line":16,"column":57,"index":295},"identifierName":"y"},
"name": "y"
}
}
}
}
}
}
],
"directives": []
}
},
{
"type": "ClassMethod",
"start":301,"end":357,"loc":{"start":{"line":18,"column":2,"index":301},"end":{"line":18,"column":58,"index":357}},
"static": false,
"key": {
"type": "Identifier",
"start":301,"end":309,"loc":{"start":{"line":18,"column":2,"index":301},"end":{"line":18,"column":10,"index":309},"identifierName":"toString"},
"name": "toString"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":312,"end":357,"loc":{"start":{"line":18,"column":13,"index":312},"end":{"line":18,"column":58,"index":357}},
"body": [
{
"type": "ReturnStatement",
"start":314,"end":355,"loc":{"start":{"line":18,"column":15,"index":314},"end":{"line":18,"column":56,"index":355}},
"argument": {
"type": "TemplateLiteral",
"start":321,"end":355,"loc":{"start":{"line":18,"column":22,"index":321},"end":{"line":18,"column":56,"index":355}},
"expressions": [
{
"type": "MemberExpression",
"start":331,"end":338,"loc":{"start":{"line":18,"column":32,"index":331},"end":{"line":18,"column":39,"index":338}},
"object": {
"type": "ThisExpression",
"start":331,"end":335,"loc":{"start":{"line":18,"column":32,"index":331},"end":{"line":18,"column":36,"index":335}}
},
"computed": false,
"property": {
"type": "PrivateName",
"start":336,"end":338,"loc":{"start":{"line":18,"column":37,"index":336},"end":{"line":18,"column":39,"index":338}},
"id": {
"type": "Identifier",
"start":337,"end":338,"loc":{"start":{"line":18,"column":38,"index":337},"end":{"line":18,"column":39,"index":338},"identifierName":"x"},
"name": "x"
}
}
},
{
"type": "MemberExpression",
"start":344,"end":351,"loc":{"start":{"line":18,"column":45,"index":344},"end":{"line":18,"column":52,"index":351}},
"object": {
"type": "ThisExpression",
"start":344,"end":348,"loc":{"start":{"line":18,"column":45,"index":344},"end":{"line":18,"column":49,"index":348}}
},
"computed": false,
"property": {
"type": "PrivateName",
"start":349,"end":351,"loc":{"start":{"line":18,"column":50,"index":349},"end":{"line":18,"column":52,"index":351}},
"id": {
"type": "Identifier",
"start":350,"end":351,"loc":{"start":{"line":18,"column":51,"index":350},"end":{"line":18,"column":52,"index":351},"identifierName":"y"},
"name": "y"
}
}
}
],
"quasis": [
{
"type": "TemplateElement",
"start":322,"end":328,"loc":{"start":{"line":18,"column":23,"index":322},"end":{"line":18,"column":29,"index":328}},
"value": {
"raw": "Point<",
"cooked": "Point<"
},
"tail": false
},
{
"type": "TemplateElement",
"start":340,"end":341,"loc":{"start":{"line":18,"column":41,"index":340},"end":{"line":18,"column":42,"index":341}},
"value": {
"raw": ",",
"cooked": ","
},
"tail": false
},
{
"type": "TemplateElement",
"start":353,"end":354,"loc":{"start":{"line":18,"column":54,"index":353},"end":{"line":18,"column":55,"index":354}},
"value": {
"raw": ">",
"cooked": ">"
},
"tail": true
}
]
}
}
],
"directives": []
}
}
]
}
}
],
"directives": []
}
}