swc/babel/compat/tests/fixtures/shebang/output.json
강동윤 82ef06afb8
feat(babel/compat): Improve performance of babelify (#1626)
swc_babel_compat:
 - Optimize.

swc:
 - Improve performance of comment storage.
2021-05-06 14:56:54 +09:00

123 lines
2.4 KiB
JSON

{
"type": "File",
"start": 0,
"end": 39,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 0
}
},
"errors": [],
"program": {
"type": "Program",
"start": 0,
"end": 39,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 4,
"column": 0
}
},
"sourceType": "script",
"interpreter": {
"type": "InterpreterDirective",
"start": 0,
"end": 20,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 20
}
},
"value": " /usr/bin/env node"
},
"body": [
{
"type": "VariableDeclaration",
"start": 22,
"end": 38,
"loc": {
"start": {
"line": 3,
"column": 0
},
"end": {
"line": 3,
"column": 16
}
},
"declarations": [
{
"type": "VariableDeclarator",
"start": 28,
"end": 37,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 15
}
},
"id": {
"type": "Identifier",
"start": 28,
"end": 29,
"loc": {
"start": {
"line": 3,
"column": 6
},
"end": {
"line": 3,
"column": 7
},
"identifierName": "x"
},
"name": "x"
},
"init": {
"type": "StringLiteral",
"start": 32,
"end": 37,
"loc": {
"start": {
"line": 3,
"column": 10
},
"end": {
"line": 3,
"column": 15
}
},
"extra": {
"rawValue": "abc",
"raw": "\"abc\""
},
"value": "abc"
}
}
],
"kind": "const"
}
],
"directives": []
},
"comments": []
}