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

70 lines
2.7 KiB
JSON

{
"type": "File",
"start":0,"end":44,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
"program": {
"type": "Program",
"start":0,"end":44,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
"sourceType": "module",
"interpreter": null,
"body": [
{
"type": "VariableDeclaration",
"start":0,"end":44,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":2}},
"declarations": [
{
"type": "VariableDeclarator",
"start":6,"end":43,"loc":{"start":{"line":1,"column":6},"end":{"line":3,"column":1}},
"id": {
"type": "Identifier",
"start":6,"end":9,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":9},"identifierName":"map"},
"name": "map"
},
"init": {
"type": "ObjectExpression",
"start":12,"end":43,"loc":{"start":{"line":1,"column":12},"end":{"line":3,"column":1}},
"properties": [
{
"type": "ObjectProperty",
"start":16,"end":41,"loc":{"start":{"line":2,"column":2},"end":{"line":2,"column":27}},
"method": false,
"computed": true,
"key": {
"type": "BinaryExpression",
"start":17,"end":26,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":12}},
"left": {
"type": "Identifier",
"start":17,"end":20,"loc":{"start":{"line":2,"column":3},"end":{"line":2,"column":6},"identifierName":"age"},
"name": "age"
},
"operator": "<=",
"right": {
"type": "NumericLiteral",
"start":24,"end":26,"loc":{"start":{"line":2,"column":10},"end":{"line":2,"column":12}},
"extra": {
"rawValue": 17,
"raw": "17"
},
"value": 17
}
},
"shorthand": false,
"value": {
"type": "StringLiteral",
"start":30,"end":41,"loc":{"start":{"line":2,"column":16},"end":{"line":2,"column":27}},
"extra": {
"rawValue": "Too young",
"raw": "'Too young'"
},
"value": "Too young"
}
}
]
}
}
],
"kind": "const"
}
],
"directives": []
}
}