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.
74 lines
1.5 KiB
JSON
74 lines
1.5 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 30,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "ViewportRule",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 30,
|
|
"ctxt": 0
|
|
},
|
|
"block": {
|
|
"type": "DeclBlock",
|
|
"span": {
|
|
"start": 14,
|
|
"end": 30,
|
|
"ctxt": 0
|
|
},
|
|
"properties": [
|
|
{
|
|
"type": "Property",
|
|
"span": {
|
|
"start": 16,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 16,
|
|
"end": 21,
|
|
"ctxt": 0
|
|
},
|
|
"value": "width"
|
|
},
|
|
"values": [
|
|
{
|
|
"type": "UnitValue",
|
|
"span": {
|
|
"start": 23,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"value": {
|
|
"type": "Number",
|
|
"span": {
|
|
"start": 23,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"value": 100.0
|
|
},
|
|
"unit": {
|
|
"span": {
|
|
"start": 26,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"kind": "vw"
|
|
}
|
|
}
|
|
],
|
|
"important": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|