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

79 lines
1.7 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 11,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 11,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 8,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 8,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 8,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 0,
"end": 8,
"ctxt": 0
},
"text": {
"type": "Text",
"span": {
"start": 1,
"end": 8,
"ctxt": 0
},
"value": ",class",
"raw": "\\,class"
}
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 9,
"end": 11,
"ctxt": 0
},
"items": []
}
}
]
}