{
"type": "Program",
"statements": [
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 17,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 17,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "ExpressionStatement",
"expression": {
"type": "Identifier",
"name": "b",
"loc": {
"start": {
"line": 17,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 17,
"column": 5,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 17,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 17,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 17,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 17,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "b",
"loc": {
"start": {
"line": 19,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 19,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "IfStatement",
"test": {
"type": "NumberLiteral",
"value": 0,
"loc": {
"start": {
"line": 19,
"column": 8,
"program": "test-labelled-statement.js"
},
"end": {
"line": 19,
"column": 9,
"program": "test-labelled-statement.js"
}
}
},
"consequent": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 19,
"column": 11,
"program": "test-labelled-statement.js"
},
"end": {
"line": 19,
"column": 13,
"program": "test-labelled-statement.js"
}
}
},
"alternate": null,
"loc": {
"start": {
"line": 19,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 19,
"column": 13,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 19,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 19,
"column": 13,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "c",
"loc": {
"start": {
"line": 21,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 21,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "IfStatement",
"test": {
"type": "NumberLiteral",
"value": 0,
"loc": {
"start": {
"line": 21,
"column": 8,
"program": "test-labelled-statement.js"
},
"end": {
"line": 21,
"column": 9,
"program": "test-labelled-statement.js"
}
}
},
"consequent": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 21,
"column": 11,
"program": "test-labelled-statement.js"
},
"end": {
"line": 21,
"column": 13,
"program": "test-labelled-statement.js"
}
}
},
"alternate": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 21,
"column": 19,
"program": "test-labelled-statement.js"
},
"end": {
"line": 21,
"column": 21,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 21,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 21,
"column": 21,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 21,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 21,
"column": 21,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "d",
"loc": {
"start": {
"line": 23,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 23,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "WhileStatement",
"test": {
"type": "NumberLiteral",
"value": 0,
"loc": {
"start": {
"line": 23,
"column": 11,
"program": "test-labelled-statement.js"
},
"end": {
"line": 23,
"column": 12,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 23,
"column": 14,
"program": "test-labelled-statement.js"
},
"end": {
"line": 23,
"column": 16,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 23,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 23,
"column": 16,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 23,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 23,
"column": 16,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "EmptyStatement",
"loc": {
"start": {
"line": 23,
"column": 16,
"program": "test-labelled-statement.js"
},
"end": {
"line": 23,
"column": 17,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "e",
"loc": {
"start": {
"line": 25,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 25,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "DoWhileStatement",
"body": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 25,
"column": 7,
"program": "test-labelled-statement.js"
},
"end": {
"line": 25,
"column": 9,
"program": "test-labelled-statement.js"
}
}
},
"test": {
"type": "NumberLiteral",
"value": 0,
"loc": {
"start": {
"line": 25,
"column": 17,
"program": "test-labelled-statement.js"
},
"end": {
"line": 25,
"column": 18,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 25,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 25,
"column": 20,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 25,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 25,
"column": 20,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "f",
"loc": {
"start": {
"line": 27,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 27,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "SwitchStatement",
"discriminant": {
"type": "NumberLiteral",
"value": 0,
"loc": {
"start": {
"line": 27,
"column": 11,
"program": "test-labelled-statement.js"
},
"end": {
"line": 27,
"column": 12,
"program": "test-labelled-statement.js"
}
}
},
"cases": [],
"loc": {
"start": {
"line": 27,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 27,
"column": 16,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 27,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 27,
"column": 16,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "g",
"loc": {
"start": {
"line": 29,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 29,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "TryStatement",
"block": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 29,
"column": 8,
"program": "test-labelled-statement.js"
},
"end": {
"line": 29,
"column": 10,
"program": "test-labelled-statement.js"
}
}
},
"handler": [
{
"type": "CatchClause",
"body": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 29,
"column": 20,
"program": "test-labelled-statement.js"
},
"end": {
"line": 29,
"column": 22,
"program": "test-labelled-statement.js"
}
}
},
"param": {
"type": "Identifier",
"name": "e",
"loc": {
"start": {
"line": 29,
"column": 17,
"program": "test-labelled-statement.js"
},
"end": {
"line": 29,
"column": 18,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 29,
"column": 11,
"program": "test-labelled-statement.js"
},
"end": {
"line": 29,
"column": 22,
"program": "test-labelled-statement.js"
}
}
}
],
"finalizer": {
"type": "BlockStatement",
"statements": [],
"loc": {
"start": {
"line": 29,
"column": 31,
"program": "test-labelled-statement.js"
},
"end": {
"line": 29,
"column": 33,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 29,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 29,
"column": 33,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 29,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 29,
"column": 33,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "FunctionDeclaration",
"function": {
"type": "ScriptFunction",
"id": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 31,
"column": 10,
"program": "test-labelled-statement.js"
},
"end": {
"line": 31,
"column": 11,
"program": "test-labelled-statement.js"
}
}
},
"generator": false,
"async": false,
"expression": false,
"params": [],
"body": {
"type": "BlockStatement",
"statements": [
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "b",
"loc": {
"start": {
"line": 33,
"column": 3,
"program": "test-labelled-statement.js"
},
"end": {
"line": 33,
"column": 4,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "BlockStatement",
"statements": [
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 35,
"column": 5,
"program": "test-labelled-statement.js"
},
"end": {
"line": 35,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "WhileStatement",
"test": {
"type": "BooleanLiteral",
"value": true,
"loc": {
"start": {
"line": 36,
"column": 11,
"program": "test-labelled-statement.js"
},
"end": {
"line": 36,
"column": 15,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "BlockStatement",
"statements": [
{
"type": "BreakStatement",
"label": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 38,
"column": 13,
"program": "test-labelled-statement.js"
},
"end": {
"line": 38,
"column": 14,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 38,
"column": 7,
"program": "test-labelled-statement.js"
},
"end": {
"line": 38,
"column": 15,
"program": "test-labelled-statement.js"
}
}
}
],
"loc": {
"start": {
"line": 37,
"column": 5,
"program": "test-labelled-statement.js"
},
"end": {
"line": 39,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 36,
"column": 5,
"program": "test-labelled-statement.js"
},
"end": {
"line": 39,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 35,
"column": 5,
"program": "test-labelled-statement.js"
},
"end": {
"line": 39,
"column": 6,
"program": "test-labelled-statement.js"
}
}
}
],
"loc": {
"start": {
"line": 34,
"column": 3,
"program": "test-labelled-statement.js"
},
"end": {
"line": 40,
"column": 4,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 33,
"column": 3,
"program": "test-labelled-statement.js"
},
"end": {
"line": 40,
"column": 4,
"program": "test-labelled-statement.js"
}
}
}
],
"loc": {
"start": {
"line": 32,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 41,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 31,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 41,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 31,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 41,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "FunctionDeclaration",
"function": {
"type": "ScriptFunction",
"id": {
"type": "Identifier",
"name": "b",
"loc": {
"start": {
"line": 44,
"column": 10,
"program": "test-labelled-statement.js"
},
"end": {
"line": 44,
"column": 11,
"program": "test-labelled-statement.js"
}
}
},
"generator": false,
"async": false,
"expression": false,
"params": [],
"body": {
"type": "BlockStatement",
"statements": [
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "b",
"loc": {
"start": {
"line": 46,
"column": 3,
"program": "test-labelled-statement.js"
},
"end": {
"line": 46,
"column": 4,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "BlockStatement",
"statements": [
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 48,
"column": 5,
"program": "test-labelled-statement.js"
},
"end": {
"line": 48,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "c",
"loc": {
"start": {
"line": 49,
"column": 5,
"program": "test-labelled-statement.js"
},
"end": {
"line": 49,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "WhileStatement",
"test": {
"type": "BooleanLiteral",
"value": true,
"loc": {
"start": {
"line": 50,
"column": 11,
"program": "test-labelled-statement.js"
},
"end": {
"line": 50,
"column": 15,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "BlockStatement",
"statements": [
{
"type": "BreakStatement",
"label": {
"type": "Identifier",
"name": "b",
"loc": {
"start": {
"line": 52,
"column": 13,
"program": "test-labelled-statement.js"
},
"end": {
"line": 52,
"column": 14,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 52,
"column": 7,
"program": "test-labelled-statement.js"
},
"end": {
"line": 52,
"column": 15,
"program": "test-labelled-statement.js"
}
}
}
],
"loc": {
"start": {
"line": 51,
"column": 5,
"program": "test-labelled-statement.js"
},
"end": {
"line": 53,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 50,
"column": 5,
"program": "test-labelled-statement.js"
},
"end": {
"line": 53,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 49,
"column": 5,
"program": "test-labelled-statement.js"
},
"end": {
"line": 53,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 48,
"column": 5,
"program": "test-labelled-statement.js"
},
"end": {
"line": 53,
"column": 6,
"program": "test-labelled-statement.js"
}
}
}
],
"loc": {
"start": {
"line": 47,
"column": 3,
"program": "test-labelled-statement.js"
},
"end": {
"line": 54,
"column": 4,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 46,
"column": 3,
"program": "test-labelled-statement.js"
},
"end": {
"line": 54,
"column": 4,
"program": "test-labelled-statement.js"
}
}
}
],
"loc": {
"start": {
"line": 45,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 55,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 44,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 55,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 44,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 55,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 57,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 57,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "b",
"loc": {
"start": {
"line": 58,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 58,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "c",
"loc": {
"start": {
"line": 59,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 59,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "d",
"loc": {
"start": {
"line": 60,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 60,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "ExpressionStatement",
"expression": {
"type": "NumberLiteral",
"value": 1,
"loc": {
"start": {
"line": 60,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 60,
"column": 5,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 60,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 60,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 60,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 60,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 59,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 60,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 58,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 60,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 57,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 60,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 62,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 62,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "ExpressionStatement",
"expression": {
"type": "NumberLiteral",
"value": 1,
"loc": {
"start": {
"line": 62,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 62,
"column": 5,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 62,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 62,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 62,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 62,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 63,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 63,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "ExpressionStatement",
"expression": {
"type": "NumberLiteral",
"value": 2,
"loc": {
"start": {
"line": 63,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 63,
"column": 5,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 63,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 63,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 63,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 63,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
{
"type": "LabelledStatement",
"label": {
"type": "Identifier",
"name": "a",
"loc": {
"start": {
"line": 64,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 64,
"column": 2,
"program": "test-labelled-statement.js"
}
}
},
"body": {
"type": "ExpressionStatement",
"expression": {
"type": "NumberLiteral",
"value": 3,
"loc": {
"start": {
"line": 64,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 64,
"column": 5,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 64,
"column": 4,
"program": "test-labelled-statement.js"
},
"end": {
"line": 64,
"column": 6,
"program": "test-labelled-statement.js"
}
}
},
"loc": {
"start": {
"line": 64,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 64,
"column": 6,
"program": "test-labelled-statement.js"
}
}
}
],
"loc": {
"start": {
"line": 1,
"column": 1,
"program": "test-labelled-statement.js"
},
"end": {
"line": 65,
"column": 1,
"program": "test-labelled-statement.js"
}
}
}