swc/crates/swc_css_parser/tests/recovery/number/output.json
2022-02-14 06:19:02 +00:00

241 lines
5.9 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 70,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 70,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 2,
"end": 70,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 8,
"end": 68,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 8,
"end": 12,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Length",
"span": {
"start": 14,
"end": 21,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 14,
"end": 19,
"ctxt": 0
},
"value": 10.1,
"raw": "10.10"
},
"unit": {
"type": "Ident",
"span": {
"start": 19,
"end": 21,
"ctxt": 0
},
"value": "px",
"raw": "px"
}
},
{
"type": "Ident",
"span": {
"start": 26,
"end": 31,
"ctxt": 0
},
"value": "prop1",
"raw": "prop1"
},
{
"type": "PreservedToken",
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "Length",
"span": {
"start": 33,
"end": 37,
"ctxt": 0
},
"value": {
"type": "Number",
"span": {
"start": 33,
"end": 35,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
},
"unit": {
"type": "Ident",
"span": {
"start": 35,
"end": 37,
"ctxt": 0
},
"value": "px",
"raw": "px"
}
},
{
"type": "Ident",
"span": {
"start": 42,
"end": 47,
"ctxt": 0
},
"value": "prop2",
"raw": "prop2"
},
{
"type": "PreservedToken",
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "Number",
"span": {
"start": 49,
"end": 51,
"ctxt": 0
},
"value": 10.0,
"raw": "10"
},
{
"type": "Ident",
"span": {
"start": 56,
"end": 61,
"ctxt": 0
},
"value": "prop3",
"raw": "prop3"
},
{
"type": "PreservedToken",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "Number",
"span": {
"start": 63,
"end": 68,
"ctxt": 0
},
"value": 10.1,
"raw": "10.10"
}
],
"important": null
}
]
}
}
]
}