mirror of
https://github.com/swc-project/swc.git
synced 2024-12-23 05:32:09 +03:00
b206404d94
swc_css_ast: - Add `DeclBlockItem`. - Change `DeclBlock.properties` to `DeclBlock.items`. swc_css_parser: - Add a way to recovered errors.
114 lines
2.3 KiB
JSON
114 lines
2.3 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 45,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "KeyframesRule",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 45,
|
|
"ctxt": 0
|
|
},
|
|
"id": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 11,
|
|
"end": 15,
|
|
"ctxt": 0
|
|
},
|
|
"value": "test"
|
|
},
|
|
"blocks": [
|
|
{
|
|
"span": {
|
|
"start": 18,
|
|
"end": 25,
|
|
"ctxt": 0
|
|
},
|
|
"selector": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 18,
|
|
"end": 22,
|
|
"ctxt": 0
|
|
},
|
|
"value": "from"
|
|
}
|
|
],
|
|
"rule": {
|
|
"type": "DeclBlock",
|
|
"span": {
|
|
"start": 23,
|
|
"end": 25,
|
|
"ctxt": 0
|
|
},
|
|
"items": []
|
|
}
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 26,
|
|
"end": 43,
|
|
"ctxt": 0
|
|
},
|
|
"selector": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 26,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"value": "to"
|
|
}
|
|
],
|
|
"rule": {
|
|
"type": "DeclBlock",
|
|
"span": {
|
|
"start": 29,
|
|
"end": 43,
|
|
"ctxt": 0
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "Property",
|
|
"span": {
|
|
"start": 31,
|
|
"end": 41,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 31,
|
|
"end": 36,
|
|
"ctxt": 0
|
|
},
|
|
"value": "color"
|
|
},
|
|
"values": [
|
|
{
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 38,
|
|
"end": 41,
|
|
"ctxt": 0
|
|
},
|
|
"value": "red"
|
|
}
|
|
],
|
|
"important": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|