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

96 lines
3.6 KiB
JSON

{
"type": "File",
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}},
"errors": [
"SyntaxError: Argument name clash (1:37)"
],
"program": {
"type": "Program",
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "FunctionDeclaration",
"start":0,"end":49,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":49}},
"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":49,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":49}},
"body": [
{
"type": "ExpressionStatement",
"start":29,"end":47,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":47}},
"expression": {
"type": "ObjectExpression",
"start":30,"end":45,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":45}},
"properties": [
{
"type": "ObjectMethod",
"start":32,"end":43,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":43}},
"method": true,
"key": {
"type": "Identifier",
"start":32,"end":33,"loc":{"start":{"line":1,"column":32},"end":{"line":1,"column":33},"identifierName":"b"},
"name": "b"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": false,
"params": [
{
"type": "Identifier",
"start":34,"end":35,"loc":{"start":{"line":1,"column":34},"end":{"line":1,"column":35},"identifierName":"t"},
"name": "t"
},
{
"type": "Identifier",
"start":37,"end":38,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":38},"identifierName":"t"},
"name": "t"
}
],
"body": {
"type": "BlockStatement",
"start":40,"end":43,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":43}},
"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": []
}
}