mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +03:00
949 lines
23 KiB
JSON
949 lines
23 KiB
JSON
{
|
|
"type": "Script",
|
|
"span": {
|
|
"start": 30,
|
|
"end": 454,
|
|
"ctxt": 0
|
|
},
|
|
"body": [
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 30,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 34,
|
|
"end": 39,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 38,
|
|
"end": 39,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 38,
|
|
"end": 39,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 43,
|
|
"end": 45,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 47,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "BreakStatement",
|
|
"span": {
|
|
"start": 53,
|
|
"end": 59,
|
|
"ctxt": 0
|
|
},
|
|
"label": null
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledStatement",
|
|
"span": {
|
|
"start": 63,
|
|
"end": 103,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 63,
|
|
"end": 66,
|
|
"ctxt": 0
|
|
},
|
|
"value": "ONE",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 68,
|
|
"end": 103,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 72,
|
|
"end": 77,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 76,
|
|
"end": 77,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 76,
|
|
"end": 77,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 81,
|
|
"end": 83,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 85,
|
|
"end": 103,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "BreakStatement",
|
|
"span": {
|
|
"start": 91,
|
|
"end": 101,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 97,
|
|
"end": 100,
|
|
"ctxt": 0
|
|
},
|
|
"value": "ONE",
|
|
"optional": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledStatement",
|
|
"span": {
|
|
"start": 105,
|
|
"end": 154,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 105,
|
|
"end": 108,
|
|
"ctxt": 0
|
|
},
|
|
"value": "TWO",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "LabeledStatement",
|
|
"span": {
|
|
"start": 110,
|
|
"end": 154,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 110,
|
|
"end": 115,
|
|
"ctxt": 0
|
|
},
|
|
"value": "THREE",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 117,
|
|
"end": 154,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 121,
|
|
"end": 126,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 125,
|
|
"end": 126,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 125,
|
|
"end": 126,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 130,
|
|
"end": 132,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 134,
|
|
"end": 154,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "BreakStatement",
|
|
"span": {
|
|
"start": 140,
|
|
"end": 152,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 146,
|
|
"end": 151,
|
|
"ctxt": 0
|
|
},
|
|
"value": "THREE",
|
|
"optional": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledStatement",
|
|
"span": {
|
|
"start": 156,
|
|
"end": 241,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 156,
|
|
"end": 160,
|
|
"ctxt": 0
|
|
},
|
|
"value": "FOUR",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 162,
|
|
"end": 241,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 166,
|
|
"end": 171,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 170,
|
|
"end": 171,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 170,
|
|
"end": 171,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 175,
|
|
"end": 177,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 179,
|
|
"end": 241,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "LabeledStatement",
|
|
"span": {
|
|
"start": 185,
|
|
"end": 239,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 185,
|
|
"end": 189,
|
|
"ctxt": 0
|
|
},
|
|
"value": "FIVE",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 195,
|
|
"end": 239,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 199,
|
|
"end": 204,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 203,
|
|
"end": 204,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 203,
|
|
"end": 204,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 208,
|
|
"end": 210,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 212,
|
|
"end": 239,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "BreakStatement",
|
|
"span": {
|
|
"start": 222,
|
|
"end": 233,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 228,
|
|
"end": 232,
|
|
"ctxt": 0
|
|
},
|
|
"value": "FOUR",
|
|
"optional": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 243,
|
|
"end": 304,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 247,
|
|
"end": 252,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 251,
|
|
"end": 252,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 251,
|
|
"end": 252,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 256,
|
|
"end": 258,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 260,
|
|
"end": 304,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "LabeledStatement",
|
|
"span": {
|
|
"start": 266,
|
|
"end": 302,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 266,
|
|
"end": 269,
|
|
"ctxt": 0
|
|
},
|
|
"value": "SIX",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 275,
|
|
"end": 302,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 279,
|
|
"end": 284,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 283,
|
|
"end": 284,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 283,
|
|
"end": 284,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 288,
|
|
"end": 290,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BreakStatement",
|
|
"span": {
|
|
"start": 292,
|
|
"end": 302,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 298,
|
|
"end": 301,
|
|
"ctxt": 0
|
|
},
|
|
"value": "SIX",
|
|
"optional": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledStatement",
|
|
"span": {
|
|
"start": 306,
|
|
"end": 379,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 306,
|
|
"end": 311,
|
|
"ctxt": 0
|
|
},
|
|
"value": "SEVEN",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 313,
|
|
"end": 379,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 318,
|
|
"end": 323,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 322,
|
|
"end": 323,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 322,
|
|
"end": 323,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 327,
|
|
"end": 329,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 331,
|
|
"end": 379,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 336,
|
|
"end": 341,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 340,
|
|
"end": 341,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 340,
|
|
"end": 341,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 345,
|
|
"end": 347,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 349,
|
|
"end": 379,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 354,
|
|
"end": 359,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 358,
|
|
"end": 359,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 358,
|
|
"end": 359,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 363,
|
|
"end": 365,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BreakStatement",
|
|
"span": {
|
|
"start": 367,
|
|
"end": 379,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 373,
|
|
"end": 378,
|
|
"ctxt": 0
|
|
},
|
|
"value": "SEVEN",
|
|
"optional": false
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "LabeledStatement",
|
|
"span": {
|
|
"start": 381,
|
|
"end": 454,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 381,
|
|
"end": 386,
|
|
"ctxt": 0
|
|
},
|
|
"value": "EIGHT",
|
|
"optional": false
|
|
},
|
|
"body": {
|
|
"type": "ForInStatement",
|
|
"span": {
|
|
"start": 388,
|
|
"end": 454,
|
|
"ctxt": 0
|
|
},
|
|
"left": {
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 393,
|
|
"end": 398,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 397,
|
|
"end": 398,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 397,
|
|
"end": 398,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": null,
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
"right": {
|
|
"type": "ObjectExpression",
|
|
"span": {
|
|
"start": 402,
|
|
"end": 404,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 405,
|
|
"end": 454,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": [
|
|
{
|
|
"type": "VariableDeclaration",
|
|
"span": {
|
|
"start": 411,
|
|
"end": 435,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "var",
|
|
"declare": false,
|
|
"declarations": [
|
|
{
|
|
"type": "VariableDeclarator",
|
|
"span": {
|
|
"start": 415,
|
|
"end": 435,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 415,
|
|
"end": 417,
|
|
"ctxt": 0
|
|
},
|
|
"value": "fn",
|
|
"optional": false,
|
|
"typeAnnotation": null
|
|
},
|
|
"init": {
|
|
"type": "FunctionExpression",
|
|
"identifier": null,
|
|
"params": [],
|
|
"decorators": [],
|
|
"span": {
|
|
"start": 420,
|
|
"end": 435,
|
|
"ctxt": 0
|
|
},
|
|
"body": {
|
|
"type": "BlockStatement",
|
|
"span": {
|
|
"start": 432,
|
|
"end": 435,
|
|
"ctxt": 0
|
|
},
|
|
"stmts": []
|
|
},
|
|
"generator": false,
|
|
"async": false,
|
|
"typeParameters": null,
|
|
"returnType": null
|
|
},
|
|
"definite": false
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"span": {
|
|
"start": 440,
|
|
"end": 452,
|
|
"ctxt": 0
|
|
},
|
|
"label": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 446,
|
|
"end": 451,
|
|
"ctxt": 0
|
|
},
|
|
"value": "EIGHT",
|
|
"optional": false
|
|
}
|
|
}
|
|
]
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"interpreter": null
|
|
}
|