mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 11:11:30 +03:00
230 lines
5.2 KiB
JSON
230 lines
5.2 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 98,
|
|
"end": 284,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 98,
|
|
"end": 151,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 98,
|
|
"end": 151,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "BooleanLiteral",
|
|
"span": {
|
|
"start": 98,
|
|
"end": 102,
|
|
"ctxt": 0
|
|
},
|
|
"value": true
|
|
},
|
|
"consequent": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 105,
|
|
"end": 144,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "BooleanLiteral",
|
|
"span": {
|
|
"start": 105,
|
|
"end": 110,
|
|
"ctxt": 0
|
|
},
|
|
"value": false
|
|
},
|
|
"consequent": {
|
|
"type": "ArrowFunctionExpression",
|
|
"span": {
|
|
"start": 113,
|
|
"end": 137,
|
|
"ctxt": 0
|
|
},
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 114,
|
|
"end": 119,
|
|
"ctxt": 0
|
|
},
|
|
"value": "param",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 132,
|
|
"end": 137,
|
|
"ctxt": 0
|
|
},
|
|
"value": "param",
|
|
"optional": false
|
|
},
|
|
"async": false,
|
|
"generator": false,
|
|
"typeParameters": null,
|
|
"returnType": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 120,
|
|
"end": 128,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 122,
|
|
"end": 128,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "NullLiteral",
|
|
"span": {
|
|
"start": 140,
|
|
"end": 144,
|
|
"ctxt": 0
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "NullLiteral",
|
|
"span": {
|
|
"start": 147,
|
|
"end": 151,
|
|
"ctxt": 0
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"span": {
|
|
"start": 231,
|
|
"end": 284,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 231,
|
|
"end": 284,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "BooleanLiteral",
|
|
"span": {
|
|
"start": 231,
|
|
"end": 235,
|
|
"ctxt": 0
|
|
},
|
|
"value": true
|
|
},
|
|
"consequent": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 238,
|
|
"end": 277,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "BooleanLiteral",
|
|
"span": {
|
|
"start": 238,
|
|
"end": 243,
|
|
"ctxt": 0
|
|
},
|
|
"value": false
|
|
},
|
|
"consequent": {
|
|
"type": "ArrowFunctionExpression",
|
|
"span": {
|
|
"start": 246,
|
|
"end": 270,
|
|
"ctxt": 0
|
|
},
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 247,
|
|
"end": 252,
|
|
"ctxt": 0
|
|
},
|
|
"value": "param",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 265,
|
|
"end": 270,
|
|
"ctxt": 0
|
|
},
|
|
"value": "param",
|
|
"optional": false
|
|
},
|
|
"async": false,
|
|
"generator": false,
|
|
"typeParameters": null,
|
|
"returnType": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 253,
|
|
"end": 261,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 255,
|
|
"end": 261,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "NullLiteral",
|
|
"span": {
|
|
"start": 273,
|
|
"end": 277,
|
|
"ctxt": 0
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "NullLiteral",
|
|
"span": {
|
|
"start": 280,
|
|
"end": 284,
|
|
"ctxt": 0
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|