swc/css/parser/tests/fixture/esbuild/misc/TB0HbwEy-7bhtK7ck9tHKQ/output.json
강동윤 0d63470eba
feat(css): Groundwork for css processor (#2105)
swc_css_ast:
 - Rename `Values` to `SpaceValues`.

swc_css_parser:
 - Add `parse_str`.
 - Make `ErrorKind` `#[non_exhaustive]`.
 - Fix span.

swc_css_visit:
 - Create visitors.
2021-08-20 07:48:08 +00:00

144 lines
3.1 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 46,
"ctxt": 0
},
"rules": [
{
"type": "KeyframesRule",
"span": {
"start": 0,
"end": 46,
"ctxt": 0
},
"id": {
"type": "Text",
"span": {
"start": 11,
"end": 15,
"ctxt": 0
},
"value": "name"
},
"blocks": [
{
"span": {
"start": 16,
"end": 31,
"ctxt": 0
},
"selector": [
{
"type": "Text",
"span": {
"start": 16,
"end": 20,
"ctxt": 0
},
"value": "from"
}
],
"rule": {
"type": "DeclBlock",
"span": {
"start": 20,
"end": 31,
"ctxt": 0
},
"properties": [
{
"type": "Property",
"span": {
"start": 21,
"end": 30,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 21,
"end": 26,
"ctxt": 0
},
"value": "color"
},
"values": [
{
"type": "Text",
"span": {
"start": 27,
"end": 30,
"ctxt": 0
},
"value": "red"
}
],
"important": null
}
]
}
},
{
"span": {
"start": 31,
"end": 45,
"ctxt": 0
},
"selector": [
{
"type": "Text",
"span": {
"start": 31,
"end": 33,
"ctxt": 0
},
"value": "to"
}
],
"rule": {
"type": "DeclBlock",
"span": {
"start": 33,
"end": 45,
"ctxt": 0
},
"properties": [
{
"type": "Property",
"span": {
"start": 34,
"end": 44,
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 34,
"end": 39,
"ctxt": 0
},
"value": "color"
},
"values": [
{
"type": "Text",
"span": {
"start": 40,
"end": 44,
"ctxt": 0
},
"value": "blue"
}
],
"important": null
}
]
}
}
]
}
]
}