blob: c566b6bfacc292959a2854394ff2e9ba7474f16b [file] [log] [blame]
{
"type": "Program",
"body": [
{
"type": "SwitchStatement",
"discriminant": {
"type": "Identifier",
"name": "answer",
"range": [
8,
14
],
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 14
}
}
},
"cases": [
{
"type": "SwitchCase",
"test": {
"type": "Literal",
"value": 42,
"raw": "42",
"range": [
23,
25
],
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 25
}
}
},
"consequent": [
{
"type": "ExpressionStatement",
"expression": {
"type": "CallExpression",
"callee": {
"type": "Identifier",
"name": "bingo",
"range": [
41,
46
],
"loc": {
"start": {
"line": 1,
"column": 41
},
"end": {
"line": 1,
"column": 46
}
}
},
"arguments": [],
"range": [
41,
48
],
"loc": {
"start": {
"line": 1,
"column": 41
},
"end": {
"line": 1,
"column": 48
}
}
},
"leadingComments": [
{
"type": "Block",
"value": " perfect ",
"range": [
27,
40
],
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 40
}
}
}
],
"range": [
41,
49
],
"loc": {
"start": {
"line": 1,
"column": 41
},
"end": {
"line": 1,
"column": 49
}
}
}
],
"range": [
18,
49
],
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 49
}
}
}
],
"range": [
0,
50
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 50
}
}
}
],
"sourceType": "script",
"comments": [
{
"type": "Block",
"value": " perfect ",
"range": [
27,
40
],
"loc": {
"start": {
"line": 1,
"column": 27
},
"end": {
"line": 1,
"column": 40
}
}
}
],
"tokens": [
{
"type": "Keyword",
"value": "switch",
"range": [
0,
6
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 6
}
}
},
{
"type": "Punctuator",
"value": "(",
"range": [
7,
8
],
"loc": {
"start": {
"line": 1,
"column": 7
},
"end": {
"line": 1,
"column": 8
}
}
},
{
"type": "Identifier",
"value": "answer",
"range": [
8,
14
],
"loc": {
"start": {
"line": 1,
"column": 8
},
"end": {
"line": 1,
"column": 14
}
}
},
{
"type": "Punctuator",
"value": ")",
"range": [
14,
15
],
"loc": {
"start": {
"line": 1,
"column": 14
},
"end": {
"line": 1,
"column": 15
}
}
},
{
"type": "Punctuator",
"value": "{",
"range": [
16,
17
],
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 17
}
}
},
{
"type": "Keyword",
"value": "case",
"range": [
18,
22
],
"loc": {
"start": {
"line": 1,
"column": 18
},
"end": {
"line": 1,
"column": 22
}
}
},
{
"type": "Numeric",
"value": "42",
"range": [
23,
25
],
"loc": {
"start": {
"line": 1,
"column": 23
},
"end": {
"line": 1,
"column": 25
}
}
},
{
"type": "Punctuator",
"value": ":",
"range": [
25,
26
],
"loc": {
"start": {
"line": 1,
"column": 25
},
"end": {
"line": 1,
"column": 26
}
}
},
{
"type": "Identifier",
"value": "bingo",
"range": [
41,
46
],
"loc": {
"start": {
"line": 1,
"column": 41
},
"end": {
"line": 1,
"column": 46
}
}
},
{
"type": "Punctuator",
"value": "(",
"range": [
46,
47
],
"loc": {
"start": {
"line": 1,
"column": 46
},
"end": {
"line": 1,
"column": 47
}
}
},
{
"type": "Punctuator",
"value": ")",
"range": [
47,
48
],
"loc": {
"start": {
"line": 1,
"column": 47
},
"end": {
"line": 1,
"column": 48
}
}
},
{
"type": "Punctuator",
"value": "}",
"range": [
49,
50
],
"loc": {
"start": {
"line": 1,
"column": 49
},
"end": {
"line": 1,
"column": 50
}
}
}
],
"range": [
0,
50
],
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 50
}
}
}