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.4 KiB
JSON

{
"type": "File",
"start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}},
"program": {
"type": "Program",
"start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":16,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":16}},
"declarations": [
{
"type": "VariableDeclarator",
"start":4,"end":15,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":15}},
"id": {
"type": "Identifier",
"start":4,"end":15,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":15},"identifierName":"x"},
"name": "x",
"typeAnnotation": {
"type": "TypeAnnotation",
"start":5,"end":15,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":15}},
"typeAnnotation": {
"type": "StringLiteralTypeAnnotation",
"start":7,"end":15,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":15}},
"value": "string",
"raw": "\"string\""
}
}
},
"init": null
}
],
"kind": "var"
}
]
}
}