2021-01-15 13:30:44 +03:00
|
|
|
{
|
|
|
|
"type": "Script",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 18,
|
|
|
|
"end": 177,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"type": "FunctionDeclaration",
|
|
|
|
"identifier": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 27,
|
|
|
|
"end": 28,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "f",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"params": [],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 18,
|
|
|
|
"end": 177,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 31,
|
|
|
|
"end": 177,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 37,
|
|
|
|
"end": 80,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "var",
|
|
|
|
"declare": false,
|
|
|
|
"declarations": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarator",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 41,
|
|
|
|
"end": 79,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "ObjectPattern",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 41,
|
|
|
|
"end": 54,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"type": "AssignmentPatternProperty",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 43,
|
|
|
|
"end": 52,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 43,
|
|
|
|
"end": 52,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "arguments",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"value": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"type": "ObjectExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 57,
|
|
|
|
"end": 79,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"properties": [
|
|
|
|
{
|
|
|
|
"type": "KeyValueProperty",
|
|
|
|
"key": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 59,
|
|
|
|
"end": 68,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "arguments",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"value": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 70,
|
|
|
|
"end": 77,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "hello",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "\"hello\""
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"definite": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "IfStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 85,
|
|
|
|
"end": 146,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"test": {
|
|
|
|
"type": "CallExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 89,
|
|
|
|
"end": 102,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"callee": {
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 89,
|
|
|
|
"end": 100,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"object": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 89,
|
|
|
|
"end": 93,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "Math",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"property": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 94,
|
|
|
|
"end": 100,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "random",
|
|
|
|
"optional": false
|
2022-01-10 16:54:42 +03:00
|
|
|
}
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"arguments": [],
|
|
|
|
"typeArguments": null
|
|
|
|
},
|
|
|
|
"consequent": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 104,
|
|
|
|
"end": 146,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ReturnStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 114,
|
|
|
|
"end": 140,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"argument": {
|
|
|
|
"type": "ArrowFunctionExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 121,
|
|
|
|
"end": 139,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"params": [],
|
|
|
|
"body": {
|
|
|
|
"type": "MemberExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 127,
|
|
|
|
"end": 139,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"object": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 127,
|
|
|
|
"end": 136,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "arguments",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"property": {
|
2022-01-10 16:54:42 +03:00
|
|
|
"type": "Computed",
|
2021-01-15 13:30:44 +03:00
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 136,
|
|
|
|
"end": 139,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-01-10 16:54:42 +03:00
|
|
|
"expression": {
|
|
|
|
"type": "NumericLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 137,
|
|
|
|
"end": 138,
|
2022-01-10 16:54:42 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-04-05 15:46:35 +03:00
|
|
|
"value": 0.0,
|
|
|
|
"raw": "0"
|
2022-01-10 16:54:42 +03:00
|
|
|
}
|
|
|
|
}
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"async": false,
|
|
|
|
"generator": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"alternate": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "VariableDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 151,
|
|
|
|
"end": 175,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"kind": "var",
|
|
|
|
"declare": false,
|
|
|
|
"declarations": [
|
|
|
|
{
|
|
|
|
"type": "VariableDeclarator",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 155,
|
|
|
|
"end": 174,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"id": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 155,
|
|
|
|
"end": 164,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "arguments",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"init": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 167,
|
|
|
|
"end": 174,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "world",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "\"world\""
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"definite": false
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"interpreter": null
|
|
|
|
}
|