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

263 lines
5.4 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 141,
"end": 362,
"ctxt": 0
},
"body": [
{
"type": "ImportDeclaration",
"span": {
"start": 141,
"end": 163,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"span": {
"start": 148,
"end": 151,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 148,
"end": 151,
"ctxt": 0
},
"value": "foo",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 157,
"end": 162,
"ctxt": 0
},
"value": "./b",
"raw": "\"./b\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 164,
"end": 191,
"ctxt": 0
},
"decl": {
"type": "ClassExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 185,
"end": 188,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"span": {
"start": 179,
"end": 191,
"ctxt": 0
},
"decorators": [],
"body": [],
"superClass": null,
"isAbstract": false,
"typeParams": null,
"superTypeParams": null,
"implements": []
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 192,
"end": 198,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 192,
"end": 197,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 192,
"end": 195,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"arguments": [],
"typeArguments": null
}
},
{
"type": "ImportDeclaration",
"span": {
"start": 223,
"end": 245,
"ctxt": 0
},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"span": {
"start": 230,
"end": 233,
"ctxt": 0
},
"local": {
"type": "Identifier",
"span": {
"start": 230,
"end": 233,
"ctxt": 0
},
"value": "Foo",
"optional": false
}
}
],
"source": {
"type": "StringLiteral",
"span": {
"start": 239,
"end": 244,
"ctxt": 0
},
"value": "./a",
"raw": "\"./a\""
},
"typeOnly": false,
"asserts": null
},
{
"type": "ExportDefaultDeclaration",
"span": {
"start": 246,
"end": 290,
"ctxt": 0
},
"decl": {
"type": "FunctionExpression",
"identifier": {
"type": "Identifier",
"span": {
"start": 270,
"end": 273,
"ctxt": 0
},
"value": "foo",
"optional": false
},
"params": [],
"decorators": [],
"span": {
"start": 261,
"end": 290,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 276,
"end": 290,
"ctxt": 0
},
"stmts": [
{
"type": "ExpressionStatement",
"span": {
"start": 278,
"end": 288,
"ctxt": 0
},
"expression": {
"type": "NewExpression",
"span": {
"start": 278,
"end": 287,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 282,
"end": 285,
"ctxt": 0
},
"value": "Foo",
"optional": false
},
"arguments": [],
"typeArguments": null
}
}
]
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
}
},
{
"type": "ExpressionStatement",
"span": {
"start": 348,
"end": 362,
"ctxt": 0
},
"expression": {
"type": "CallExpression",
"span": {
"start": 348,
"end": 361,
"ctxt": 0
},
"callee": {
"type": "Import",
"span": {
"start": 348,
"end": 354,
"ctxt": 0
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "StringLiteral",
"span": {
"start": 355,
"end": 360,
"ctxt": 0
},
"value": "./a",
"raw": "\"./a\""
}
}
],
"typeArguments": null
}
}
],
"interpreter": null
}