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

2606 lines
72 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 75,
"end": 1797,
"ctxt": 0
},
"body": [
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 81,
"end": 86,
"ctxt": 0
},
"value": "Thing",
"optional": false
},
"declare": false,
"span": {
"start": 75,
"end": 97,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 90,
"end": 95,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 90,
"end": 91,
"ctxt": 0
},
"value": "x",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 94,
"end": 95,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "ClassDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 104,
"end": 116,
"ctxt": 0
},
"value": "AnotherThing",
"optional": false
},
"declare": false,
"span": {
"start": 98,
"end": 127,
"ctxt": 0
},
"decorators": [],
"body": [
{
"type": "ClassProperty",
"span": {
"start": 119,
"end": 124,
"ctxt": 0
},
"key": {
"type": "Identifier",
"span": {
"start": 119,
"end": 120,
"ctxt": 0
},
"value": "y",
"optional": false
},
"value": {
"type": "NumericLiteral",
"span": {
"start": 123,
"end": 124,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
},
"typeAnnotation": null,
"isStatic": false,
"decorators": [],
"accessibility": null,
"isAbstract": false,
"isOptional": false,
"isOverride": false,
"readonly": false,
"declare": false,
"definite": false
}
],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 137,
"end": 140,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 128,
"end": 155,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 143,
"end": 155,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 145,
"end": 153,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 152,
"end": 153,
"ctxt": 0
},
"value": 3.0,
"raw": "3"
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 165,
"end": 168,
"ctxt": 0
},
"value": "bar",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 156,
"end": 183,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 171,
"end": 183,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 173,
"end": 181,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 180,
"end": 181,
"ctxt": 0
},
"value": 4.0,
"raw": "4"
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 219,
"end": 332,
"ctxt": 0
},
"expression": {
"type": "AssignmentExpression",
"span": {
"start": 219,
"end": 332,
"ctxt": 0
},
"operator": "=",
"left": {
"type": "MemberExpression",
"span": {
"start": 219,
"end": 233,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 219,
"end": 225,
"ctxt": 0
},
"value": "module",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 226,
"end": 233,
"ctxt": 0
},
"value": "exports",
"optional": false
}
},
"right": {
"type": "ObjectExpression",
"span": {
"start": 236,
"end": 332,
"ctxt": 0
},
"properties": [
{
"type": "Identifier",
"span": {
"start": 242,
"end": 247,
"ctxt": 0
},
"value": "Thing",
"optional": false
},
{
"type": "Identifier",
"span": {
"start": 253,
"end": 265,
"ctxt": 0
},
"value": "AnotherThing",
"optional": false
},
{
"type": "Identifier",
"span": {
"start": 271,
"end": 274,
"ctxt": 0
},
"value": "foo",
"optional": false
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 280,
"end": 283,
"ctxt": 0
},
"value": "qux",
"optional": false
},
"value": {
"type": "Identifier",
"span": {
"start": 285,
"end": 288,
"ctxt": 0
},
"value": "bar",
"optional": false
}
},
{
"type": "MethodProperty",
"key": {
"type": "Identifier",
"span": {
"start": 294,
"end": 297,
"ctxt": 0
},
"value": "baz",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 294,
"end": 312,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 300,
"end": 312,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 302,
"end": 310,
"ctxt": 0
},
"argument": {
"type": "NumericLiteral",
"span": {
"start": 309,
"end": 310,
"ctxt": 0
},
"value": 5.0,
"raw": "5"
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "KeyValueProperty",
"key": {
"type": "Identifier",
"span": {
"start": 318,
"end": 325,
"ctxt": 0
},
"value": "literal",
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 327,
"end": 329,
"ctxt": 0
},
"value": "",
"raw": "\"\""
}
}
]
}
}
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 625,
"end": 632,
"ctxt": 0
},
"value": "jstypes",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 633,
"end": 634,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 633,
"end": 634,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 636,
"end": 637,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 636,
"end": 637,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 639,
"end": 640,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 639,
"end": 640,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 642,
"end": 643,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 642,
"end": 643,
"ctxt": 0
},
"value": "d",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 645,
"end": 646,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 645,
"end": 646,
"ctxt": 0
},
"value": "e",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 648,
"end": 649,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 648,
"end": 649,
"ctxt": 0
},
"value": "f",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 651,
"end": 652,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 651,
"end": 652,
"ctxt": 0
},
"value": "g",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 616,
"end": 713,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 654,
"end": 713,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 660,
"end": 711,
"ctxt": 0
},
"argument": {
"type": "BinaryExpression",
"span": {
"start": 667,
"end": 711,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 667,
"end": 700,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 667,
"end": 694,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 667,
"end": 688,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 667,
"end": 682,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 667,
"end": 676,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "MemberExpression",
"span": {
"start": 667,
"end": 670,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 667,
"end": 668,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 669,
"end": 670,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 673,
"end": 676,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 673,
"end": 674,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 675,
"end": 676,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 679,
"end": 682,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 679,
"end": 680,
"ctxt": 0
},
"value": "c",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 685,
"end": 688,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 685,
"end": 686,
"ctxt": 0
},
"value": "d",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 691,
"end": 694,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 691,
"end": 692,
"ctxt": 0
},
"value": "e",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 697,
"end": 700,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 697,
"end": 698,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 703,
"end": 711,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 703,
"end": 704,
"ctxt": 0
},
"value": "g",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 705,
"end": 711,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1034,
"end": 1042,
"ctxt": 0
},
"value": "jsvalues",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1043,
"end": 1044,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1043,
"end": 1044,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 1046,
"end": 1047,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1046,
"end": 1047,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 1049,
"end": 1050,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1049,
"end": 1050,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 1052,
"end": 1053,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1052,
"end": 1053,
"ctxt": 0
},
"value": "d",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 1055,
"end": 1056,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1055,
"end": 1056,
"ctxt": 0
},
"value": "e",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 1058,
"end": 1059,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1058,
"end": 1059,
"ctxt": 0
},
"value": "f",
"optional": false,
"typeAnnotation": null
}
},
{
"type": "Parameter",
"span": {
"start": 1061,
"end": 1062,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1061,
"end": 1062,
"ctxt": 0
},
"value": "g",
"optional": false,
"typeAnnotation": null
}
}
],
"decorators": [],
"span": {
"start": 1025,
"end": 1133,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1064,
"end": 1133,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1070,
"end": 1131,
"ctxt": 0
},
"argument": {
"type": "BinaryExpression",
"span": {
"start": 1077,
"end": 1131,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1077,
"end": 1120,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1077,
"end": 1114,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1077,
"end": 1108,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1077,
"end": 1102,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1077,
"end": 1096,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "MemberExpression",
"span": {
"start": 1077,
"end": 1085,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1077,
"end": 1078,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1079,
"end": 1085,
"ctxt": 0
},
"value": "length",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1088,
"end": 1096,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1088,
"end": 1089,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1090,
"end": 1096,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1099,
"end": 1102,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1099,
"end": 1100,
"ctxt": 0
},
"value": "c",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1105,
"end": 1108,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1105,
"end": 1106,
"ctxt": 0
},
"value": "d",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1111,
"end": 1114,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1111,
"end": 1112,
"ctxt": 0
},
"value": "e",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1117,
"end": 1120,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1117,
"end": 1118,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1123,
"end": 1131,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1123,
"end": 1124,
"ctxt": 0
},
"value": "g",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1125,
"end": 1131,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1168,
"end": 1173,
"ctxt": 0
},
"value": "types",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1179,
"end": 1203,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1179,
"end": 1203,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1180,
"end": 1203,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsImportType",
"span": {
"start": 1182,
"end": 1203,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1189,
"end": 1196,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1198,
"end": 1203,
"ctxt": 0
},
"value": "Thing",
"optional": false
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1209,
"end": 1240,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1209,
"end": 1240,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1210,
"end": 1240,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsImportType",
"span": {
"start": 1212,
"end": 1240,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1219,
"end": 1226,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1228,
"end": 1240,
"ctxt": 0
},
"value": "AnotherThing",
"optional": false
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1246,
"end": 1268,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1246,
"end": 1268,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1247,
"end": 1268,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsImportType",
"span": {
"start": 1249,
"end": 1268,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1256,
"end": 1263,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1265,
"end": 1268,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1274,
"end": 1296,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1274,
"end": 1296,
"ctxt": 0
},
"value": "d",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1275,
"end": 1296,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsImportType",
"span": {
"start": 1277,
"end": 1296,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1284,
"end": 1291,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1293,
"end": 1296,
"ctxt": 0
},
"value": "qux",
"optional": false
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1302,
"end": 1324,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1302,
"end": 1324,
"ctxt": 0
},
"value": "e",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1303,
"end": 1324,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsImportType",
"span": {
"start": 1305,
"end": 1324,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1312,
"end": 1319,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1321,
"end": 1324,
"ctxt": 0
},
"value": "baz",
"optional": false
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1330,
"end": 1352,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1330,
"end": 1352,
"ctxt": 0
},
"value": "f",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1331,
"end": 1352,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsImportType",
"span": {
"start": 1333,
"end": 1352,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1340,
"end": 1347,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1349,
"end": 1352,
"ctxt": 0
},
"value": "buz",
"optional": false
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1358,
"end": 1384,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1358,
"end": 1384,
"ctxt": 0
},
"value": "g",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1359,
"end": 1384,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsImportType",
"span": {
"start": 1361,
"end": 1384,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1368,
"end": 1375,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1377,
"end": 1384,
"ctxt": 0
},
"value": "literal",
"optional": false
},
"typeArguments": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1159,
"end": 1447,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1388,
"end": 1447,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1394,
"end": 1445,
"ctxt": 0
},
"argument": {
"type": "BinaryExpression",
"span": {
"start": 1401,
"end": 1445,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1401,
"end": 1434,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1401,
"end": 1428,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1401,
"end": 1422,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1401,
"end": 1416,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1401,
"end": 1410,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "MemberExpression",
"span": {
"start": 1401,
"end": 1404,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1401,
"end": 1402,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1403,
"end": 1404,
"ctxt": 0
},
"value": "x",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1407,
"end": 1410,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1407,
"end": 1408,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1409,
"end": 1410,
"ctxt": 0
},
"value": "y",
"optional": false
}
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1413,
"end": 1416,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1413,
"end": 1414,
"ctxt": 0
},
"value": "c",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1419,
"end": 1422,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1419,
"end": 1420,
"ctxt": 0
},
"value": "d",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1425,
"end": 1428,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1425,
"end": 1426,
"ctxt": 0
},
"value": "e",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1431,
"end": 1434,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1431,
"end": 1432,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1437,
"end": 1445,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1437,
"end": 1438,
"ctxt": 0
},
"value": "g",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1439,
"end": 1445,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 1458,
"end": 1464,
"ctxt": 0
},
"value": "values",
"optional": false
},
"declare": false,
"params": [
{
"type": "Parameter",
"span": {
"start": 1470,
"end": 1501,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1470,
"end": 1501,
"ctxt": 0
},
"value": "a",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1471,
"end": 1501,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 1473,
"end": 1501,
"ctxt": 0
},
"exprName": {
"type": "TsImportType",
"span": {
"start": 1480,
"end": 1501,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1487,
"end": 1494,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1496,
"end": 1501,
"ctxt": 0
},
"value": "Thing",
"optional": false
},
"typeArguments": null
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1507,
"end": 1545,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1507,
"end": 1545,
"ctxt": 0
},
"value": "b",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1508,
"end": 1545,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 1510,
"end": 1545,
"ctxt": 0
},
"exprName": {
"type": "TsImportType",
"span": {
"start": 1517,
"end": 1545,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1524,
"end": 1531,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1533,
"end": 1545,
"ctxt": 0
},
"value": "AnotherThing",
"optional": false
},
"typeArguments": null
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1551,
"end": 1580,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1551,
"end": 1580,
"ctxt": 0
},
"value": "c",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1552,
"end": 1580,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 1554,
"end": 1580,
"ctxt": 0
},
"exprName": {
"type": "TsImportType",
"span": {
"start": 1561,
"end": 1580,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1568,
"end": 1575,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1577,
"end": 1580,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"typeArguments": null
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1586,
"end": 1615,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1586,
"end": 1615,
"ctxt": 0
},
"value": "d",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1587,
"end": 1615,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 1589,
"end": 1615,
"ctxt": 0
},
"exprName": {
"type": "TsImportType",
"span": {
"start": 1596,
"end": 1615,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1603,
"end": 1610,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1612,
"end": 1615,
"ctxt": 0
},
"value": "qux",
"optional": false
},
"typeArguments": null
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1621,
"end": 1650,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1621,
"end": 1650,
"ctxt": 0
},
"value": "e",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1622,
"end": 1650,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 1624,
"end": 1650,
"ctxt": 0
},
"exprName": {
"type": "TsImportType",
"span": {
"start": 1631,
"end": 1650,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1638,
"end": 1645,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1647,
"end": 1650,
"ctxt": 0
},
"value": "baz",
"optional": false
},
"typeArguments": null
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1656,
"end": 1685,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1656,
"end": 1685,
"ctxt": 0
},
"value": "f",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1657,
"end": 1685,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 1659,
"end": 1685,
"ctxt": 0
},
"exprName": {
"type": "TsImportType",
"span": {
"start": 1666,
"end": 1685,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1673,
"end": 1680,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1682,
"end": 1685,
"ctxt": 0
},
"value": "buz",
"optional": false
},
"typeArguments": null
},
"typeArguments": null
}
}
}
},
{
"type": "Parameter",
"span": {
"start": 1691,
"end": 1724,
"ctxt": 0
},
"decorators": [],
"pat": {
"type": "Identifier",
"span": {
"start": 1691,
"end": 1724,
"ctxt": 0
},
"value": "g",
"optional": false,
"typeAnnotation": {
"type": "TsTypeAnnotation",
"span": {
"start": 1692,
"end": 1724,
"ctxt": 0
},
"typeAnnotation": {
"type": "TsTypeQuery",
"span": {
"start": 1694,
"end": 1724,
"ctxt": 0
},
"exprName": {
"type": "TsImportType",
"span": {
"start": 1701,
"end": 1724,
"ctxt": 0
},
"argument": {
"type": "StringLiteral",
"span": {
"start": 1708,
"end": 1715,
"ctxt": 0
},
"value": "./mod",
"raw": "'./mod'"
},
"qualifier": {
"type": "Identifier",
"span": {
"start": 1717,
"end": 1724,
"ctxt": 0
},
"value": "literal",
"optional": false
},
"typeArguments": null
},
"typeArguments": null
}
}
}
}
],
"decorators": [],
"span": {
"start": 1449,
"end": 1797,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 1728,
"end": 1797,
"ctxt": 0
},
"stmts": [
{
"type": "ReturnStatement",
"span": {
"start": 1734,
"end": 1795,
"ctxt": 0
},
"argument": {
"type": "BinaryExpression",
"span": {
"start": 1741,
"end": 1795,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1741,
"end": 1784,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1741,
"end": 1778,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1741,
"end": 1772,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1741,
"end": 1766,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "BinaryExpression",
"span": {
"start": 1741,
"end": 1760,
"ctxt": 0
},
"operator": "+",
"left": {
"type": "MemberExpression",
"span": {
"start": 1741,
"end": 1749,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1741,
"end": 1742,
"ctxt": 0
},
"value": "a",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1743,
"end": 1749,
"ctxt": 0
},
"value": "length",
"optional": false
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1752,
"end": 1760,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1752,
"end": 1753,
"ctxt": 0
},
"value": "b",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1754,
"end": 1760,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1763,
"end": 1766,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1763,
"end": 1764,
"ctxt": 0
},
"value": "c",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1769,
"end": 1772,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1769,
"end": 1770,
"ctxt": 0
},
"value": "d",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1775,
"end": 1778,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1775,
"end": 1776,
"ctxt": 0
},
"value": "e",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "CallExpression",
"span": {
"start": 1781,
"end": 1784,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 1781,
"end": 1782,
"ctxt": 0
},
"value": "f",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
"right": {
"type": "MemberExpression",
"span": {
"start": 1787,
"end": 1795,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 1787,
"end": 1788,
"ctxt": 0
},
"value": "g",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 1789,
"end": 1795,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
],
"interpreter": null
}