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

232 lines
5.3 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 30,
"end": 125,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 30,
"end": 69,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 34,
"end": 68,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 34,
"end": 38,
"ctxt": 0
},
"value": "foge",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 41,
"end": 68,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 45,
"end": 62,
"ctxt": 0
},
"value": "SharedArrayBuffer",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 63,
"end": 67,
"ctxt": 0
},
"value": 1024.0
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 70,
"end": 98,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 74,
"end": 97,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 74,
"end": 77,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 80,
"end": 97,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 80,
"end": 90,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 80,
"end": 84,
"ctxt": 0
},
"value": "foge",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 85,
"end": 90,
"ctxt": 0
},
"value": "slice",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 91,
"end": 92,
"ctxt": 0
},
"value": 1.0
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 94,
"end": 96,
"ctxt": 0
},
"value": 10.0
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 99,
"end": 125,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 103,
"end": 124,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 103,
"end": 106,
"ctxt": 0
},
"value": "len",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 109,
"end": 124,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 109,
"end": 113,
"ctxt": 0
},
"value": "foge",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 114,
"end": 124,
"ctxt": 0
},
"value": "byteLength",
"optional": false
}
},
"definite": false
}
]
}
],
"interpreter": null
}