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

111 lines
4.3 KiB
JSON

{
"type": "File",
"start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},
"program": {
"type": "Program",
"start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},
"expression": {
"type": "JSXElement",
"start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},
"openingElement": {
"type": "JSXOpeningElement",
"start":0,"end":40,"loc":{"start":{"line":1,"column":0},"end":{"line":1,"column":40}},
"name": {
"type": "JSXIdentifier",
"start":1,"end":2,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":2}},
"name": "a"
},
"attributes": [
{
"type": "JSXAttribute",
"start":3,"end":10,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":10}},
"name": {
"type": "JSXIdentifier",
"start":3,"end":4,"loc":{"start":{"line":1,"column":3},"end":{"line":1,"column":4}},
"name": "b"
},
"value": {
"type": "JSXExpressionContainer",
"start":5,"end":10,"loc":{"start":{"line":1,"column":5},"end":{"line":1,"column":10}},
"expression": {
"type": "StringLiteral",
"start":6,"end":9,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":9}},
"extra": {
"rawValue": " ",
"raw": "\" \""
},
"value": " "
}
}
},
{
"type": "JSXAttribute",
"start":11,"end":16,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":16}},
"name": {
"type": "JSXIdentifier",
"start":11,"end":12,"loc":{"start":{"line":1,"column":11},"end":{"line":1,"column":12}},
"name": "c"
},
"value": {
"type": "StringLiteral",
"start":13,"end":16,"loc":{"start":{"line":1,"column":13},"end":{"line":1,"column":16}},
"extra": {
"rawValue": " ",
"raw": "\" \""
},
"value": " "
}
},
{
"type": "JSXAttribute",
"start":17,"end":26,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":26}},
"name": {
"type": "JSXIdentifier",
"start":17,"end":18,"loc":{"start":{"line":1,"column":17},"end":{"line":1,"column":18}},
"name": "d"
},
"value": {
"type": "StringLiteral",
"start":19,"end":26,"loc":{"start":{"line":1,"column":19},"end":{"line":1,"column":26}},
"extra": {
"rawValue": "&",
"raw": "\"&\""
},
"value": "&"
}
},
{
"type": "JSXAttribute",
"start":27,"end":37,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":37}},
"name": {
"type": "JSXIdentifier",
"start":27,"end":28,"loc":{"start":{"line":1,"column":27},"end":{"line":1,"column":28}},
"name": "e"
},
"value": {
"type": "StringLiteral",
"start":29,"end":37,"loc":{"start":{"line":1,"column":29},"end":{"line":1,"column":37}},
"extra": {
"rawValue": "&ampr;",
"raw": "\"&ampr;\""
},
"value": "&ampr;"
}
}
],
"selfClosing": true
},
"closingElement": null,
"children": []
}
}
],
"directives": []
}
}