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

53 lines
2.0 KiB
JSON

{
"type": "File",
"start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":17}},
"program": {
"type": "Program",
"start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":17}},
"sourceType": "script",
"interpreter": null,
"body": [
{
"type": "ExpressionStatement",
"start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":17}},
"expression": {
"type": "JSXElement",
"start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":17}},
"openingElement": {
"type": "JSXOpeningElement",
"start":0,"end":62,"loc":{"start":{"line":1,"column":0},"end":{"line":3,"column":17}},
"name": {
"type": "JSXIdentifier",
"start":1,"end":5,"loc":{"start":{"line":1,"column":1},"end":{"line":1,"column":5}},
"name": "path"
},
"attributes": [
{
"type": "JSXAttribute",
"start":6,"end":60,"loc":{"start":{"line":1,"column":6},"end":{"line":3,"column":15}},
"name": {
"type": "JSXIdentifier",
"start":6,"end":7,"loc":{"start":{"line":1,"column":6},"end":{"line":1,"column":7}},
"name": "d"
},
"value": {
"type": "StringLiteral",
"start":8,"end":60,"loc":{"start":{"line":1,"column":8},"end":{"line":3,"column":15}},
"extra": {
"rawValue": "M230 80\n\t\tA 45 45, 0, 1, 0, 275 125\n L 275 80 Z",
"raw": "\"M230 80\n\t\tA 45 45, 0, 1, 0, 275 125\n L 275 80 Z\""
},
"value": "M230 80\n\t\tA 45 45, 0, 1, 0, 275 125\n L 275 80 Z"
}
}
],
"selfClosing": true
},
"closingElement": null,
"children": []
}
}
],
"directives": []
}
}