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

235 lines
5.4 KiB
JSON

{
"type": "Script",
"span": {
"start": 51,
"end": 146,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 51,
"end": 90,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 55,
"end": 89,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 55,
"end": 59,
"ctxt": 0
},
"value": "foge",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 62,
"end": 89,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 66,
"end": 83,
"ctxt": 0
},
"value": "SharedArrayBuffer",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 84,
"end": 88,
"ctxt": 0
},
"value": 1024.0,
"raw": "1024"
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 91,
"end": 119,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 95,
"end": 118,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 95,
"end": 98,
"ctxt": 0
},
"value": "bar",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "CallExpression",
"span": {
"start": 101,
"end": 118,
"ctxt": 0
},
"callee": {
"type": "MemberExpression",
"span": {
"start": 101,
"end": 111,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 101,
"end": 105,
"ctxt": 0
},
"value": "foge",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 106,
"end": 111,
"ctxt": 0
},
"value": "slice",
"optional": false
}
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 112,
"end": 113,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
}
},
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 115,
"end": 117,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "VariableDeclaration",
"span": {
"start": 120,
"end": 146,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 124,
"end": 145,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 124,
"end": 127,
"ctxt": 0
},
"value": "len",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 130,
"end": 145,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 130,
"end": 134,
"ctxt": 0
},
"value": "foge",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 135,
"end": 145,
"ctxt": 0
},
"value": "byteLength",
"optional": false
}
},
"definite": false
}
]
}
],
"interpreter": null
}