swc/crates/swc_css_parser/tests/recovery/styled-jsx/2/output.json

218 lines
5.7 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": 16,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 16,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 2,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 0,
"end": 2,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
]
},
{
"type": "Combinator",
"span": {
"start": 2,
"end": 3,
"ctxt": 0
},
"value": " "
},
{
"type": "CompoundSelector",
"span": {
"start": 3,
"end": 16,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoClassSelector",
"span": {
"start": 3,
"end": 16,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 4,
"end": 10,
"ctxt": 0
},
"value": "global",
"raw": "global"
},
"children": [
{
"type": "PreservedToken",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"token": {
"Delim": {
"value": ">"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 12,
"end": 13,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"token": {
"Ident": {
"value": "b",
"raw": "b"
}
}
}
]
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 17,
"end": 66,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 23,
"end": 63,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 23,
"end": 33,
"ctxt": 0
},
"value": "flex-basis",
"raw": "flex-basis"
},
"value": [
{
"type": "Ident",
"span": {
"start": 35,
"end": 62,
"ctxt": 0
},
"value": "__styled-jsx-placeholder__0",
"raw": "__styled-jsx-placeholder__0"
},
{
"type": "PreservedToken",
"span": {
"start": 62,
"end": 63,
"ctxt": 0
},
"token": {
"Delim": {
"value": "%"
}
}
}
],
"important": null
}
]
}
}
]
}