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

50 lines
1.9 KiB
JSON

{
"type": "File",
"start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}},
"program": {
"type": "Program",
"start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "IfStatement",
"start":0,"end":42,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":42}},
"test": {
"type": "Identifier",
"start":4,"end":11,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":11},"identifierName":"morning"},
"name": "morning"
},
"consequent": {
"type": "ExpressionStatement",
"start":13,"end":27,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":27}},
"expression": {
"type": "CallExpression",
"start":13,"end":26,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":26}},
"callee": {
"type": "Identifier",
"start":13,"end":24,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":24},"identifierName":"goodMorning"},
"name": "goodMorning"
},
"arguments": []
}
},
"alternate": {
"type": "ExpressionStatement",
"start":33,"end":42,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":42}},
"expression": {
"type": "CallExpression",
"start":33,"end":42,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":42}},
"callee": {
"type": "Identifier",
"start":33,"end":40,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":40},"identifierName":"goodDay"},
"name": "goodDay"
},
"arguments": []
}
}
}
],
"directives": []
}
}