swc/crates/swc_ecma_parser/tests/tsc/useSharedArrayBuffer6.json
2022-02-04 17:08:38 +09:00

173 lines
3.7 KiB
JSON

{
"type": "Script",
"span": {
"start": 50,
"end": 158,
"ctxt": 0
},
"body": [
{
"type": "VariableDeclaration",
"span": {
"start": 50,
"end": 89,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 54,
"end": 88,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 54,
"end": 58,
"ctxt": 0
},
"value": "foge",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "NewExpression",
"span": {
"start": 61,
"end": 88,
"ctxt": 0
},
"callee": {
"type": "Identifier",
"span": {
"start": 65,
"end": 82,
"ctxt": 0
},
"value": "SharedArrayBuffer",
"optional": false
},
"arguments": [
{
"spread": null,
"expression": {
"type": "NumericLiteral",
"span": {
"start": 83,
"end": 87,
"ctxt": 0
},
"value": 1024.0
}
}
],
"typeArguments": null
},
"definite": false
}
]
},
{
"type": "ExpressionStatement",
"span": {
"start": 90,
"end": 102,
"ctxt": 0
},
"expression": {
"type": "MemberExpression",
"span": {
"start": 90,
"end": 101,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 90,
"end": 94,
"ctxt": 0
},
"value": "foge",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 95,
"end": 101,
"ctxt": 0
},
"value": "length",
"optional": false
}
}
},
{
"type": "VariableDeclaration",
"span": {
"start": 120,
"end": 158,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 124,
"end": 157,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 124,
"end": 130,
"ctxt": 0
},
"value": "length",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "MemberExpression",
"span": {
"start": 133,
"end": 157,
"ctxt": 0
},
"object": {
"type": "Identifier",
"span": {
"start": 133,
"end": 150,
"ctxt": 0
},
"value": "SharedArrayBuffer",
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 151,
"end": 157,
"ctxt": 0
},
"value": "length",
"optional": false
}
},
"definite": false
}
]
}
],
"interpreter": null
}