228 lines
5.2 KiB
JSON

{
"type": "File",
"start": 0,
"end": 47,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 47
}
},
"range": [
0,
47
],
"program": {
"type": "Program",
"start": 0,
"end": 47,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 47
}
},
"range": [
0,
47
],
"sourceType": "script",
"body": [
{
"type": "SwitchStatement",
"start": 0,
"end": 47,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 47
}
},
"range": [
0,
47
],
"discriminant": {
"type": "Identifier",
"start": 8,
"end": 14,
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 14
}
},
"range": [
8,
14
],
"name": "answer"
},
"cases": [
{
"type": "SwitchCase",
"start": 18,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 45
}
},
"range": [
18,
45
],
"consequent": [
{
"type": "VariableDeclaration",
"start": 27,
"end": 38,
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 38
}
},
"range": [
27,
38
],
"declarations": [
{
"type": "VariableDeclarator",
"start": 31,
"end": 37,
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 37
}
},
"range": [
31,
37
],
"id": {
"type": "Identifier",
"start": 31,
"end": 32,
"loc": {
"start": {
"line": 1,
"column": 31
},
"end": {
"line": 1,
"column": 32
}
},
"range": [
31,
32
],
"name": "t"
},
"init": {
"type": "Literal",
"start": 35,
"end": 37,
"loc": {
"start": {
"line": 1,
"column": 35
},
"end": {
"line": 1,
"column": 37
}
},
"range": [
35,
37
],
"value": 42,
"rawValue": 42,
"raw": "42"
}
}
],
"kind": "let"
},
{
"type": "BreakStatement",
"start": 39,
"end": 45,
"loc": {
"start": {
"line": 1,
"column": 39
},
"end": {
"line": 1,
"column": 45
}
},
"range": [
39,
45
],
"label": null
}
],
"test": {
"type": "Literal",
"start": 23,
"end": 25,
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 25
}
},
"range": [
23,
25
],
"value": 42,
"rawValue": 42,
"raw": "42"
}
}
]
}
]
}
}