2022-02-04 11:08:38 +03:00
|
|
|
{
|
|
|
|
"type": "Script",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 33,
|
|
|
|
"end": 1011,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 33,
|
|
|
|
"end": 75,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "let",
|
|
|
|
"declare": false,
|
|
|
|
"declarations": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarator",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 37,
|
|
|
|
"end": 74,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 37,
|
|
|
|
"end": 38,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 38,
|
|
|
|
"end": 74,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsUnionType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 40,
|
|
|
|
"end": 74,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 40,
|
|
|
|
"end": 46,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 49,
|
|
|
|
"end": 55,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "number"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 58,
|
|
|
|
"end": 65,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "boolean"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TsTypeReference",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 68,
|
|
|
|
"end": 74,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeName": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 68,
|
|
|
|
"end": 74,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "RegExp",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"typeParams": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"init": null,
|
|
|
|
"definite": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 76,
|
|
|
|
"end": 94,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "let",
|
|
|
|
"declare": false,
|
|
|
|
"declarations": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarator",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 80,
|
|
|
|
"end": 93,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 80,
|
|
|
|
"end": 84,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "cond",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 84,
|
|
|
|
"end": 93,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 86,
|
|
|
|
"end": 93,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "boolean"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"init": null,
|
|
|
|
"definite": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 96,
|
|
|
|
"end": 104,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "AssignmentExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 96,
|
|
|
|
"end": 103,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "=",
|
|
|
|
"left": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 96,
|
|
|
|
"end": 97,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "RegExpLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 100,
|
|
|
|
"end": 103,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"pattern": "a",
|
|
|
|
"flags": ""
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "IfStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 105,
|
|
|
|
"end": 209,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"type": "SequenceExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 109,
|
|
|
|
"end": 135,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expressions": [
|
|
|
|
{
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 109,
|
|
|
|
"end": 110,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ParenthesisExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 125,
|
|
|
|
"end": 135,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "AssignmentExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 126,
|
|
|
|
"end": 134,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "=",
|
|
|
|
"left": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 126,
|
|
|
|
"end": 127,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "BooleanLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 130,
|
|
|
|
"end": 134,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"consequent": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 137,
|
|
|
|
"end": 170,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 143,
|
|
|
|
"end": 145,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 143,
|
|
|
|
"end": 144,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 161,
|
|
|
|
"end": 168,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "AssignmentExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 161,
|
|
|
|
"end": 167,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "=",
|
|
|
|
"left": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 161,
|
|
|
|
"end": 162,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 165,
|
|
|
|
"end": 167,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "\"\""
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alternate": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 176,
|
|
|
|
"end": 209,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 182,
|
|
|
|
"end": 184,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 182,
|
|
|
|
"end": 183,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 200,
|
|
|
|
"end": 207,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "AssignmentExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 200,
|
|
|
|
"end": 206,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "=",
|
|
|
|
"left": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 200,
|
|
|
|
"end": 201,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "NumericLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 204,
|
|
|
|
"end": 206,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-04-05 15:46:35 +03:00
|
|
|
"value": 42.0,
|
|
|
|
"raw": "42"
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 210,
|
|
|
|
"end": 212,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 210,
|
|
|
|
"end": 211,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "FunctionDeclaration",
|
|
|
|
"identifier": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 242,
|
|
|
|
"end": 243,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "a",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"params": [],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 233,
|
|
|
|
"end": 381,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 246,
|
|
|
|
"end": 381,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 252,
|
|
|
|
"end": 275,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "let",
|
|
|
|
"declare": false,
|
|
|
|
"declarations": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarator",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 256,
|
|
|
|
"end": 274,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 256,
|
|
|
|
"end": 257,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 257,
|
|
|
|
"end": 274,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsUnionType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 259,
|
|
|
|
"end": 274,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 259,
|
|
|
|
"end": 265,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 268,
|
|
|
|
"end": 274,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "number"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"init": null,
|
|
|
|
"definite": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "IfStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 280,
|
|
|
|
"end": 362,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 284,
|
|
|
|
"end": 288,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "cond",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"consequent": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 290,
|
|
|
|
"end": 313,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 300,
|
|
|
|
"end": 307,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "AssignmentExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 300,
|
|
|
|
"end": 306,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "=",
|
|
|
|
"left": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 300,
|
|
|
|
"end": 301,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "NumericLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 304,
|
|
|
|
"end": 306,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-04-05 15:46:35 +03:00
|
|
|
"value": 42.0,
|
|
|
|
"raw": "42"
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alternate": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 323,
|
|
|
|
"end": 362,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 333,
|
|
|
|
"end": 340,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "AssignmentExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 333,
|
|
|
|
"end": 339,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "=",
|
|
|
|
"left": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 333,
|
|
|
|
"end": 334,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 337,
|
|
|
|
"end": 339,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "\"\""
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ReturnStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 349,
|
|
|
|
"end": 356,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"argument": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 367,
|
|
|
|
"end": 369,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 367,
|
|
|
|
"end": 368,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "FunctionDeclaration",
|
|
|
|
"identifier": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 391,
|
|
|
|
"end": 392,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "b",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"params": [],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 382,
|
|
|
|
"end": 532,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 395,
|
|
|
|
"end": 532,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 401,
|
|
|
|
"end": 424,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "let",
|
|
|
|
"declare": false,
|
|
|
|
"declarations": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarator",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 405,
|
|
|
|
"end": 423,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 405,
|
|
|
|
"end": 406,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 406,
|
|
|
|
"end": 423,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsUnionType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 408,
|
|
|
|
"end": 423,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 408,
|
|
|
|
"end": 414,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 417,
|
|
|
|
"end": 423,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "number"
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"init": null,
|
|
|
|
"definite": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "IfStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 429,
|
|
|
|
"end": 513,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 433,
|
|
|
|
"end": 437,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "cond",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"consequent": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 439,
|
|
|
|
"end": 480,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 449,
|
|
|
|
"end": 456,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "AssignmentExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 449,
|
|
|
|
"end": 455,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "=",
|
|
|
|
"left": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 449,
|
|
|
|
"end": 450,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "NumericLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 453,
|
|
|
|
"end": 455,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-04-05 15:46:35 +03:00
|
|
|
"value": 42.0,
|
|
|
|
"raw": "42"
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ThrowStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 465,
|
|
|
|
"end": 474,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"argument": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 471,
|
|
|
|
"end": 473,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "\"\""
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alternate": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 490,
|
|
|
|
"end": 513,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 500,
|
|
|
|
"end": 507,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "AssignmentExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 500,
|
|
|
|
"end": 506,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "=",
|
|
|
|
"left": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 500,
|
|
|
|
"end": 501,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 504,
|
|
|
|
"end": 506,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "\"\""
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ExpressionStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 518,
|
|
|
|
"end": 520,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 518,
|
|
|
|
"end": 519,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "FunctionDeclaration",
|
|
|
|
"identifier": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 542,
|
|
|
|
"end": 543,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "c",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 547,
|
|
|
|
"end": 563,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 547,
|
|
|
|
"end": 563,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "data",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 551,
|
|
|
|
"end": 563,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsUnionType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 553,
|
|
|
|
"end": 563,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 553,
|
|
|
|
"end": 559,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TsTypeReference",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 562,
|
|
|
|
"end": 563,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeName": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 562,
|
|
|
|
"end": 563,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "T",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"typeParams": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 533,
|
|
|
|
"end": 684,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 568,
|
|
|
|
"end": 684,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "IfStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 574,
|
|
|
|
"end": 682,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"type": "BinaryExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 578,
|
|
|
|
"end": 602,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "===",
|
|
|
|
"left": {
|
|
|
|
"type": "UnaryExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 578,
|
|
|
|
"end": 589,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "typeof",
|
|
|
|
"argument": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 585,
|
|
|
|
"end": 589,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "data",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 594,
|
|
|
|
"end": 602,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "string",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "'string'"
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"consequent": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 604,
|
|
|
|
"end": 644,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ReturnStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 614,
|
|
|
|
"end": 638,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"argument": {
|
|
|
|
"type": "CallExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 621,
|
|
|
|
"end": 637,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"callee": {
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 621,
|
|
|
|
"end": 631,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"object": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 621,
|
|
|
|
"end": 625,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "JSON",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 626,
|
|
|
|
"end": 631,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "parse",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"spread": null,
|
|
|
|
"expression": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 632,
|
|
|
|
"end": 636,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "data",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"typeArguments": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alternate": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 654,
|
|
|
|
"end": 682,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ReturnStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 664,
|
|
|
|
"end": 676,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"argument": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 671,
|
|
|
|
"end": 675,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "data",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": {
|
|
|
|
"type": "TsTypeParameterDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 543,
|
|
|
|
"end": 546,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "TsTypeParameter",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 544,
|
|
|
|
"end": 545,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 544,
|
|
|
|
"end": 545,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "T",
|
|
|
|
"optional": false
|
|
|
|
},
|
2022-03-23 17:36:37 +03:00
|
|
|
"in": false,
|
|
|
|
"out": false,
|
2023-01-10 08:08:29 +03:00
|
|
|
"const": false,
|
2022-02-04 11:08:38 +03:00
|
|
|
"constraint": null,
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"returnType": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 564,
|
|
|
|
"end": 567,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeReference",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 566,
|
|
|
|
"end": 567,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeName": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 566,
|
|
|
|
"end": 567,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "T",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"typeParams": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "FunctionDeclaration",
|
|
|
|
"identifier": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 694,
|
|
|
|
"end": 695,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "d",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 714,
|
|
|
|
"end": 730,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 714,
|
|
|
|
"end": 730,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "data",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 718,
|
|
|
|
"end": 730,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsUnionType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 720,
|
|
|
|
"end": 730,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 720,
|
|
|
|
"end": 726,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "string"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TsTypeReference",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 729,
|
|
|
|
"end": 730,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeName": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 729,
|
|
|
|
"end": 730,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "T",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"typeParams": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 685,
|
|
|
|
"end": 869,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 739,
|
|
|
|
"end": 869,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "IfStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 745,
|
|
|
|
"end": 867,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"type": "BinaryExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 749,
|
|
|
|
"end": 773,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "===",
|
|
|
|
"left": {
|
|
|
|
"type": "UnaryExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 749,
|
|
|
|
"end": 760,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "typeof",
|
|
|
|
"argument": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 756,
|
|
|
|
"end": 760,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "data",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 765,
|
|
|
|
"end": 773,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "string",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "'string'"
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"consequent": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 775,
|
|
|
|
"end": 829,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ThrowStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 785,
|
|
|
|
"end": 823,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"argument": {
|
|
|
|
"type": "NewExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 791,
|
|
|
|
"end": 822,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"callee": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 795,
|
|
|
|
"end": 800,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "Error",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"arguments": [
|
|
|
|
{
|
|
|
|
"spread": null,
|
|
|
|
"expression": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 801,
|
|
|
|
"end": 821,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "will always happen",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "'will always happen'"
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"typeArguments": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alternate": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 839,
|
|
|
|
"end": 867,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ReturnStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 849,
|
|
|
|
"end": 861,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"argument": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 856,
|
|
|
|
"end": 860,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "data",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": {
|
|
|
|
"type": "TsTypeParameterDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 695,
|
|
|
|
"end": 713,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "TsTypeParameter",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 696,
|
|
|
|
"end": 712,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 696,
|
|
|
|
"end": 697,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "T",
|
|
|
|
"optional": false
|
|
|
|
},
|
2022-03-23 17:36:37 +03:00
|
|
|
"in": false,
|
|
|
|
"out": false,
|
2023-01-10 08:08:29 +03:00
|
|
|
"const": false,
|
2022-02-04 11:08:38 +03:00
|
|
|
"constraint": {
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 706,
|
|
|
|
"end": 712,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "string"
|
|
|
|
},
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"returnType": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 731,
|
|
|
|
"end": 738,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 733,
|
|
|
|
"end": 738,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "never"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TsInterfaceDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 871,
|
|
|
|
"end": 897,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 881,
|
|
|
|
"end": 882,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "I",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"typeParams": {
|
|
|
|
"type": "TsTypeParameterDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 882,
|
|
|
|
"end": 885,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "TsTypeParameter",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 883,
|
|
|
|
"end": 884,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 883,
|
|
|
|
"end": 884,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "T",
|
|
|
|
"optional": false
|
|
|
|
},
|
2022-03-23 17:36:37 +03:00
|
|
|
"in": false,
|
|
|
|
"out": false,
|
2023-01-10 08:08:29 +03:00
|
|
|
"const": false,
|
2022-02-04 11:08:38 +03:00
|
|
|
"constraint": null,
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"extends": [],
|
|
|
|
"body": {
|
|
|
|
"type": "TsInterfaceBody",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 886,
|
|
|
|
"end": 897,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"type": "TsPropertySignature",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 890,
|
|
|
|
"end": 895,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"readonly": false,
|
|
|
|
"key": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 890,
|
|
|
|
"end": 891,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "p",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"computed": false,
|
|
|
|
"optional": false,
|
|
|
|
"init": null,
|
|
|
|
"params": [],
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 891,
|
|
|
|
"end": 894,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeReference",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 893,
|
|
|
|
"end": 894,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeName": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 893,
|
|
|
|
"end": 894,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "T",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"typeParams": null
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"typeParams": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "FunctionDeclaration",
|
|
|
|
"identifier": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 907,
|
|
|
|
"end": 908,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "e",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 909,
|
|
|
|
"end": 924,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 909,
|
|
|
|
"end": 924,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 910,
|
|
|
|
"end": 924,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeReference",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 912,
|
|
|
|
"end": 924,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeName": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 912,
|
|
|
|
"end": 913,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "I",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"typeParams": {
|
|
|
|
"type": "TsTypeParameterInstantiation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 913,
|
|
|
|
"end": 924,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "TsUnionType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 914,
|
|
|
|
"end": 923,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"types": [
|
|
|
|
{
|
|
|
|
"type": "TsLiteralType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 914,
|
|
|
|
"end": 917,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"literal": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 914,
|
|
|
|
"end": 917,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "A",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "\"A\""
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "TsLiteralType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 920,
|
|
|
|
"end": 923,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"literal": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 920,
|
|
|
|
"end": 923,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "B",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "\"B\""
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 898,
|
|
|
|
"end": 1011,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 926,
|
|
|
|
"end": 1011,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "IfStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 932,
|
|
|
|
"end": 1009,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"type": "BinaryExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 936,
|
|
|
|
"end": 947,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"operator": "===",
|
|
|
|
"left": {
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 936,
|
|
|
|
"end": 939,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"object": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 936,
|
|
|
|
"end": 937,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 938,
|
|
|
|
"end": 939,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "p",
|
|
|
|
"optional": false
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 944,
|
|
|
|
"end": 947,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "A",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "\"A\""
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
"consequent": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 949,
|
|
|
|
"end": 1009,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 959,
|
|
|
|
"end": 1003,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "let",
|
|
|
|
"declare": false,
|
|
|
|
"declarations": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarator",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 963,
|
|
|
|
"end": 1003,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 963,
|
|
|
|
"end": 964,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "a",
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeAnnotation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 964,
|
|
|
|
"end": 969,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsLiteralType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 966,
|
|
|
|
"end": 969,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"literal": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 966,
|
|
|
|
"end": 969,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "A",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "\"A\""
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"type": "ParenthesisExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 972,
|
|
|
|
"end": 1003,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "TsAsExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 973,
|
|
|
|
"end": 1002,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "TsAsExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 973,
|
|
|
|
"end": 988,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "NullLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 973,
|
|
|
|
"end": 977,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsKeywordType",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 981,
|
|
|
|
"end": 988,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "unknown"
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"typeAnnotation": {
|
|
|
|
"type": "TsTypeQuery",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 992,
|
|
|
|
"end": 1002,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"exprName": {
|
|
|
|
"type": "TsQualifiedName",
|
|
|
|
"left": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 999,
|
|
|
|
"end": 1000,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "x",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 1001,
|
|
|
|
"end": 1002,
|
2022-02-04 11:08:38 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "p",
|
|
|
|
"optional": false
|
|
|
|
}
|
2022-02-20 18:51:31 +03:00
|
|
|
},
|
|
|
|
"typeArguments": null
|
2022-02-04 11:08:38 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"definite": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alternate": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"interpreter": null
|
|
|
|
}
|