mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
0b76d29ae4
swc_css_ast: - Add `SelectorLsit`. - Use `SelectorList` instead of `Vec<ComplexSelector>`.
134 lines
2.9 KiB
JSON
134 lines
2.9 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 19,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "StyleRule",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 18,
|
|
"ctxt": 0
|
|
},
|
|
"selectors": {
|
|
"type": "SelectorList",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 1,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "ComplexSelector",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 1,
|
|
"ctxt": 0
|
|
},
|
|
"selectors": [
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 1,
|
|
"ctxt": 0
|
|
},
|
|
"hasNestPrefix": false,
|
|
"combinator": null,
|
|
"typeSelector": {
|
|
"type": "NamespacedName",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 1,
|
|
"ctxt": 0
|
|
},
|
|
"prefix": null,
|
|
"name": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 1,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"raw": "a"
|
|
}
|
|
},
|
|
"subclassSelectors": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "Block",
|
|
"span": {
|
|
"start": 2,
|
|
"end": 18,
|
|
"ctxt": 0
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "Tokens",
|
|
"span": {
|
|
"start": 8,
|
|
"end": 15,
|
|
"ctxt": 0
|
|
},
|
|
"tokens": [
|
|
{
|
|
"span": {
|
|
"start": 8,
|
|
"end": 12,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "prop",
|
|
"raw": "prop"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 12,
|
|
"end": 13,
|
|
"ctxt": 0
|
|
},
|
|
"token": "Colon"
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 13,
|
|
"end": 14,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": " "
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 14,
|
|
"end": 15,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Delim": {
|
|
"value": "^"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|