mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
019cf37199
**Related issue:** - https://github.com/microsoft/TypeScript/pull/51865.
3540 lines
88 KiB
JSON
3540 lines
88 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 1421,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 21,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 5,
|
|
"end": 20,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 5,
|
|
"end": 12,
|
|
"ctxt": 0
|
|
},
|
|
"value": "aString",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 12,
|
|
"end": 20,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 14,
|
|
"end": 20,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 22,
|
|
"end": 45,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 27,
|
|
"end": 34,
|
|
"ctxt": 0
|
|
},
|
|
"value": "aString",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 38,
|
|
"end": 40,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 42,
|
|
"end": 45,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 47,
|
|
"end": 62,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 51,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 51,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"value": "anAny",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 56,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 58,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "any"
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 63,
|
|
"end": 84,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 68,
|
|
"end": 73,
|
|
"ctxt": 0
|
|
},
|
|
"value": "anAny",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 77,
|
|
"end": 79,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 81,
|
|
"end": 84,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 86,
|
|
"end": 107,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 91,
|
|
"end": 96,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 95,
|
|
"end": 96,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 95,
|
|
"end": 96,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 100,
|
|
"end": 102,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 104,
|
|
"end": 107,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 108,
|
|
"end": 129,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 113,
|
|
"end": 118,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 117,
|
|
"end": 118,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 117,
|
|
"end": 118,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ArrayExpression",
|
|
"span": {
|
|
"start": 122,
|
|
"end": 124,
|
|
"ctxt": 0
|
|
},
|
|
"elements": []
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 126,
|
|
"end": 129,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 130,
|
|
"end": 164,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 135,
|
|
"end": 140,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 139,
|
|
"end": 140,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 139,
|
|
"end": 140,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ArrayExpression",
|
|
"span": {
|
|
"start": 144,
|
|
"end": 159,
|
|
"ctxt": 0
|
|
},
|
|
"elements": [
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 145,
|
|
"end": 146,
|
|
"ctxt": 0
|
|
},
|
|
"value": 1.0,
|
|
"raw": "1"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 148,
|
|
"end": 149,
|
|
"ctxt": 0
|
|
},
|
|
"value": 2.0,
|
|
"raw": "2"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 151,
|
|
"end": 152,
|
|
"ctxt": 0
|
|
},
|
|
"value": 3.0,
|
|
"raw": "3"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 154,
|
|
"end": 155,
|
|
"ctxt": 0
|
|
},
|
|
"value": 4.0,
|
|
"raw": "4"
|
|
}
|
|
},
|
|
{
|
|
"spread": null,
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 157,
|
|
"end": 158,
|
|
"ctxt": 0
|
|
},
|
|
"value": 5.0,
|
|
"raw": "5"
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 161,
|
|
"end": 164,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "FunctionDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 175,
|
|
"end": 177,
|
|
"ctxt": 0
|
|
},
|
|
"value": "fn",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 166,
|
|
"end": 188,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 185,
|
|
"end": 188,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 179,
|
|
"end": 184,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 181,
|
|
"end": 184,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "any"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 189,
|
|
"end": 212,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 194,
|
|
"end": 199,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 198,
|
|
"end": 199,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 198,
|
|
"end": 199,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 203,
|
|
"end": 207,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 203,
|
|
"end": 205,
|
|
"ctxt": 0
|
|
},
|
|
"value": "fn",
|
|
"optional": false
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 209,
|
|
"end": 212,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 214,
|
|
"end": 240,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 219,
|
|
"end": 224,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 223,
|
|
"end": 224,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 223,
|
|
"end": 224,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "RegExpLiteral",
|
|
"span": {
|
|
"start": 228,
|
|
"end": 235,
|
|
"ctxt": 0
|
|
},
|
|
"pattern": "[a-z]",
|
|
"flags": ""
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 237,
|
|
"end": 240,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 241,
|
|
"end": 270,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 246,
|
|
"end": 251,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 250,
|
|
"end": 251,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 250,
|
|
"end": 251,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "NewExpression",
|
|
"span": {
|
|
"start": 255,
|
|
"end": 265,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 259,
|
|
"end": 263,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Date",
|
|
"optional": false
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 267,
|
|
"end": 270,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 272,
|
|
"end": 299,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 276,
|
|
"end": 282,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 276,
|
|
"end": 277,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 277,
|
|
"end": 282,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 279,
|
|
"end": 282,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "any"
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 284,
|
|
"end": 290,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 284,
|
|
"end": 285,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 285,
|
|
"end": 290,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 287,
|
|
"end": 290,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "any"
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
},
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 292,
|
|
"end": 298,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 292,
|
|
"end": 293,
|
|
"ctxt": 0
|
|
},
|
|
"value": "e",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 293,
|
|
"end": 298,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 295,
|
|
"end": 298,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "any"
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 301,
|
|
"end": 326,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 306,
|
|
"end": 311,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 310,
|
|
"end": 311,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 310,
|
|
"end": 311,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "BinaryExpression",
|
|
"span": {
|
|
"start": 315,
|
|
"end": 321,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "||",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 315,
|
|
"end": 316,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 320,
|
|
"end": 321,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 323,
|
|
"end": 326,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 327,
|
|
"end": 355,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 332,
|
|
"end": 337,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 336,
|
|
"end": 337,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 336,
|
|
"end": 337,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 341,
|
|
"end": 350,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 341,
|
|
"end": 342,
|
|
"ctxt": 0
|
|
},
|
|
"value": "e",
|
|
"optional": false
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 345,
|
|
"end": 346,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
},
|
|
"alternate": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 349,
|
|
"end": 350,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 352,
|
|
"end": 355,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 356,
|
|
"end": 385,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 361,
|
|
"end": 366,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 365,
|
|
"end": 366,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 365,
|
|
"end": 366,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 370,
|
|
"end": 380,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 370,
|
|
"end": 372,
|
|
"ctxt": 0
|
|
},
|
|
"value": 42.0,
|
|
"raw": "42"
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 375,
|
|
"end": 376,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
},
|
|
"alternate": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 379,
|
|
"end": 380,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 382,
|
|
"end": 385,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 386,
|
|
"end": 415,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 391,
|
|
"end": 396,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 395,
|
|
"end": 396,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 395,
|
|
"end": 396,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 400,
|
|
"end": 410,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "StringLiteral",
|
|
"span": {
|
|
"start": 400,
|
|
"end": 402,
|
|
"ctxt": 0
|
|
},
|
|
"value": "",
|
|
"raw": "''"
|
|
},
|
|
"consequent": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 405,
|
|
"end": 406,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
},
|
|
"alternate": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 409,
|
|
"end": 410,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 412,
|
|
"end": 415,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 416,
|
|
"end": 451,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 421,
|
|
"end": 426,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 425,
|
|
"end": 426,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 425,
|
|
"end": 426,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ConditionalExpression",
|
|
"span": {
|
|
"start": 430,
|
|
"end": 446,
|
|
"ctxt": 0
|
|
},
|
|
"test": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 430,
|
|
"end": 432,
|
|
"ctxt": 0
|
|
},
|
|
"value": 42.0,
|
|
"raw": "42"
|
|
},
|
|
"consequent": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 435,
|
|
"end": 439,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 435,
|
|
"end": 436,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Computed",
|
|
"span": {
|
|
"start": 436,
|
|
"end": 439,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 437,
|
|
"end": 438,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false
|
|
}
|
|
}
|
|
},
|
|
"alternate": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 442,
|
|
"end": 446,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 442,
|
|
"end": 443,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Computed",
|
|
"span": {
|
|
"start": 443,
|
|
"end": 446,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 444,
|
|
"end": 445,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 448,
|
|
"end": 451,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 452,
|
|
"end": 475,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 457,
|
|
"end": 462,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 461,
|
|
"end": 462,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 461,
|
|
"end": 462,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 466,
|
|
"end": 470,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 466,
|
|
"end": 467,
|
|
"ctxt": 0
|
|
},
|
|
"value": "c",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Computed",
|
|
"span": {
|
|
"start": 467,
|
|
"end": 470,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 468,
|
|
"end": 469,
|
|
"ctxt": 0
|
|
},
|
|
"value": "d",
|
|
"optional": false
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 472,
|
|
"end": 475,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 477,
|
|
"end": 512,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 482,
|
|
"end": 487,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 486,
|
|
"end": 487,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 486,
|
|
"end": 487,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ParenthesisExpression",
|
|
"span": {
|
|
"start": 491,
|
|
"end": 507,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "ArrowFunctionExpression",
|
|
"span": {
|
|
"start": 492,
|
|
"end": 506,
|
|
"ctxt": 0
|
|
},
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 496,
|
|
"end": 500,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 497,
|
|
"end": 500,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeReference",
|
|
"span": {
|
|
"start": 499,
|
|
"end": 500,
|
|
"ctxt": 0
|
|
},
|
|
"typeName": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 499,
|
|
"end": 500,
|
|
"ctxt": 0
|
|
},
|
|
"value": "T",
|
|
"optional": false
|
|
},
|
|
"typeParams": null
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"body": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 505,
|
|
"end": 506,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false
|
|
},
|
|
"async": false,
|
|
"generator": false,
|
|
"typeParameters": {
|
|
"type": "TsTypeParameterDeclaration",
|
|
"span": {
|
|
"start": 492,
|
|
"end": 495,
|
|
"ctxt": 0
|
|
},
|
|
"parameters": [
|
|
{
|
|
"type": "TsTypeParameter",
|
|
"span": {
|
|
"start": 493,
|
|
"end": 494,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 493,
|
|
"end": 494,
|
|
"ctxt": 0
|
|
},
|
|
"value": "T",
|
|
"optional": false
|
|
},
|
|
"in": false,
|
|
"out": false,
|
|
"const": false,
|
|
"constraint": null,
|
|
"default": null
|
|
}
|
|
]
|
|
},
|
|
"returnType": null
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 509,
|
|
"end": 512,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 513,
|
|
"end": 580,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 518,
|
|
"end": 523,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 522,
|
|
"end": 523,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 522,
|
|
"end": 523,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "FunctionExpression",
|
|
"identifier": null,
|
|
"params": [
|
|
{
|
|
"type": "Parameter",
|
|
"span": {
|
|
"start": 537,
|
|
"end": 546,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"pat": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 537,
|
|
"end": 546,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 538,
|
|
"end": 546,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 540,
|
|
"end": 546,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Parameter",
|
|
"span": {
|
|
"start": 548,
|
|
"end": 557,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"pat": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 548,
|
|
"end": 557,
|
|
"ctxt": 0
|
|
},
|
|
"value": "y",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 549,
|
|
"end": 557,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 551,
|
|
"end": 557,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "number"
|
|
}
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 527,
|
|
"end": 575,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 559,
|
|
"end": 575,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ReturnStatement",
|
|
"span": {
|
|
"start": 561,
|
|
"end": 573,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "BinaryExpression",
|
|
"span": {
|
|
"start": 568,
|
|
"end": 573,
|
|
"ctxt": 0
|
|
},
|
|
"operator": "+",
|
|
"left": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 568,
|
|
"end": 569,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 572,
|
|
"end": 573,
|
|
"ctxt": 0
|
|
},
|
|
"value": "y",
|
|
"optional": false
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 577,
|
|
"end": 580,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 588,
|
|
"end": 589,
|
|
"ctxt": 0
|
|
},
|
|
"value": "A",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"span": {
|
|
"start": 582,
|
|
"end": 892,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"span": {
|
|
"start": 596,
|
|
"end": 736,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 596,
|
|
"end": 599,
|
|
"ctxt": 0
|
|
},
|
|
"value": "biz",
|
|
"optional": false
|
|
},
|
|
"function": {
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 596,
|
|
"end": 736,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 602,
|
|
"end": 736,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 612,
|
|
"end": 641,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 617,
|
|
"end": 622,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 621,
|
|
"end": 622,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 621,
|
|
"end": 622,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 626,
|
|
"end": 636,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 626,
|
|
"end": 634,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 626,
|
|
"end": 630,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 631,
|
|
"end": 634,
|
|
"ctxt": 0
|
|
},
|
|
"value": "biz",
|
|
"optional": false
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 638,
|
|
"end": 641,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 650,
|
|
"end": 677,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 655,
|
|
"end": 660,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 659,
|
|
"end": 660,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 659,
|
|
"end": 660,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 664,
|
|
"end": 672,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 664,
|
|
"end": 668,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 669,
|
|
"end": 672,
|
|
"ctxt": 0
|
|
},
|
|
"value": "biz",
|
|
"optional": false
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 674,
|
|
"end": 677,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 686,
|
|
"end": 709,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 691,
|
|
"end": 696,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 695,
|
|
"end": 696,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 695,
|
|
"end": 696,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 700,
|
|
"end": 704,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 706,
|
|
"end": 709,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"span": {
|
|
"start": 718,
|
|
"end": 730,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "NullLiteral",
|
|
"span": {
|
|
"start": 725,
|
|
"end": 729,
|
|
"ctxt": 0
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
},
|
|
"kind": "method",
|
|
"isStatic": false,
|
|
"accessibility": null,
|
|
"isAbstract": false,
|
|
"isOptional": false,
|
|
"isOverride": false
|
|
},
|
|
{
|
|
"type": "ClassMethod",
|
|
"span": {
|
|
"start": 742,
|
|
"end": 890,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 749,
|
|
"end": 752,
|
|
"ctxt": 0
|
|
},
|
|
"value": "baz",
|
|
"optional": false
|
|
},
|
|
"function": {
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 742,
|
|
"end": 890,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 755,
|
|
"end": 890,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 765,
|
|
"end": 788,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 770,
|
|
"end": 775,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 774,
|
|
"end": 775,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 774,
|
|
"end": 775,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 779,
|
|
"end": 783,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 785,
|
|
"end": 788,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 797,
|
|
"end": 824,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 802,
|
|
"end": 807,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 806,
|
|
"end": 807,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 806,
|
|
"end": 807,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 811,
|
|
"end": 819,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 811,
|
|
"end": 815,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 816,
|
|
"end": 819,
|
|
"ctxt": 0
|
|
},
|
|
"value": "baz",
|
|
"optional": false
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 821,
|
|
"end": 824,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 833,
|
|
"end": 862,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 838,
|
|
"end": 843,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 842,
|
|
"end": 843,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 842,
|
|
"end": 843,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 847,
|
|
"end": 857,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 847,
|
|
"end": 855,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 847,
|
|
"end": 851,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 852,
|
|
"end": 855,
|
|
"ctxt": 0
|
|
},
|
|
"value": "baz",
|
|
"optional": false
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 859,
|
|
"end": 862,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"span": {
|
|
"start": 872,
|
|
"end": 884,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "NullLiteral",
|
|
"span": {
|
|
"start": 879,
|
|
"end": 883,
|
|
"ctxt": 0
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
},
|
|
"kind": "method",
|
|
"isStatic": true,
|
|
"accessibility": null,
|
|
"isAbstract": false,
|
|
"isOptional": false,
|
|
"isOverride": false
|
|
}
|
|
],
|
|
"superClass": null,
|
|
"isAbstract": false,
|
|
"typeParams": null,
|
|
"superTypeParams": null,
|
|
"implements": []
|
|
},
|
|
{
|
|
"type": "ClassDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 900,
|
|
"end": 901,
|
|
"ctxt": 0
|
|
},
|
|
"value": "B",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"span": {
|
|
"start": 894,
|
|
"end": 1137,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"body": [
|
|
{
|
|
"type": "ClassMethod",
|
|
"span": {
|
|
"start": 918,
|
|
"end": 1135,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 918,
|
|
"end": 921,
|
|
"ctxt": 0
|
|
},
|
|
"value": "boz",
|
|
"optional": false
|
|
},
|
|
"function": {
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 918,
|
|
"end": 1135,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 924,
|
|
"end": 1135,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 934,
|
|
"end": 963,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 939,
|
|
"end": 944,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 943,
|
|
"end": 944,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 943,
|
|
"end": 944,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 948,
|
|
"end": 958,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 948,
|
|
"end": 956,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 948,
|
|
"end": 952,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 953,
|
|
"end": 956,
|
|
"ctxt": 0
|
|
},
|
|
"value": "biz",
|
|
"optional": false
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 960,
|
|
"end": 963,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 972,
|
|
"end": 999,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 977,
|
|
"end": 982,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 981,
|
|
"end": 982,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 981,
|
|
"end": 982,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 986,
|
|
"end": 994,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 986,
|
|
"end": 990,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 991,
|
|
"end": 994,
|
|
"ctxt": 0
|
|
},
|
|
"value": "biz",
|
|
"optional": false
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 996,
|
|
"end": 999,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 1008,
|
|
"end": 1031,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 1013,
|
|
"end": 1018,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 1017,
|
|
"end": 1018,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1017,
|
|
"end": 1018,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ThisExpression",
|
|
"span": {
|
|
"start": 1022,
|
|
"end": 1026,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 1028,
|
|
"end": 1031,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 1041,
|
|
"end": 1069,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 1046,
|
|
"end": 1051,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 1050,
|
|
"end": 1051,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1050,
|
|
"end": 1051,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "SuperPropExpression",
|
|
"span": {
|
|
"start": 1055,
|
|
"end": 1064,
|
|
"ctxt": 0
|
|
},
|
|
"obj": {
|
|
"type": "Super",
|
|
"span": {
|
|
"start": 1055,
|
|
"end": 1060,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1061,
|
|
"end": 1064,
|
|
"ctxt": 0
|
|
},
|
|
"value": "biz",
|
|
"optional": false
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 1066,
|
|
"end": 1069,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 1078,
|
|
"end": 1108,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 1083,
|
|
"end": 1088,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 1087,
|
|
"end": 1088,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1087,
|
|
"end": 1088,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "CallExpression",
|
|
"span": {
|
|
"start": 1092,
|
|
"end": 1103,
|
|
"ctxt": 0
|
|
},
|
|
"callee": {
|
|
"type": "SuperPropExpression",
|
|
"span": {
|
|
"start": 1092,
|
|
"end": 1101,
|
|
"ctxt": 0
|
|
},
|
|
"obj": {
|
|
"type": "Super",
|
|
"span": {
|
|
"start": 1092,
|
|
"end": 1097,
|
|
"ctxt": 0
|
|
}
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1098,
|
|
"end": 1101,
|
|
"ctxt": 0
|
|
},
|
|
"value": "biz",
|
|
"optional": false
|
|
}
|
|
},
|
|
"arguments": [],
|
|
"typeArguments": null
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 1105,
|
|
"end": 1108,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ReturnStatement",
|
|
"span": {
|
|
"start": 1117,
|
|
"end": 1129,
|
|
"ctxt": 0
|
|
},
|
|
"argument": {
|
|
"type": "NullLiteral",
|
|
"span": {
|
|
"start": 1124,
|
|
"end": 1128,
|
|
"ctxt": 0
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
},
|
|
"kind": "method",
|
|
"isStatic": false,
|
|
"accessibility": null,
|
|
"isAbstract": false,
|
|
"isOptional": false,
|
|
"isOverride": false
|
|
}
|
|
],
|
|
"superClass": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 910,
|
|
"end": 911,
|
|
"ctxt": 0
|
|
},
|
|
"value": "A",
|
|
"optional": false
|
|
},
|
|
"isAbstract": false,
|
|
"typeParams": null,
|
|
"superTypeParams": null,
|
|
"implements": []
|
|
},
|
|
{
|
|
"type": "TsInterfaceDeclaration",
|
|
"span": {
|
|
"start": 1139,
|
|
"end": 1192,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1149,
|
|
"end": 1150,
|
|
"ctxt": 0
|
|
},
|
|
"value": "I",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"typeParams": null,
|
|
"extends": [],
|
|
"body": {
|
|
"type": "TsInterfaceBody",
|
|
"span": {
|
|
"start": 1151,
|
|
"end": 1192,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "TsPropertySignature",
|
|
"span": {
|
|
"start": 1157,
|
|
"end": 1168,
|
|
"ctxt": 0
|
|
},
|
|
"readonly": false,
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1157,
|
|
"end": 1159,
|
|
"ctxt": 0
|
|
},
|
|
"value": "id",
|
|
"optional": false
|
|
},
|
|
"computed": false,
|
|
"optional": false,
|
|
"init": null,
|
|
"params": [],
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 1159,
|
|
"end": 1167,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 1161,
|
|
"end": 1167,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "number"
|
|
}
|
|
},
|
|
"typeParams": null
|
|
},
|
|
{
|
|
"type": "TsIndexSignature",
|
|
"params": [
|
|
{
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1174,
|
|
"end": 1185,
|
|
"ctxt": 0
|
|
},
|
|
"value": "idx",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 1177,
|
|
"end": 1185,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 1179,
|
|
"end": 1185,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "number"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 1186,
|
|
"end": 1189,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeReference",
|
|
"span": {
|
|
"start": 1188,
|
|
"end": 1189,
|
|
"ctxt": 0
|
|
},
|
|
"typeName": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1188,
|
|
"end": 1189,
|
|
"ctxt": 0
|
|
},
|
|
"value": "I",
|
|
"optional": false
|
|
},
|
|
"typeParams": null
|
|
}
|
|
},
|
|
"readonly": false,
|
|
"static": false,
|
|
"span": {
|
|
"start": 1173,
|
|
"end": 1190,
|
|
"ctxt": 0
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 1193,
|
|
"end": 1202,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 1197,
|
|
"end": 1201,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1197,
|
|
"end": 1198,
|
|
"ctxt": 0
|
|
},
|
|
"value": "i",
|
|
"optional": false,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 1198,
|
|
"end": 1201,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsTypeReference",
|
|
"span": {
|
|
"start": 1200,
|
|
"end": 1201,
|
|
"ctxt": 0
|
|
},
|
|
"typeName": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1200,
|
|
"end": 1201,
|
|
"ctxt": 0
|
|
},
|
|
"value": "I",
|
|
"optional": false
|
|
},
|
|
"typeParams": null
|
|
}
|
|
}
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 1204,
|
|
"end": 1228,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 1209,
|
|
"end": 1214,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 1213,
|
|
"end": 1214,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1213,
|
|
"end": 1214,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 1218,
|
|
"end": 1223,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1218,
|
|
"end": 1219,
|
|
"ctxt": 0
|
|
},
|
|
"value": "i",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Computed",
|
|
"span": {
|
|
"start": 1219,
|
|
"end": 1223,
|
|
"ctxt": 0
|
|
},
|
|
"expression": {
|
|
"type": "NumericLiteral",
|
|
"span": {
|
|
"start": 1220,
|
|
"end": 1222,
|
|
"ctxt": 0
|
|
},
|
|
"value": 42.0,
|
|
"raw": "42"
|
|
}
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 1225,
|
|
"end": 1228,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "TsModuleDeclaration",
|
|
"span": {
|
|
"start": 1232,
|
|
"end": 1294,
|
|
"ctxt": 0
|
|
},
|
|
"declare": false,
|
|
"global": false,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1239,
|
|
"end": 1240,
|
|
"ctxt": 0
|
|
},
|
|
"value": "M",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "TsModuleBlock",
|
|
"span": {
|
|
"start": 1241,
|
|
"end": 1294,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ExportDeclaration",
|
|
"span": {
|
|
"start": 1247,
|
|
"end": 1292,
|
|
"ctxt": 0
|
|
},
|
|
"declaration": {
|
|
"type": "ClassDeclaration",
|
|
"identifier": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1260,
|
|
"end": 1261,
|
|
"ctxt": 0
|
|
},
|
|
"value": "X",
|
|
"optional": false
|
|
},
|
|
"declare": false,
|
|
"span": {
|
|
"start": 1254,
|
|
"end": 1292,
|
|
"ctxt": 0
|
|
},
|
|
"decorators": [],
|
|
"body": [
|
|
{
|
|
"type": "ClassProperty",
|
|
"span": {
|
|
"start": 1275,
|
|
"end": 1286,
|
|
"ctxt": 0
|
|
},
|
|
"key": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1275,
|
|
"end": 1279,
|
|
"ctxt": 0
|
|
},
|
|
"value": "name",
|
|
"optional": false
|
|
},
|
|
"value": null,
|
|
"typeAnnotation": {
|
|
"type": "TsTypeAnnotation",
|
|
"span": {
|
|
"start": 1279,
|
|
"end": 1286,
|
|
"ctxt": 0
|
|
},
|
|
"typeAnnotation": {
|
|
"type": "TsKeywordType",
|
|
"span": {
|
|
"start": 1280,
|
|
"end": 1286,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "string"
|
|
}
|
|
},
|
|
"isStatic": false,
|
|
"decorators": [],
|
|
"accessibility": null,
|
|
"isAbstract": false,
|
|
"isOptional": false,
|
|
"isOverride": false,
|
|
"readonly": false,
|
|
"declare": false,
|
|
"definite": false
|
|
}
|
|
],
|
|
"superClass": null,
|
|
"isAbstract": false,
|
|
"typeParams": {
|
|
"type": "TsTypeParameterDeclaration",
|
|
"span": {
|
|
"start": 1261,
|
|
"end": 1264,
|
|
"ctxt": 0
|
|
},
|
|
"parameters": [
|
|
{
|
|
"type": "TsTypeParameter",
|
|
"span": {
|
|
"start": 1262,
|
|
"end": 1263,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1262,
|
|
"end": 1263,
|
|
"ctxt": 0
|
|
},
|
|
"value": "T",
|
|
"optional": false
|
|
},
|
|
"in": false,
|
|
"out": false,
|
|
"const": false,
|
|
"constraint": null,
|
|
"default": null
|
|
}
|
|
]
|
|
},
|
|
"superTypeParams": null,
|
|
"implements": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 1296,
|
|
"end": 1316,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 1301,
|
|
"end": 1306,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 1305,
|
|
"end": 1306,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1305,
|
|
"end": 1306,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1310,
|
|
"end": 1311,
|
|
"ctxt": 0
|
|
},
|
|
"value": "M",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 1313,
|
|
"end": 1316,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 1317,
|
|
"end": 1339,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 1322,
|
|
"end": 1327,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 1326,
|
|
"end": 1327,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1326,
|
|
"end": 1327,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 1331,
|
|
"end": 1334,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1331,
|
|
"end": 1332,
|
|
"ctxt": 0
|
|
},
|
|
"value": "M",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1333,
|
|
"end": 1334,
|
|
"ctxt": 0
|
|
},
|
|
"value": "X",
|
|
"optional": false
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 1336,
|
|
"end": 1339,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "TsEnumDeclaration",
|
|
"span": {
|
|
"start": 1341,
|
|
"end": 1365,
|
|
"ctxt": 0
|
|
},
|
|
"declare": false,
|
|
"isConst": false,
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1346,
|
|
"end": 1351,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Color",
|
|
"optional": false
|
|
},
|
|
"members": [
|
|
{
|
|
"type": "TsEnumMember",
|
|
"span": {
|
|
"start": 1354,
|
|
"end": 1357,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1354,
|
|
"end": 1357,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Red",
|
|
"optional": false
|
|
},
|
|
"init": null
|
|
},
|
|
{
|
|
"type": "TsEnumMember",
|
|
"span": {
|
|
"start": 1359,
|
|
"end": 1363,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1359,
|
|
"end": 1363,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Blue",
|
|
"optional": false
|
|
},
|
|
"init": null
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 1367,
|
|
"end": 1391,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 1372,
|
|
"end": 1377,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 1376,
|
|
"end": 1377,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1376,
|
|
"end": 1377,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1381,
|
|
"end": 1386,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Color",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 1388,
|
|
"end": 1391,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 1392,
|
|
"end": 1421,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 1397,
|
|
"end": 1402,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 1401,
|
|
"end": 1402,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1401,
|
|
"end": 1402,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "MemberExpression",
|
|
"span": {
|
|
"start": 1406,
|
|
"end": 1416,
|
|
"ctxt": 0
|
|
},
|
|
"object": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1406,
|
|
"end": 1411,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Color",
|
|
"optional": false
|
|
},
|
|
"property": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 1412,
|
|
"end": 1416,
|
|
"ctxt": 0
|
|
},
|
|
"value": "Blue",
|
|
"optional": false
|
|
}
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 1418,
|
|
"end": 1421,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
}
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|