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

71 lines
2.7 KiB
JSON

{
"type": "File",
"start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}},
"program": {
"type": "Program",
"start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ClassDeclaration",
"start":0,"end":50,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":50}},
"id": {
"type": "Identifier",
"start":6,"end":9,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":9},"identifierName":"Foo"},
"name": "Foo"
},
"superClass": null,
"body": {
"type": "ClassBody",
"start":10,"end":50,"loc":{"start":{"line":1,"column":10},"end":{"line":1,"column":50}},
"body": [
{
"type": "ClassMethod",
"start":12,"end":48,"loc":{"start":{"line":1,"column":12},"end":{"line":1,"column":48}},
"static": false,
"key": {
"type": "Identifier",
"start":18,"end":21,"loc":{"start":{"line":1,"column":18},"end":{"line":1,"column":21},"identifierName":"bar"},
"name": "bar"
},
"computed": false,
"kind": "method",
"id": null,
"generator": false,
"async": true,
"params": [
{
"type": "Identifier",
"start":22,"end":29,"loc":{"start":{"line":1,"column":22},"end":{"line":1,"column":29},"identifierName":"promise"},
"name": "promise"
}
],
"body": {
"type": "BlockStatement",
"start":31,"end":48,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":48}},
"body": [
{
"type": "ExpressionStatement",
"start":33,"end":46,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":46}},
"expression": {
"type": "AwaitExpression",
"start":33,"end":46,"loc":{"start":{"line":1,"column":33},"end":{"line":1,"column":46}},
"argument": {
"type": "Identifier",
"start":39,"end":46,"loc":{"start":{"line":1,"column":39},"end":{"line":1,"column":46},"identifierName":"promise"},
"name": "promise"
}
}
}
],
"directives": []
}
}
]
}
}
],
"directives": []
}
}