swc/crates/swc_ecma_parser/tests/tsc/forContinueStatements.json

520 lines
12 KiB
JSON

{
"type": "Script",
"span": {
"start": 32,
"end": 397,
"ctxt": 0
},
"body": [
{
"type": "ForStatement",
"span": {
"start": 32,
"end": 59,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 42,
"end": 59,
"ctxt": 0
},
"stmts": [
{
"type": "ContinueStatement",
"span": {
"start": 48,
"end": 57,
"ctxt": 0
},
"label": null
}
]
}
},
{
"type": "LabeledStatement",
"span": {
"start": 61,
"end": 97,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 61,
"end": 64,
"ctxt": 0
},
"value": "ONE",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 66,
"end": 97,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 76,
"end": 97,
"ctxt": 0
},
"stmts": [
{
"type": "ContinueStatement",
"span": {
"start": 82,
"end": 95,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 91,
"end": 94,
"ctxt": 0
},
"value": "ONE",
"optional": false
}
}
]
}
}
},
{
"type": "LabeledStatement",
"span": {
"start": 99,
"end": 144,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 99,
"end": 102,
"ctxt": 0
},
"value": "TWO",
"optional": false
},
"body": {
"type": "LabeledStatement",
"span": {
"start": 104,
"end": 144,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 104,
"end": 109,
"ctxt": 0
},
"value": "THREE",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 111,
"end": 144,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 121,
"end": 144,
"ctxt": 0
},
"stmts": [
{
"type": "ContinueStatement",
"span": {
"start": 127,
"end": 142,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 136,
"end": 141,
"ctxt": 0
},
"value": "THREE",
"optional": false
}
}
]
}
}
}
},
{
"type": "LabeledStatement",
"span": {
"start": 146,
"end": 220,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 146,
"end": 150,
"ctxt": 0
},
"value": "FOUR",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 152,
"end": 220,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 162,
"end": 220,
"ctxt": 0
},
"stmts": [
{
"type": "LabeledStatement",
"span": {
"start": 168,
"end": 218,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 168,
"end": 172,
"ctxt": 0
},
"value": "FIVE",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 178,
"end": 218,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 188,
"end": 218,
"ctxt": 0
},
"stmts": [
{
"type": "ContinueStatement",
"span": {
"start": 198,
"end": 212,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 207,
"end": 211,
"ctxt": 0
},
"value": "FOUR",
"optional": false
}
}
]
}
}
}
]
}
}
},
{
"type": "ForStatement",
"span": {
"start": 222,
"end": 272,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 232,
"end": 272,
"ctxt": 0
},
"stmts": [
{
"type": "LabeledStatement",
"span": {
"start": 238,
"end": 270,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 238,
"end": 241,
"ctxt": 0
},
"value": "SIX",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 247,
"end": 270,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "ContinueStatement",
"span": {
"start": 257,
"end": 270,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 266,
"end": 269,
"ctxt": 0
},
"value": "SIX",
"optional": false
}
}
}
}
]
}
},
{
"type": "LabeledStatement",
"span": {
"start": 274,
"end": 326,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 274,
"end": 279,
"ctxt": 0
},
"value": "SEVEN",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 281,
"end": 326,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "ForStatement",
"span": {
"start": 291,
"end": 326,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "ForStatement",
"span": {
"start": 301,
"end": 326,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "ContinueStatement",
"span": {
"start": 311,
"end": 326,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 320,
"end": 325,
"ctxt": 0
},
"value": "SEVEN",
"optional": false
}
}
}
}
}
},
{
"type": "LabeledStatement",
"span": {
"start": 328,
"end": 397,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 328,
"end": 333,
"ctxt": 0
},
"value": "EIGHT",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 335,
"end": 397,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 345,
"end": 397,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 351,
"end": 375,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 355,
"end": 375,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 355,
"end": 357,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 360,
"end": 375,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 372,
"end": 375,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "ContinueStatement",
"span": {
"start": 380,
"end": 395,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 389,
"end": 394,
"ctxt": 0
},
"value": "EIGHT",
"optional": false
}
}
]
}
}
}
],
"interpreter": null
}