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

67 lines
2.3 KiB
JSON

{
"type": "File",
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
"errors": [
"SyntaxError: Argument name clash (1:15)"
],
"program": {
"type": "Program",
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":36,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":36}},
"expression": {
"type": "FunctionExpression",
"start":1,"end":35,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":35}},
"id": {
"type": "Identifier",
"start":10,"end":11,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":11},"identifierName":"a"},
"name": "a"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":12,"end":13,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":13},"identifierName":"t"},
"name": "t"
},
{
"type": "Identifier",
"start":15,"end":16,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":16},"identifierName":"t"},
"name": "t"
}
],
"body": {
"type": "BlockStatement",
"start":18,"end":35,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":35}},
"body": [],
"directives": [
{
"type": "Directive",
"start":20,"end":33,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":33}},
"value": {
"type": "DirectiveLiteral",
"start":20,"end":32,"loc":{"start":{"line":1,"column":20},"end":{"line":1,"column":32}},
"value": "use strict",
"extra": {
"raw": "\"use strict\"",
"rawValue": "use strict"
}
}
}
]
},
"extra": {
"parenthesized": true,
"parenStart": 0
}
}
}
],
"directives": []
}
}