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

60 lines
2.2 KiB
JSON

{
"type": "File",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},
"program": {
"type": "Program",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "TryStatement",
"start":0,"end":28,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":28}},
"block": {
"type": "BlockStatement",
"start":4,"end":7,"loc":{"start":{"line":1,"column":4},"end":{"line":1,"column":7}},
"body": [],
"directives": []
},
"handler": {
"type": "CatchClause",
"start":8,"end":28,"loc":{"start":{"line":1,"column":8},"end":{"line":1,"column":28}},
"param": {
"type": "Identifier",
"start":15,"end":16,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":16},"identifierName":"e"},
"name": "e"
},
"body": {
"type": "BlockStatement",
"start":18,"end":28,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":28}},
"body": [
{
"type": "ExpressionStatement",
"start":20,"end":26,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":26}},
"expression": {
"type": "CallExpression",
"start":20,"end":26,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":26}},
"callee": {
"type": "Identifier",
"start":20,"end":23,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":23},"identifierName":"say"},
"name": "say"
},
"arguments": [
{
"type": "Identifier",
"start":24,"end":25,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":25},"identifierName":"e"},
"name": "e"
}
]
}
}
],
"directives": []
}
},
"finalizer": null
}
],
"directives": []
}
}