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

82 lines
2.9 KiB
JSON

{
"type": "File",
"start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}},
"errors": [
"SyntaxError: Argument name clash (1:43)"
],
"program": {
"type": "Program",
"start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":52,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":52}},
"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":52,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":52}},
"body": [
{
"type": "FunctionDeclaration",
"start":29,"end":49,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":49}},
"id": {
"type": "Identifier",
"start":38,"end":39,"loc":{"start":{"line":1,"column":38},"end":{"line":1,"column":39},"identifierName":"b"},
"name": "b"
},
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":40,"end":41,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":41},"identifierName":"t"},
"name": "t"
},
{
"type": "Identifier",
"start":43,"end":44,"loc":{"start":{"line":1,"column":43},"end":{"line":1,"column":44},"identifierName":"t"},
"name": "t"
}
],
"body": {
"type": "BlockStatement",
"start":46,"end":49,"loc":{"start":{"line":1,"column":46},"end":{"line":1,"column":49}},
"body": [],
"directives": []
}
},
{
"type": "EmptyStatement",
"start":49,"end":50,"loc":{"start":{"line":1,"column":49},"end":{"line":1,"column":50}}
}
],
"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": []
}
}