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

88 lines
3.4 KiB
JSON

{
"type": "File",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}},
"program": {
"type": "Program",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}},
"expression": {
"type": "JSXElement",
"start":0,"end":53,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":53}},
"openingElement": {
"type": "JSXOpeningElement",
"start":0,"end":47,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":47}},
"name": {
"type": "JSXIdentifier",
"start":1,"end":4,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":4}},
"name": "div"
},
"attributes": [
{
"type": "JSXAttribute",
"start":5,"end":18,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":18}},
"name": {
"type": "JSXIdentifier",
"start":5,"end":8,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":8}},
"name": "pre"
},
"value": {
"type": "StringLiteral",
"start":9,"end":18,"loc":{"start":{"line":1,"column":9},"end":{"line":1,"column":18}},
"extra": {
"rawValue": "leading",
"raw": "\"leading\""
},
"value": "leading"
}
},
{
"type": "JSXAttribute",
"start":19,"end":35,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":35}},
"name": {
"type": "JSXIdentifier",
"start":19,"end":23,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":23}},
"name": "pre2"
},
"value": {
"type": "StringLiteral",
"start":24,"end":35,"loc":{"start":{"line":1,"column":24},"end":{"line":1,"column":35}},
"extra": {
"rawValue": "attribute",
"raw": "\"attribute\""
},
"value": "attribute"
}
},
{
"type": "JSXSpreadAttribute",
"start":36,"end":46,"loc":{"start":{"line":1,"column":36},"end":{"line":1,"column":46}},
"argument": {
"type": "Identifier",
"start":40,"end":45,"loc":{"start":{"line":1,"column":40},"end":{"line":1,"column":45},"identifierName":"props"},
"name": "props"
}
}
],
"selfClosing": false
},
"closingElement": {
"type": "JSXClosingElement",
"start":47,"end":53,"loc":{"start":{"line":1,"column":47},"end":{"line":1,"column":53}},
"name": {
"type": "JSXIdentifier",
"start":49,"end":52,"loc":{"start":{"line":1,"column":49},"end":{"line":1,"column":52}},
"name": "div"
}
},
"children": []
}
}
],
"directives": []
}
}