swc/css/parser/tests/fixture/esbuild/misc/MvD7ThpMVIxU3dzF71Gpcg/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

103 lines
2.5 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 9,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 9,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 6,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 6,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 6,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoSelector",
"span": {
"start": 0,
"end": 6,
"ctxt": 0
},
"isElement": true,
"name": {
"type": "Text",
"span": {
"start": 2,
"end": 3,
"ctxt": 0
},
"value": "b",
"raw": "b"
},
"args": {
"type": "Tokens",
"span": {
"start": 4,
"end": 5,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 4,
"end": 5,
"ctxt": 0
},
"token": {
"Ident": {
"value": "c",
"raw": "c"
}
}
}
]
}
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 7,
"end": 9,
"ctxt": 0
},
"items": []
}
}
]
}