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

42 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": "module",
"interpreter": null,
"body": [
{
"type": "ImportDeclaration",
"start":0,"end":31,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":31}},
"specifiers": [
{
"type": "ImportDefaultSpecifier",
"start":7,"end":18,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":18}},
"local": {
"type": "Placeholder",
"start":7,"end":18,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":18}},
"name": {
"type": "Identifier",
"start":9,"end":16,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":16},"identifierName":"DEFAULT"},
"name": "DEFAULT"
},
"expectedNode": "Identifier"
}
}
],
"source": {
"type": "StringLiteral",
"start":24,"end":30,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":30}},
"extra": {
"rawValue": "file",
"raw": "\"file\""
},
"value": "file"
}
}
],
"directives": []
}
}