2021-01-15 13:30:44 +03:00
|
|
|
{
|
|
|
|
"type": "Script",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 17,
|
|
|
|
"end": 120,
|
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": 26,
|
|
|
|
"end": 29,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "foo",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"params": [],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 17,
|
|
|
|
"end": 48,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 35,
|
|
|
|
"end": 48,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ReturnStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 37,
|
|
|
|
"end": 46,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"argument": {
|
|
|
|
"type": "StringLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 44,
|
|
|
|
"end": 46,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "",
|
2022-03-22 10:54:08 +03:00
|
|
|
"raw": "''"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": {
|
|
|
|
"type": "TsTypeParameterDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 29,
|
|
|
|
"end": 32,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "TsTypeParameter",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 30,
|
|
|
|
"end": 31,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 30,
|
|
|
|
"end": 31,
|
2021-01-15 13:30:44 +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,
|
2021-01-15 13:30:44 +03:00
|
|
|
"constraint": null,
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"returnType": null
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ClassDeclaration",
|
|
|
|
"identifier": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 55,
|
|
|
|
"end": 56,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "C",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"declare": false,
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 49,
|
|
|
|
"end": 120,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"decorators": [],
|
|
|
|
"body": [
|
|
|
|
{
|
|
|
|
"type": "ClassMethod",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 66,
|
|
|
|
"end": 97,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 66,
|
|
|
|
"end": 69,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "bar",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"function": {
|
|
|
|
"params": [],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 66,
|
|
|
|
"end": 97,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 72,
|
|
|
|
"end": 97,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": [
|
|
|
|
{
|
|
|
|
"type": "ReturnStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 82,
|
|
|
|
"end": 91,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"argument": {
|
|
|
|
"type": "NumericLiteral",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 89,
|
|
|
|
"end": 90,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
2022-04-05 15:46:35 +03:00
|
|
|
"value": 0.0,
|
|
|
|
"raw": "0"
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
},
|
|
|
|
"kind": "method",
|
|
|
|
"isStatic": false,
|
|
|
|
"accessibility": null,
|
|
|
|
"isAbstract": false,
|
2021-04-06 20:06:18 +03:00
|
|
|
"isOptional": false,
|
|
|
|
"isOverride": false
|
2021-01-15 13:30:44 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"type": "ClassMethod",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 102,
|
|
|
|
"end": 118,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"key": {
|
|
|
|
"type": "Computed",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 102,
|
|
|
|
"end": 112,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"expression": {
|
|
|
|
"type": "CallExpression",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 103,
|
|
|
|
"end": 111,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"callee": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 103,
|
|
|
|
"end": 106,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "foo",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"arguments": [],
|
|
|
|
"typeArguments": {
|
|
|
|
"type": "TsTypeParameterInstantiation",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 106,
|
|
|
|
"end": 109,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"params": [
|
|
|
|
{
|
|
|
|
"type": "TsTypeReference",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 107,
|
|
|
|
"end": 108,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"typeName": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 107,
|
|
|
|
"end": 108,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"value": "T",
|
|
|
|
"optional": false
|
|
|
|
},
|
|
|
|
"typeParams": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
},
|
|
|
|
"function": {
|
|
|
|
"params": [],
|
|
|
|
"decorators": [],
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 102,
|
|
|
|
"end": 118,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"body": {
|
|
|
|
"type": "BlockStatement",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 115,
|
|
|
|
"end": 118,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"stmts": []
|
|
|
|
},
|
|
|
|
"generator": false,
|
|
|
|
"async": false,
|
|
|
|
"typeParameters": null,
|
|
|
|
"returnType": null
|
|
|
|
},
|
|
|
|
"kind": "method",
|
|
|
|
"isStatic": false,
|
|
|
|
"accessibility": null,
|
|
|
|
"isAbstract": false,
|
2021-04-06 20:06:18 +03:00
|
|
|
"isOptional": false,
|
|
|
|
"isOverride": false
|
2021-01-15 13:30:44 +03:00
|
|
|
}
|
|
|
|
],
|
|
|
|
"superClass": null,
|
|
|
|
"isAbstract": false,
|
|
|
|
"typeParams": {
|
|
|
|
"type": "TsTypeParameterDeclaration",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 56,
|
|
|
|
"end": 59,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"parameters": [
|
|
|
|
{
|
|
|
|
"type": "TsTypeParameter",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 57,
|
|
|
|
"end": 58,
|
2021-01-15 13:30:44 +03:00
|
|
|
"ctxt": 0
|
|
|
|
},
|
|
|
|
"name": {
|
|
|
|
"type": "Identifier",
|
|
|
|
"span": {
|
2022-05-11 19:14:42 +03:00
|
|
|
"start": 57,
|
|
|
|
"end": 58,
|
2021-01-15 13:30:44 +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,
|
2021-01-15 13:30:44 +03:00
|
|
|
"constraint": null,
|
|
|
|
"default": null
|
|
|
|
}
|
|
|
|
]
|
|
|
|
},
|
|
|
|
"superTypeParams": null,
|
|
|
|
"implements": []
|
|
|
|
}
|
|
|
|
],
|
|
|
|
"interpreter": null
|
|
|
|
}
|