mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 20:51: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.
57 lines
999 B
JSON
57 lines
999 B
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "KeyframesRule",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 11,
|
|
"end": 14,
|
|
"ctxt": 0
|
|
},
|
|
"value": "abc"
|
|
},
|
|
"blocks": [
|
|
{
|
|
"span": {
|
|
"start": 17,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"selector": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 23,
|
|
"ctxt": 0
|
|
},
|
|
"value": "from"
|
|
}
|
|
],
|
|
"rule": {
|
|
"type": "DeclBlock",
|
|
"span": {
|
|
"start": 24,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"properties": []
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|