swc/crates/swc_css_parser/tests/recovery/value/quotes/output.json
2022-12-06 01:58:29 +00:00

189 lines
4.5 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 41,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 40,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 10,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 10,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 10,
"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": "p",
"raw": "p"
}
}
},
"subclassSelectors": [
{
"type": "PseudoElementSelector",
"span": {
"start": 2,
"end": 10,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 4,
"end": 10,
"ctxt": 0
},
"value": "before",
"raw": "before"
},
"children": null
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 11,
"end": 40,
"ctxt": 0
},
"name": {
"type": "PreservedToken",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"token": "LBrace"
},
"value": [
{
"type": "Declaration",
"span": {
"start": 17,
"end": 39,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 17,
"end": 24,
"ctxt": 0
},
"value": "content",
"raw": "content"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 26,
"end": 30,
"ctxt": 0
},
"token": {
"BadString": {
"raw": "\"tes"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 30,
"end": 35,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 35,
"end": 36,
"ctxt": 0
},
"token": {
"Ident": {
"value": "t",
"raw": "t"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 36,
"end": 38,
"ctxt": 0
},
"token": {
"BadString": {
"raw": "\";"
}
}
}
],
"important": null
}
]
}
}
]
}