swc/crates/swc_css_parser/tests/recovery/bad-url-token/double-quotes/output.json

175 lines
4.1 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 57,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 56,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Identifier",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"value": "div",
"raw": "div"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 4,
"end": 56,
"ctxt": 0
},
"value": [
{
"type": "Tokens",
"span": {
"start": 10,
"end": 37,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 10,
"end": 20,
"ctxt": 0
},
"token": {
"Ident": {
"value": "background",
"raw": "background"
}
}
},
{
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 22,
"end": 37,
"ctxt": 0
},
"token": {
"BadUrl": {
"name": "url",
"raw_name": "url",
"value": "image\".png",
"raw_value": "image\".png"
}
}
}
]
},
{
"type": "Declaration",
"span": {
"start": 43,
"end": 53,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 43,
"end": 48,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Identifier",
"span": {
"start": 50,
"end": 53,
"ctxt": 0
},
"value": "red",
"raw": "red"
}
],
"important": null
}
]
}
}
]
}