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

167 lines
3.8 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 68,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 67,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 3,
"end": 67,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 9,
"end": 16,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 9,
"end": 13,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 21,
"end": 31,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 21,
"end": 25,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 36,
"end": 44,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 36,
"end": 40,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 49,
"end": 65,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 49,
"end": 53,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [],
"important": null
}
]
}
}
]
}