swc/crates/swc_css_parser/tests/recovery/at-rule/no-semi/output.json

176 lines
4.1 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 44,
"ctxt": 0
},
"rules": [
{
"type": "AtRule",
"span": {
"start": 1,
"end": 44,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 2,
"end": 7,
"ctxt": 0
},
"value": "media",
"raw": "media"
},
"prelude": {
"type": "MediaQueryList",
"span": {
"start": 8,
"end": 14,
"ctxt": 0
},
"queries": [
{
"type": "MediaQuery",
"span": {
"start": 8,
"end": 14,
"ctxt": 0
},
"modifier": null,
"mediaType": {
"type": "Ident",
"span": {
"start": 8,
"end": 14,
"ctxt": 0
},
"value": "screen",
"raw": "screen"
},
"keyword": null,
"condition": null
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 15,
"end": 44,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "AtRule",
"span": {
"start": 16,
"end": 44,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 17,
"end": 24,
"ctxt": 0
},
"value": "content",
"raw": "content"
},
"prelude": {
"type": "ListOfComponentValues",
"span": {
"start": 24,
"end": 44,
"ctxt": 0
},
"children": [
{
"type": "PreservedToken",
"span": {
"start": 24,
"end": 25,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 25,
"end": 27,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n\n"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 27,
"end": 35,
"ctxt": 0
},
"token": {
"AtKeyword": {
"value": "charset",
"raw": "charset"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 35,
"end": 36,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 36,
"end": 43,
"ctxt": 0
},
"token": {
"String": {
"value": "UTF-8",
"raw": "\"UTF-8\""
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 43,
"end": 44,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n"
}
}
}
]
},
"block": null
}
]
}
}
]
}