mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 05:01:42 +03:00
0d63470eba
swc_css_ast: - Rename `Values` to `SpaceValues`. swc_css_parser: - Add `parse_str`. - Make `ErrorKind` `#[non_exhaustive]`. - Fix span. swc_css_visit: - Create visitors.
164 lines
3.7 KiB
JSON
164 lines
3.7 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 59,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "StyleRule",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 59,
|
|
"ctxt": 0
|
|
},
|
|
"selectors": [
|
|
{
|
|
"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"
|
|
}
|
|
},
|
|
"subclassSelectors": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"block": {
|
|
"type": "DeclBlock",
|
|
"span": {
|
|
"start": 2,
|
|
"end": 59,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "Property",
|
|
"span": {
|
|
"start": 4,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 4,
|
|
"end": 17,
|
|
"ctxt": 0
|
|
},
|
|
"value": "border-radius"
|
|
},
|
|
"values": [
|
|
{
|
|
"type": "Number",
|
|
"span": {
|
|
"start": 19,
|
|
"end": 20,
|
|
"ctxt": 0
|
|
},
|
|
"value": 1.0
|
|
},
|
|
{
|
|
"type": "Number",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 22,
|
|
"ctxt": 0
|
|
},
|
|
"value": 2.0
|
|
},
|
|
{
|
|
"type": "Number",
|
|
"span": {
|
|
"start": 23,
|
|
"end": 24,
|
|
"ctxt": 0
|
|
},
|
|
"value": 3.0
|
|
},
|
|
{
|
|
"type": "Number",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"value": 4.0
|
|
}
|
|
],
|
|
"important": null
|
|
},
|
|
{
|
|
"type": "Property",
|
|
"span": {
|
|
"start": 28,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 28,
|
|
"end": 51,
|
|
"ctxt": 0
|
|
},
|
|
"value": "border-top-right-radius"
|
|
},
|
|
"values": [
|
|
{
|
|
"type": "Number",
|
|
"span": {
|
|
"start": 53,
|
|
"end": 54,
|
|
"ctxt": 0
|
|
},
|
|
"value": 5.0
|
|
},
|
|
{
|
|
"type": "Number",
|
|
"span": {
|
|
"start": 55,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"value": 6.0
|
|
}
|
|
],
|
|
"important": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|