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

46 lines
1.6 KiB
JSON

{
"type": "File",
"start":0,"end":56,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":29}},
"program": {
"type": "Program",
"start":0,"end":56,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":29}},
"sourceType": "module",
"interpreter": {
"type": "InterpreterDirective",
"start":0,"end":25,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":25}},
"value": "/usr/bin/env babel-node"
},
"body": [
{
"type": "ImportDeclaration",
"start":27,"end":56,"loc":{"start":{"line":3,"column":0},"end":{"line":3,"column":29}},
"specifiers": [
{
"type": "ImportSpecifier",
"start":35,"end":40,"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":13}},
"imported": {
"type": "Identifier",
"start":35,"end":40,"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":13},"identifierName":"spawn"},
"name": "spawn"
},
"local": {
"type": "Identifier",
"start":35,"end":40,"loc":{"start":{"line":3,"column":8},"end":{"line":3,"column":13},"identifierName":"spawn"},
"name": "spawn"
}
}
],
"source": {
"type": "StringLiteral",
"start":47,"end":55,"loc":{"start":{"line":3,"column":20},"end":{"line":3,"column":28}},
"extra": {
"rawValue": "foobar",
"raw": "'foobar'"
},
"value": "foobar"
}
}
],
"directives": []
}
}