swc/crates/swc_ecma_parser/tests/tsc/instantiatedModule.json

2443 lines
63 KiB
JSON

{
"type": "Script",
"span": {
"start": 54,
"end": 1055,
"ctxt": 0
},
"body": [
{
"type": "TsModuleDeclaration",
"span": {
"start": 54,
"end": 144,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"value": "M",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 63,
"end": 144,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 69,
"end": 116,
"ctxt": 0
},
"declaration": {
"type": "TsInterfaceDeclaration",
"span": {
"start": 76,
"end": 116,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 86,
"end": 91,
"ctxt": 0
},
"value": "Point",
"optional": false
},
"declare": false,
"typeParams": null,
"extends": [],
"body": {
"type": "TsInterfaceBody",
"span": {
"start": 92,
"end": 116,
"ctxt": 0
},
"body": [
{
"type": "TsPropertySignature",
"span": {
"start": 94,
"end": 104,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 94,
"end": 95,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 95,
"end": 103,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 97,
"end": 103,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 105,
"end": 114,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 105,
"end": 106,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 106,
"end": 114,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 108,
"end": 114,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
},
{
"type": "ExportDeclaration",
"span": {
"start": 121,
"end": 142,
"ctxt": 0
},
"declaration": {
"type": "VariableDeclaration",
"span": {
"start": 128,
"end": 142,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 132,
"end": 141,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 132,
"end": 137,
"ctxt": 0
},
"value": "Point",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NumericLiteral",
"span": {
"start": 140,
"end": 141,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"definite": false
}
]
}
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 168,
"end": 184,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 172,
"end": 183,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 172,
"end": 173,
"ctxt": 0
},
"value": "m",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 173,
"end": 183,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 175,
"end": 183,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 182,
"end": 183,
"ctxt": 0
},
"value": "M",
"optional": false
},
"typeArguments": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 185,
"end": 195,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 189,
"end": 194,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 189,
"end": 190,
"ctxt": 0
},
"value": "m",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 193,
"end": 194,
"ctxt": 0
},
"value": "M",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 197,
"end": 212,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 201,
"end": 211,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 201,
"end": 203,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 203,
"end": 211,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 205,
"end": 211,
"ctxt": 0
},
"kind": "number"
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 213,
"end": 230,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 217,
"end": 229,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 217,
"end": 219,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 222,
"end": 229,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 222,
"end": 223,
"ctxt": 0
},
"value": "M",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 224,
"end": 229,
"ctxt": 0
},
"value": "Point",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 231,
"end": 248,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 235,
"end": 247,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 235,
"end": 237,
"ctxt": 0
},
"value": "a1",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 240,
"end": 247,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 240,
"end": 241,
"ctxt": 0
},
"value": "m",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 242,
"end": 247,
"ctxt": 0
},
"value": "Point",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 250,
"end": 283,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 254,
"end": 283,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 254,
"end": 256,
"ctxt": 0
},
"value": "p1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 256,
"end": 283,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 258,
"end": 283,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 260,
"end": 270,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 260,
"end": 261,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 261,
"end": 269,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 263,
"end": 269,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 271,
"end": 281,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 271,
"end": 272,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 272,
"end": 280,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 274,
"end": 280,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 284,
"end": 300,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 288,
"end": 299,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 288,
"end": 290,
"ctxt": 0
},
"value": "p1",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 290,
"end": 299,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 292,
"end": 299,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 292,
"end": 293,
"ctxt": 0
},
"value": "M",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 294,
"end": 299,
"ctxt": 0
},
"value": "Point",
"optional": false
}
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 393,
"end": 553,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 400,
"end": 402,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 403,
"end": 553,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 409,
"end": 551,
"ctxt": 0
},
"declaration": {
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 422,
"end": 427,
"ctxt": 0
},
"value": "Point",
"optional": false
},
"declare": false,
"span": {
"start": 416,
"end": 551,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 438,
"end": 448,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 438,
"end": 439,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 439,
"end": 447,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 441,
"end": 447,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassProperty",
"span": {
"start": 457,
"end": 467,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 457,
"end": 458,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": null,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 458,
"end": 466,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 460,
"end": 466,
"ctxt": 0
},
"kind": "number"
}
},
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
},
{
"type": "ClassMethod",
"span": {
"start": 476,
"end": 545,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 483,
"end": 489,
"ctxt": 0
},
"value": "Origin",
"optional": false
},
"function": {
"params": [],
"decorators": [],
"span": {
"start": 476,
"end": 545,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 499,
"end": 545,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 513,
"end": 535,
"ctxt": 0
},
"argument": {
"type": "ObjectExpression",
"span": {
"start": 520,
"end": 534,
"ctxt": 0
},
"properties": [
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 522,
"end": 523,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 525,
"end": 526,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 528,
"end": 529,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 531,
"end": 532,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
}
]
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": {
"type": "TsTypeAnnotation",
"span": {
"start": 491,
"end": 498,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 493,
"end": 498,
"ctxt": 0
},
"typeName": {
"type": "Identifier",
"span": {
"start": 493,
"end": 498,
"ctxt": 0
},
"value": "Point",
"optional": false
},
"typeParams": null
}
}
},
"kind": "method",
"isStatic": true,
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 555,
"end": 573,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 559,
"end": 572,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 559,
"end": 561,
"ctxt": 0
},
"value": "m2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 561,
"end": 572,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 563,
"end": 572,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 570,
"end": 572,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"typeArguments": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 574,
"end": 586,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 578,
"end": 585,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 578,
"end": 580,
"ctxt": 0
},
"value": "m2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 583,
"end": 585,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 616,
"end": 640,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 620,
"end": 639,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 620,
"end": 622,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 622,
"end": 639,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 624,
"end": 639,
"ctxt": 0
},
"exprName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 631,
"end": 633,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 634,
"end": 639,
"ctxt": 0
},
"value": "Point",
"optional": false
}
},
"typeArguments": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 641,
"end": 659,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 645,
"end": 658,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 645,
"end": 647,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 650,
"end": 658,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 650,
"end": 652,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 653,
"end": 658,
"ctxt": 0
},
"value": "Point",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 660,
"end": 678,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 664,
"end": 677,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 664,
"end": 666,
"ctxt": 0
},
"value": "a2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 669,
"end": 677,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 669,
"end": 671,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 672,
"end": 677,
"ctxt": 0
},
"value": "Point",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 679,
"end": 709,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 683,
"end": 708,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 683,
"end": 684,
"ctxt": 0
},
"value": "o",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 684,
"end": 694,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 686,
"end": 694,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 686,
"end": 688,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 689,
"end": 694,
"ctxt": 0
},
"value": "Point",
"optional": false
}
},
"typeParams": null
}
}
},
"init": {
"type": "CallExpression",
"span": {
"start": 697,
"end": 708,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 697,
"end": 706,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 697,
"end": 699,
"ctxt": 0
},
"value": "a2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 700,
"end": 706,
"ctxt": 0
},
"value": "Origin",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 711,
"end": 743,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 715,
"end": 743,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 715,
"end": 717,
"ctxt": 0
},
"value": "p2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 717,
"end": 743,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeLiteral",
"span": {
"start": 719,
"end": 743,
"ctxt": 0
},
"members": [
{
"type": "TsPropertySignature",
"span": {
"start": 721,
"end": 731,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 721,
"end": 722,
"ctxt": 0
},
"value": "x",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 722,
"end": 730,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 724,
"end": 730,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
},
{
"type": "TsPropertySignature",
"span": {
"start": 732,
"end": 741,
"ctxt": 0
},
"readonly": false,
"key": {
"type": "Identifier",
"span": {
"start": 732,
"end": 733,
"ctxt": 0
},
"value": "y",
"optional": false
},
"computed": false,
"optional": false,
"init": null,
"params": [],
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 733,
"end": 741,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsKeywordType",
"span": {
"start": 735,
"end": 741,
"ctxt": 0
},
"kind": "number"
}
},
"typeParams": null
}
]
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 744,
"end": 761,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 748,
"end": 760,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 748,
"end": 750,
"ctxt": 0
},
"value": "p2",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 750,
"end": 760,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 752,
"end": 760,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 752,
"end": 754,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 755,
"end": 760,
"ctxt": 0
},
"value": "Point",
"optional": false
}
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 762,
"end": 786,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 766,
"end": 785,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 766,
"end": 768,
"ctxt": 0
},
"value": "p2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 771,
"end": 785,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 775,
"end": 783,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 775,
"end": 777,
"ctxt": 0
},
"value": "m2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 778,
"end": 783,
"ctxt": 0
},
"value": "Point",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 787,
"end": 811,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 791,
"end": 810,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 791,
"end": 793,
"ctxt": 0
},
"value": "p2",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 796,
"end": 810,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 800,
"end": 808,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 800,
"end": 802,
"ctxt": 0
},
"value": "M2",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 803,
"end": 808,
"ctxt": 0
},
"value": "Point",
"optional": false
}
},
"arguments": [],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "TsModuleDeclaration",
"span": {
"start": 813,
"end": 862,
"ctxt": 0
},
"declare": false,
"global": false,
"id": {
"type": "Identifier",
"span": {
"start": 820,
"end": 822,
"ctxt": 0
},
"value": "M3",
"optional": false
},
"body": {
"type": "TsModuleBlock",
"span": {
"start": 823,
"end": 862,
"ctxt": 0
},
"body": [
{
"type": "ExportDeclaration",
"span": {
"start": 829,
"end": 860,
"ctxt": 0
},
"declaration": {
"type": "TsEnumDeclaration",
"span": {
"start": 836,
"end": 860,
"ctxt": 0
},
"declare": false,
"isConst": false,
"id": {
"type": "Identifier",
"span": {
"start": 841,
"end": 846,
"ctxt": 0
},
"value": "Color",
"optional": false
},
"members": [
{
"type": "TsEnumMember",
"span": {
"start": 849,
"end": 853,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 849,
"end": 853,
"ctxt": 0
},
"value": "Blue",
"optional": false
},
"init": null
},
{
"type": "TsEnumMember",
"span": {
"start": 855,
"end": 858,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 855,
"end": 858,
"ctxt": 0
},
"value": "Red",
"optional": false
},
"init": null
}
]
}
}
]
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 864,
"end": 882,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 868,
"end": 881,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 868,
"end": 870,
"ctxt": 0
},
"value": "m3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 870,
"end": 881,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 872,
"end": 881,
"ctxt": 0
},
"exprName": {
"type": "Identifier",
"span": {
"start": 879,
"end": 881,
"ctxt": 0
},
"value": "M3",
"optional": false
},
"typeArguments": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 883,
"end": 895,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 887,
"end": 894,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 887,
"end": 889,
"ctxt": 0
},
"value": "m3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "Identifier",
"span": {
"start": 892,
"end": 894,
"ctxt": 0
},
"value": "M3",
"optional": false
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 897,
"end": 921,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 901,
"end": 920,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 901,
"end": 903,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 903,
"end": 920,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 905,
"end": 920,
"ctxt": 0
},
"exprName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 912,
"end": 914,
"ctxt": 0
},
"value": "M3",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 915,
"end": 920,
"ctxt": 0
},
"value": "Color",
"optional": false
}
},
"typeArguments": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 922,
"end": 940,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 926,
"end": 939,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 926,
"end": 928,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 931,
"end": 939,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 931,
"end": 933,
"ctxt": 0
},
"value": "m3",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 934,
"end": 939,
"ctxt": 0
},
"value": "Color",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 941,
"end": 959,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 945,
"end": 958,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 945,
"end": 947,
"ctxt": 0
},
"value": "a3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 950,
"end": 958,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 950,
"end": 952,
"ctxt": 0
},
"value": "M3",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 953,
"end": 958,
"ctxt": 0
},
"value": "Color",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 960,
"end": 989,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 964,
"end": 988,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 964,
"end": 968,
"ctxt": 0
},
"value": "blue",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 968,
"end": 978,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 970,
"end": 978,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 970,
"end": 972,
"ctxt": 0
},
"value": "M3",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 973,
"end": 978,
"ctxt": 0
},
"value": "Color",
"optional": false
}
},
"typeParams": null
}
}
},
"init": {
"type": "MemberExpression",
"span": {
"start": 981,
"end": 988,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 981,
"end": 983,
"ctxt": 0
},
"value": "a3",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 984,
"end": 988,
"ctxt": 0
},
"value": "Blue",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 991,
"end": 1008,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 995,
"end": 1007,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 995,
"end": 997,
"ctxt": 0
},
"value": "p3",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 997,
"end": 1007,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeReference",
"span": {
"start": 999,
"end": 1007,
"ctxt": 0
},
"typeName": {
"type": "TsQualifiedName",
"left": {
"type": "Identifier",
"span": {
"start": 999,
"end": 1001,
"ctxt": 0
},
"value": "M3",
"optional": false
},
"right": {
"type": "Identifier",
"span": {
"start": 1002,
"end": 1007,
"ctxt": 0
},
"value": "Color",
"optional": false
}
},
"typeParams": null
}
}
},
"init": null,
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1009,
"end": 1031,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1013,
"end": 1030,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1013,
"end": 1015,
"ctxt": 0
},
"value": "p3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1018,
"end": 1030,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1018,
"end": 1026,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1018,
"end": 1020,
"ctxt": 0
},
"value": "M3",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1021,
"end": 1026,
"ctxt": 0
},
"value": "Color",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1027,
"end": 1030,
"ctxt": 0
},
"value": "Red",
"optional": false
}
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 1032,
"end": 1055,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 1036,
"end": 1054,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 1036,
"end": 1038,
"ctxt": 0
},
"value": "p3",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 1041,
"end": 1054,
"ctxt": 0
},
"object": {
"type": "MemberExpression",
"span": {
"start": 1041,
"end": 1049,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1041,
"end": 1043,
"ctxt": 0
},
"value": "m3",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1044,
"end": 1049,
"ctxt": 0
},
"value": "Color",
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 1050,
"end": 1054,
"ctxt": 0
},
"value": "Blue",
"optional": false
}
},
"definite": false
}
]
}
],
"interpreter": null
}