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

176 lines
4.1 KiB
JSON

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