mirror of
https://github.com/hanzoai/babel.git
synced 2026-09-24 16:56:45 +00:00
59 lines
2.3 KiB
JSON
59 lines
2.3 KiB
JSON
{
|
|
"type": "File",
|
|
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
|
|
"program": {
|
|
"type": "Program",
|
|
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
|
|
"sourceType": "script",
|
|
"interpreter": null,
|
|
"body": [
|
|
{
|
|
"type": "SwitchStatement",
|
|
"start":0,"end":41,"loc":{"start":{"line":1,"column":0,"index":0},"end":{"line":1,"column":41,"index":41}},
|
|
"discriminant": {
|
|
"type": "Identifier",
|
|
"start":8,"end":14,"loc":{"start":{"line":1,"column":8,"index":8},"end":{"line":1,"column":14,"index":14},"identifierName":"answer"},
|
|
"name": "answer"
|
|
},
|
|
"cases": [
|
|
{
|
|
"type": "SwitchCase",
|
|
"start":18,"end":39,"loc":{"start":{"line":1,"column":18,"index":18},"end":{"line":1,"column":39,"index":39}},
|
|
"consequent": [
|
|
{
|
|
"type": "ExpressionStatement",
|
|
"start":27,"end":32,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":32,"index":32}},
|
|
"expression": {
|
|
"type": "CallExpression",
|
|
"start":27,"end":31,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":31,"index":31}},
|
|
"callee": {
|
|
"type": "Identifier",
|
|
"start":27,"end":29,"loc":{"start":{"line":1,"column":27,"index":27},"end":{"line":1,"column":29,"index":29},"identifierName":"hi"},
|
|
"name": "hi"
|
|
},
|
|
"arguments": []
|
|
}
|
|
},
|
|
{
|
|
"type": "BreakStatement",
|
|
"start":33,"end":39,"loc":{"start":{"line":1,"column":33,"index":33},"end":{"line":1,"column":39,"index":39}},
|
|
"label": null
|
|
}
|
|
],
|
|
"test": {
|
|
"type": "NumericLiteral",
|
|
"start":23,"end":25,"loc":{"start":{"line":1,"column":23,"index":23},"end":{"line":1,"column":25,"index":25}},
|
|
"extra": {
|
|
"rawValue": 42,
|
|
"raw": "42"
|
|
},
|
|
"value": 42
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"directives": []
|
|
}
|
|
}
|