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

86 lines
3.1 KiB
JSON

{
"type": "File",
"start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},
"errors": [
"SyntaxError: Argument name clash (1:44)"
],
"program": {
"type": "Program",
"start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":54,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":54}},
"id": {
"type": "Identifier",
"start":9,"end":10,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":10},"identifierName":"a"},
"name": "a"
},
"generator": false,
"async": false,
"params": [],
"body": {
"type": "BlockStatement",
"start":13,"end":54,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":54}},
"body": [
{
"type": "ExpressionStatement",
"start":29,"end":52,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":52}},
"expression": {
"type": "FunctionExpression",
"start":30,"end":50,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":50}},
"id": {
"type": "Identifier",
"start":39,"end":40,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":40},"identifierName":"b"},
"name": "b"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":41,"end":42,"loc":{"start":{"line":1,"column":41},"end":{"line":1,"column":42},"identifierName":"t"},
"name": "t"
},
{
"type": "Identifier",
"start":44,"end":45,"loc":{"start":{"line":1,"column":44},"end":{"line":1,"column":45},"identifierName":"t"},
"name": "t"
}
],
"body": {
"type": "BlockStatement",
"start":47,"end":50,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":50}},
"body": [],
"directives": []
},
"extra": {
"parenthesized": true,
"parenStart": 29
}
}
}
],
"directives": [
{
"type": "Directive",
"start":15,"end":28,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":28}},
"value": {
"type": "DirectiveLiteral",
"start":15,"end":27,"loc":{"start":{"line":1,"column":15},"end":{"line":1,"column":27}},
"value": "use strict",
"extra": {
"raw": "\"use strict\"",
"rawValue": "use strict"
}
}
}
]
}
}
],
"directives": []
}
}