2021-01-15 13:30:44 +03:00
|
|
|
{
|
|
|
|
"type": "Script",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 1,
|
|
|
|
"end": 43,
|
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": 10,
|
|
|
|
"end": 13,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "foo",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 14,
|
|
|
|
"end": 19,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "AssignmentPattern",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 14,
|
|
|
|
"end": 19,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"left": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 14,
|
|
|
|
"end": 15,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "a",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
"right": {
|
|
|
|
"type": "NumericLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 18,
|
|
|
|
"end": 19,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-04-05 15:46:35 +03:00
|
|
|
"value": 4.0,
|
|
|
|
"raw": "4"
|
2023-06-12 11:02:34 +03:00
|
|
|
}
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 1,
|
|
|
|
"end": 21,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": null,
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "FunctionDeclaration",
|
|
|
|
"identifier": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 31,
|
|
|
|
"end": 34,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "foo",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 35,
|
|
|
|
"end": 36,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 35,
|
|
|
|
"end": 36,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "a",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "Parameter",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 38,
|
|
|
|
"end": 39,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"pat": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 38,
|
|
|
|
"end": 39,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "b",
|
2021-02-19 09:34:22 +03:00
|
|
|
"optional": false,
|
|
|
|
"typeAnnotation": null
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 22,
|
|
|
|
"end": 43,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 41,
|
|
|
|
"end": 43,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": []
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"interpreter": null
|
|
|
|
}
|