swc/css/parser/tests/fixture/esbuild/misc/kubgOdBUY3iT30KfPRcbsA/output.json
Alexander Akait 0b76d29ae4
feat(css/ast): Add SelectorList (#2639)
swc_css_ast:
 - Add `SelectorLsit`.
 - Use `SelectorList` instead of `Vec<ComplexSelector>`.
2021-11-04 09:54:55 +00:00

109 lines
2.7 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 14,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 14,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 12,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 12,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 12,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "AttributeSelector",
"span": {
"start": 0,
"end": 12,
"ctxt": 0
},
"name": {
"type": "NamespacedName",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"prefix": {
"type": "Text",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"value": "a",
"raw": "a"
},
"name": {
"type": "Text",
"span": {
"start": 3,
"end": 4,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"op": "|=",
"value": {
"type": "String",
"span": {
"start": 8,
"end": 11,
"ctxt": 0
},
"value": "c",
"raw": "\"c\""
},
"modifier": null
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 12,
"end": 14,
"ctxt": 0
},
"items": []
}
}
]
}