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

520 lines
12 KiB
JSON

{
"type": "Script",
"span": {
"start": 33,
"end": 398,
"ctxt": 0
},
"body": [
{
"type": "ForStatement",
"span": {
"start": 33,
"end": 60,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 43,
"end": 60,
"ctxt": 0
},
"stmts": [
{
"type": "ContinueStatement",
"span": {
"start": 49,
"end": 58,
"ctxt": 0
},
"label": null
}
]
}
},
{
"type": "LabeledStatement",
"span": {
"start": 62,
"end": 98,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 62,
"end": 65,
"ctxt": 0
},
"value": "ONE",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 67,
"end": 98,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 77,
"end": 98,
"ctxt": 0
},
"stmts": [
{
"type": "ContinueStatement",
"span": {
"start": 83,
"end": 96,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 92,
"end": 95,
"ctxt": 0
},
"value": "ONE",
"optional": false
}
}
]
}
}
},
{
"type": "LabeledStatement",
"span": {
"start": 100,
"end": 145,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 100,
"end": 103,
"ctxt": 0
},
"value": "TWO",
"optional": false
},
"body": {
"type": "LabeledStatement",
"span": {
"start": 105,
"end": 145,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 105,
"end": 110,
"ctxt": 0
},
"value": "THREE",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 112,
"end": 145,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 122,
"end": 145,
"ctxt": 0
},
"stmts": [
{
"type": "ContinueStatement",
"span": {
"start": 128,
"end": 143,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 137,
"end": 142,
"ctxt": 0
},
"value": "THREE",
"optional": false
}
}
]
}
}
}
},
{
"type": "LabeledStatement",
"span": {
"start": 147,
"end": 221,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 147,
"end": 151,
"ctxt": 0
},
"value": "FOUR",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 153,
"end": 221,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 163,
"end": 221,
"ctxt": 0
},
"stmts": [
{
"type": "LabeledStatement",
"span": {
"start": 169,
"end": 219,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 169,
"end": 173,
"ctxt": 0
},
"value": "FIVE",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 179,
"end": 219,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 189,
"end": 219,
"ctxt": 0
},
"stmts": [
{
"type": "ContinueStatement",
"span": {
"start": 199,
"end": 213,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 208,
"end": 212,
"ctxt": 0
},
"value": "FOUR",
"optional": false
}
}
]
}
}
}
]
}
}
},
{
"type": "ForStatement",
"span": {
"start": 223,
"end": 273,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 233,
"end": 273,
"ctxt": 0
},
"stmts": [
{
"type": "LabeledStatement",
"span": {
"start": 239,
"end": 271,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 239,
"end": 242,
"ctxt": 0
},
"value": "SIX",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 248,
"end": 271,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "ContinueStatement",
"span": {
"start": 258,
"end": 271,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 267,
"end": 270,
"ctxt": 0
},
"value": "SIX",
"optional": false
}
}
}
}
]
}
},
{
"type": "LabeledStatement",
"span": {
"start": 275,
"end": 327,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 275,
"end": 280,
"ctxt": 0
},
"value": "SEVEN",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 282,
"end": 327,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "ForStatement",
"span": {
"start": 292,
"end": 327,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "ForStatement",
"span": {
"start": 302,
"end": 327,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "ContinueStatement",
"span": {
"start": 312,
"end": 327,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 321,
"end": 326,
"ctxt": 0
},
"value": "SEVEN",
"optional": false
}
}
}
}
}
},
{
"type": "LabeledStatement",
"span": {
"start": 329,
"end": 398,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 329,
"end": 334,
"ctxt": 0
},
"value": "EIGHT",
"optional": false
},
"body": {
"type": "ForStatement",
"span": {
"start": 336,
"end": 398,
"ctxt": 0
},
"init": null,
"test": null,
"update": null,
"body": {
"type": "BlockStatement",
"span": {
"start": 346,
"end": 398,
"ctxt": 0
},
"stmts": [
{
"type": "VariableDeclaration",
"span": {
"start": 352,
"end": 376,
"ctxt": 0
},
"kind": "var",
"declare": false,
"declarations": [
{
"type": "VariableDeclarator",
"span": {
"start": 356,
"end": 376,
"ctxt": 0
},
"id": {
"type": "Identifier",
"span": {
"start": 356,
"end": 358,
"ctxt": 0
},
"value": "fn",
"optional": false,
"typeAnnotation": null
},
"init": {
"type": "FunctionExpression",
"identifier": null,
"params": [],
"decorators": [],
"span": {
"start": 361,
"end": 376,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 373,
"end": 376,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
"definite": false
}
]
},
{
"type": "ContinueStatement",
"span": {
"start": 381,
"end": 396,
"ctxt": 0
},
"label": {
"type": "Identifier",
"span": {
"start": 390,
"end": 395,
"ctxt": 0
},
"value": "EIGHT",
"optional": false
}
}
]
}
}
}
],
"interpreter": null
}