mirror of
https://github.com/swc-project/swc.git
synced 2024-11-28 11:13:43 +03:00
148 lines
3.6 KiB
JSON
148 lines
3.6 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 167,
|
|
"end": 240,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 167,
|
|
"end": 198,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": true,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 179,
|
|
"end": 197,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 179,
|
|
"end": 180,
|
|
"ctxt": 0
|
|
},
|
|
"value": "$",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 180,
|
|
"end": 197,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeLiteral",
|
|
"span": {
|
|
"start": 182,
|
|
"end": 197,
|
|
"ctxt": 0
|
|
},
|
|
"members": [
|
|
{
|
|
"type": "TsMethodSignature",
|
|
"span": {
|
|
"start": 184,
|
|
"end": 195,
|
|
"ctxt": 0
|
|
},
|
|
"readonly": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 184,
|
|
"end": 187,
|
|
"ctxt": 0
|
|
},
|
|
"value": "foo",
|
|
"optional": false
|
|
},
|
|
"computed": false,
|
|
"optional": false,
|
|
"params": [],
|
|
"typeAnn": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 189,
|
|
"end": 195,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 191,
|
|
"end": 195,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "void"
|
|
}
|
|
},
|
|
"typeParams": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 232,
|
|
"end": 240,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 232,
|
|
"end": 239,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 232,
|
|
"end": 237,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 232,
|
|
"end": 233,
|
|
"ctxt": 0
|
|
},
|
|
"value": "$",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 234,
|
|
"end": 237,
|
|
"ctxt": 0
|
|
},
|
|
"value": "foo",
|
|
"optional": false
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
}
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|