swc/css/parser/tests/fixture/esbuild/misc/aDkLP2LEPmyD_ImzrGw8SQ/output.json
Donny/강동윤 b206404d94
feat(css): Recover from invalid properties (#2312)
swc_css_ast:
 - Add `DeclBlockItem`.
 - Change `DeclBlock.properties` to `DeclBlock.items`.

swc_css_parser:
 - Add a way to recovered errors.
2021-09-28 09:58:56 +00:00

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
}
]
}
}
]
}
]
}