swc/crates/swc_css_parser/tests/recovery/whitespaces/output.json
2022-01-31 05:02:30 +00:00

246 lines
5.8 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 67,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 66,
"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": "TypeSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 2,
"end": 66,
"ctxt": 0
},
"value": [
{
"type": "Declaration",
"span": {
"start": 8,
"end": 24,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 8,
"end": 12,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 20,
"end": 39,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 20,
"end": 24,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 25,
"end": 29,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 25,
"end": 29,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 35,
"end": 52,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 35,
"end": 39,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 40,
"end": 42,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 40,
"end": 42,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n\n"
}
}
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 48,
"end": 64,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 48,
"end": 52,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 63,
"end": 64,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 63,
"end": 64,
"ctxt": 0
},
"token": "Semi"
}
]
}
],
"important": null
}
]
}
}
]
}