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

69 lines
2.5 KiB
JSON

{
"type": "File",
"start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}},
"program": {
"type": "Program",
"start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}},
"expression": {
"type": "JSXElement",
"start":0,"end":41,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":41}},
"openingElement": {
"type": "JSXOpeningElement",
"start":0,"end":5,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":5}},
"name": {
"type": "JSXIdentifier",
"start":1,"end":4,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":4}},
"name": "div"
},
"attributes": [],
"selfClosing": false
},
"closingElement": {
"type": "JSXClosingElement",
"start":35,"end":41,"loc":{"start":{"line":1,"column":35},"end":{"line":1,"column":41}},
"name": {
"type": "JSXIdentifier",
"start":37,"end":40,"loc":{"start":{"line":1,"column":37},"end":{"line":1,"column":40}},
"name": "div"
}
},
"children": [
{
"type": "JSXElement",
"start":5,"end":11,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":11}},
"openingElement": {
"type": "JSXOpeningElement",
"start":5,"end":11,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":11}},
"name": {
"type": "JSXIdentifier",
"start":6,"end":8,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":8}},
"name": "br"
},
"attributes": [],
"selfClosing": true
},
"closingElement": null,
"children": []
},
{
"type": "JSXText",
"start":11,"end":35,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":35}},
"extra": {
"rawValue": "7x invalid-js-identifier",
"raw": "7x invalid-js-identifier"
},
"value": "7x invalid-js-identifier"
}
]
}
}
],
"directives": []
}
}