Huáng Jùnliàng dc7c5640e9
Compact parser fixture loc info (#11322)
* chore: compact loc information in parser fixtures

* chore: update test fixtures
2020-03-23 20:10:29 -04:00

39 lines
1.2 KiB
JSON

{
"type": "File",
"start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},
"errors": [
"SyntaxError: Unsyntactic continue (1:22)"
],
"program": {
"type": "Program",
"start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "SwitchStatement",
"start":0,"end":33,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":33}},
"discriminant": {
"type": "Identifier",
"start":8,"end":9,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":9},"identifierName":"x"},
"name": "x"
},
"cases": [
{
"type": "SwitchCase",
"start":13,"end":31,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":31}},
"consequent": [
{
"type": "ContinueStatement",
"start":22,"end":31,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":31}},
"label": null
}
],
"test": null
}
]
}
],
"directives": []
}
}