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.3 KiB
JSON

{
"type": "File",
"start":0,"end":59,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":59}},
"program": {
"type": "Program",
"start":0,"end":59,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":59}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":59,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":59}},
"expression": {
"type": "JSXFragment",
"start":0,"end":59,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":59}},
"openingFragment": {
"type": "JSXOpeningFragment",
"start":0,"end":2,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":2}}
},
"closingFragment": {
"type": "JSXClosingFragment",
"start":56,"end":59,"loc":{"start":{"line":1,"column":56},"end":{"line":1,"column":59}}
},
"children": [
{
"type": "JSXElement",
"start":2,"end":23,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":23}},
"openingElement": {
"type": "JSXOpeningElement",
"start":2,"end":7,"loc":{"start":{"line":1,"column":2},"end":{"line":1,"column":7}},
"name": {
"type": "JSXIdentifier",
"start":3,"end":6,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":6}},
"name": "div"
},
"attributes": [],
"selfClosing": false
},
"closingElement": {
"type": "JSXClosingElement",
"start":17,"end":23,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":23}},
"name": {
"type": "JSXIdentifier",
"start":19,"end":22,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":22}},
"name": "div"
}
},
"children": [
{
"type": "JSXText",
"start":7,"end":17,"loc":{"start":{"line":1,"column":7},"end":{"line":1,"column":17}},
"extra": {
"rawValue": "JSXElement",
"raw": "JSXElement"
},
"value": "JSXElement"
}
]
},
{
"type": "JSXText",
"start":23,"end":30,"loc":{"start":{"line":1,"column":23},"end":{"line":1,"column":30}},
"extra": {
"rawValue": "JSXText",
"raw": "JSXText"
},
"value": "JSXText"
},
{
"type": "JSXExpressionContainer",
"start":30,"end":56,"loc":{"start":{"line":1,"column":30},"end":{"line":1,"column":56}},
"expression": {
"type": "StringLiteral",
"start":31,"end":55,"loc":{"start":{"line":1,"column":31},"end":{"line":1,"column":55}},
"extra": {
"rawValue": "JSXExpressionContainer",
"raw": "'JSXExpressionContainer'"
},
"value": "JSXExpressionContainer"
}
}
]
}
}
],
"directives": []
}
}