mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 13:51:19 +03:00
0b76d29ae4
swc_css_ast: - Add `SelectorLsit`. - Use `SelectorList` instead of `Vec<ComplexSelector>`.
118 lines
2.6 KiB
JSON
118 lines
2.6 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 19,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "StyleRule",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 19,
|
|
"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": 19,
|
|
"ctxt": 0
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "Declaration",
|
|
"span": {
|
|
"start": 4,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"property": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 4,
|
|
"end": 9,
|
|
"ctxt": 0
|
|
},
|
|
"value": "width",
|
|
"raw": "width"
|
|
},
|
|
"value": [
|
|
{
|
|
"type": "PercentValue",
|
|
"span": {
|
|
"start": 11,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"value": {
|
|
"type": "Number",
|
|
"span": {
|
|
"start": 11,
|
|
"end": 15,
|
|
"ctxt": 0
|
|
},
|
|
"value": 0.1,
|
|
"raw": "+.10"
|
|
}
|
|
}
|
|
],
|
|
"important": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|