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":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
"program": {
"type": "Program",
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "ImportDeclaration",
"start":0,"end":39,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":39}},
"specifiers": [
{
"type": "ImportSpecifier",
"start":9,"end":23,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":23}},
"imported": {
"type": "Identifier",
"start":9,"end":16,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":16},"identifierName":"encrypt"},
"name": "encrypt"
},
"local": {
"type": "Identifier",
"start":20,"end":23,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":23},"identifierName":"enc"},
"name": "enc"
}
}
],
"source": {
"type": "StringLiteral",
"start":31,"end":39,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":39}},
"extra": {
"rawValue": "crypto",
"raw": "\"crypto\""
},
"value": "crypto"
}
}
],
"directives": []
}
}