swc/crates/swc_css_parser/tests/recovery/number/output.json

324 lines
8.6 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": "Identifier",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 2,
"end": 70,
"ctxt": 0
},
"value": [
{
"type": "Declaration",
"span": {
"start": 8,
"end": 31,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 8,
"end": 12,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 14,
"end": 69,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 14,
"end": 21,
"ctxt": 0
},
"token": {
"Dimension": {
"value": 10.1,
"raw_value": "10.10",
"unit": "px",
"raw_unit": "px",
"type": "number"
}
}
},
{
"span": {
"start": 21,
"end": 26,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"span": {
"start": 26,
"end": 31,
"ctxt": 0
},
"token": {
"Ident": {
"value": "prop1",
"raw": "prop1"
}
}
},
{
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 33,
"end": 37,
"ctxt": 0
},
"token": {
"Dimension": {
"value": 10.0,
"raw_value": "10",
"unit": "px",
"raw_unit": "px",
"type": "integer"
}
}
},
{
"span": {
"start": 37,
"end": 42,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"span": {
"start": 42,
"end": 47,
"ctxt": 0
},
"token": {
"Ident": {
"value": "prop2",
"raw": "prop2"
}
}
},
{
"span": {
"start": 47,
"end": 48,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 48,
"end": 49,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 49,
"end": 51,
"ctxt": 0
},
"token": {
"Num": {
"value": 10.0,
"raw": "10",
"type": "integer"
}
}
},
{
"span": {
"start": 51,
"end": 56,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"span": {
"start": 56,
"end": 61,
"ctxt": 0
},
"token": {
"Ident": {
"value": "prop3",
"raw": "prop3"
}
}
},
{
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 62,
"end": 63,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 63,
"end": 68,
"ctxt": 0
},
"token": {
"Num": {
"value": 10.1,
"raw": "10.10",
"type": "number"
}
}
},
{
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n"
}
}
}
]
}
],
"important": null
}
]
}
}
]
}