swc/crates/swc_estree_compat/tests/fixtures/module-export-individual-items/output.json
Donny/강동윤 790a262c07
refactor(es/estree): Rename: babel => estree (#2846)
swc_babel_ast:
 - Rename as `swc_estree_ast`.

swc_babel_compat:
 - Rename as `swc_estree_compat`.

swc_babel_visit:
 - Rename as `swc_estree_visit`.
2021-11-24 05:34:41 +09:00

260 lines
8.5 KiB
JSON

{
"type": "File",
"start": 0,
"end": 85,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 0
}
},
"errors": [],
"program": {
"type": "Program",
"start": 0,
"end": 85,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 0
}
},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ExportNamedDeclaration",
"start": 0,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 24
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "VariableDeclaration",
"start": 7,
"end": 24,
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 24
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 13,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 23
}
},
"id": {
"type": "Identifier",
"start": 13,
"end": 17,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 17
},
"identifierName": "name"
},
"name": "name"
},
"init": {
"type": "StringLiteral",
"start": 20,
"end": 23,
"loc": {
"start": {
"line": 1,
"column": 20
},
"end": {
"line": 1,
"column": 23
}
},
"extra": {
"rawValue": "a",
"raw": "\"a\""
},
"value": "a"
}
}
],
"kind": "const"
}
},
{
"type": "ExportNamedDeclaration",
"start": 25,
"end": 58,
"loc": {
"start": {
"line": 2,
"column": 0
},
"end": {
"line": 2,
"column": 33
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "FunctionDeclaration",
"start": 32,
"end": 58,
"loc": {
"start": {
"line": 2,
"column": 7
},
"end": {
"line": 2,
"column": 33
}
},
"id": {
"type": "Identifier",
"start": 41,
"end": 53,
"loc": {
"start": {
"line": 2,
"column": 16
},
"end": {
"line": 2,
"column": 28
},
"identifierName": "functionName"
},
"name": "functionName"
},
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start": 56,
"end": 58,
"loc": {
"start": {
"line": 2,
"column": 31
},
"end": {
"line": 2,
"column": 33
}
},
"body": [],
"directives": []
}
}
},
{
"type": "ExportNamedDeclaration",
"start": 59,
"end": 84,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 25
}
},
"specifiers": [],
"source": null,
"declaration": {
"type": "ClassDeclaration",
"start": 66,
"end": 84,
"loc": {
"start": {
"line": 3,
"column": 7
},
"end": {
"line": 3,
"column": 25
}
},
"id": {
"type": "Identifier",
"start": 72,
"end": 81,
"loc": {
"start": {
"line": 3,
"column": 13
},
"end": {
"line": 3,
"column": 22
},
"identifierName": "ClassName"
},
"name": "ClassName"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start": 82,
"end": 84,
"loc": {
"start": {
"line": 3,
"column": 23
},
"end": {
"line": 3,
"column": 25
}
},
"body": []
}
}
}
],
"directives": []
},
"comments": []
}