mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 04:32:01 +03:00
b206404d94
swc_css_ast: - Add `DeclBlockItem`. - Change `DeclBlock.properties` to `DeclBlock.items`. swc_css_parser: - Add a way to recovered errors.
77 lines
1.6 KiB
JSON
77 lines
1.6 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 30,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "FontFaceRule",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"block": {
|
|
"type": "DeclBlock",
|
|
"span": {
|
|
"start": 11,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "Property",
|
|
"span": {
|
|
"start": 14,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 14,
|
|
"end": 17,
|
|
"ctxt": 0
|
|
},
|
|
"value": "src"
|
|
},
|
|
"values": [
|
|
{
|
|
"type": "FnValue",
|
|
"span": {
|
|
"start": 19,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 19,
|
|
"end": 22,
|
|
"ctxt": 0
|
|
},
|
|
"value": "url"
|
|
},
|
|
"args": [
|
|
{
|
|
"type": "String",
|
|
"span": {
|
|
"start": 23,
|
|
"end": 25,
|
|
"ctxt": 0
|
|
},
|
|
"value": ""
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"important": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|