swc/crates/swc_estree_compat/tests/fixtures/shebang/output.json

123 lines
2.4 KiB
JSON
Raw Normal View History

{
"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": []
}