mirror of
https://github.com/swc-project/swc.git
synced 2024-12-24 14:16:12 +03:00
0b76d29ae4
swc_css_ast: - Add `SelectorLsit`. - Use `SelectorList` instead of `Vec<ComplexSelector>`.
79 lines
1.7 KiB
JSON
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": "IdSelector",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 8,
|
|
"ctxt": 0
|
|
},
|
|
"text": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 8,
|
|
"ctxt": 0
|
|
},
|
|
"value": ",hash",
|
|
"raw": "\\2chash"
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "Block",
|
|
"span": {
|
|
"start": 9,
|
|
"end": 11,
|
|
"ctxt": 0
|
|
},
|
|
"items": []
|
|
}
|
|
}
|
|
]
|
|
}
|