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

40 lines
1.4 KiB
JSON

{
"type": "File",
"start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}},
"program": {
"type": "Program",
"start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "LabeledStatement",
"start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}},
"body": {
"type": "WhileStatement",
"start":7,"end":31,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":31}},
"test": {
"type": "BooleanLiteral",
"start":14,"end":18,"loc":{"start":{"line":1,"column":14},"end":{"line":1,"column":18}},
"value": true
},
"body": {
"type": "BreakStatement",
"start":20,"end":31,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":31}},
"label": {
"type": "Identifier",
"start":26,"end":31,"loc":{"start":{"line":1,"column":26},"end":{"line":1,"column":31},"identifierName":"start"},
"name": "start"
}
}
},
"label": {
"type": "Identifier",
"start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5},"identifierName":"start"},
"name": "start"
}
}
],
"directives": []
}
}