2022-02-04 11:08:38 +03:00
|
|
|
{
|
|
|
|
"type": "Script",
|
|
|
|
"span": {
|
|
|
|
"start": 36,
|
|
|
|
"end": 201,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"span": {
|
|
|
|
"start": 36,
|
|
|
|
"end": 45,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "let",
|
|
|
|
"declare": false,
|
|
|
|
"declarations": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarator",
|
|
|
|
"span": {
|
|
|
|
"start": 40,
|
|
|
|
"end": 44,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 40,
|
|
|
|
"end": 44,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "getX",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
|
|
|
},
|
|
|
|
"init": null,
|
|
|
|
"definite": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ClassDeclaration",
|
|
|
|
"identifier": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 52,
|
|
|
|
"end": 53,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "C",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"span": {
|
|
|
|
"start": 46,
|
|
|
|
"end": 201,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"type": "PrivateProperty",
|
|
|
|
"span": {
|
|
|
|
"start": 58,
|
|
|
|
"end": 64,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "PrivateName",
|
|
|
|
"span": {
|
|
|
|
"start": 58,
|
|
|
|
"end": 60,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 59,
|
|
|
|
"end": 60,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"value": {
|
|
|
|
"type": "NumericLiteral",
|
|
|
|
"span": {
|
|
|
|
"start": 63,
|
|
|
|
"end": 64,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-04-05 15:46:35 +03:00
|
|
|
"value": 1.0,
|
|
|
|
"raw": "1"
|
2022-02-04 11:08:38 +03:00
|
|
|
},
|
|
|
|
"typeAnnotation": null,
|
|
|
|
"isStatic": false,
|
|
|
|
"decorators": [],
|
|
|
|
"accessibility": null,
|
|
|
|
"isOptional": false,
|
|
|
|
"isOverride": false,
|
2022-03-17 08:33:37 +03:00
|
|
|
"readonly": false,
|
|
|
|
"definite": false
|
2022-02-04 11:08:38 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Constructor",
|
|
|
|
"span": {
|
|
|
|
"start": 67,
|
|
|
|
"end": 112,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 67,
|
|
|
|
"end": 78,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "constructor",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
|
|
|
"start": 79,
|
|
|
|
"end": 88,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 79,
|
|
|
|
"end": 88,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
|
|
|
"start": 80,
|
|
|
|
"end": 88,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
|
|
|
"start": 82,
|
|
|
|
"end": 88,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "number"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
|
|
|
"start": 90,
|
|
|
|
"end": 112,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
|
|
|
"start": 96,
|
|
|
|
"end": 108,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "AssignmentExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 96,
|
|
|
|
"end": 107,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "=",
|
|
|
|
"left": {
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 96,
|
|
|
|
"end": 103,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"object": {
|
|
|
|
"type": "ThisExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 96,
|
|
|
|
"end": 100,
|
|
|
|
"ctxt": 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"type": "PrivateName",
|
|
|
|
"span": {
|
|
|
|
"start": 101,
|
|
|
|
"end": 103,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 102,
|
|
|
|
"end": 103,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 106,
|
|
|
|
"end": 107,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"accessibility": null,
|
|
|
|
"isOptional": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "StaticBlock",
|
|
|
|
"span": {
|
|
|
|
"start": 116,
|
|
|
|
"end": 199,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
|
|
|
"start": 123,
|
|
|
|
"end": 199,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
|
|
|
"start": 169,
|
|
|
|
"end": 195,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "AssignmentExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 169,
|
|
|
|
"end": 194,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "=",
|
|
|
|
"left": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 169,
|
|
|
|
"end": 173,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "getX",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "ArrowFunctionExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 176,
|
|
|
|
"end": 194,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 177,
|
|
|
|
"end": 183,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "obj",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
|
|
|
"start": 180,
|
|
|
|
"end": 183,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeReference",
|
|
|
|
"span": {
|
|
|
|
"start": 182,
|
|
|
|
"end": 183,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeName": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 182,
|
|
|
|
"end": 183,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "C",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"typeParams": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"body": {
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"span": {
|
|
|
|
"start": 188,
|
|
|
|
"end": 194,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"object": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 188,
|
|
|
|
"end": 191,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "obj",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"type": "PrivateName",
|
|
|
|
"span": {
|
|
|
|
"start": 192,
|
|
|
|
"end": 194,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
|
|
|
"start": 193,
|
|
|
|
"end": 194,
|
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"async": false,
|
|
|
|
"generator": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"superClass": null,
|
|
|
|
"isAbstract": false,
|
|
|
|
"typeParams": null,
|
|
|
|
"superTypeParams": null,
|
|
|
|
"implements": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"interpreter": null
|
|
|
|
}
|