mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
143 lines
3.2 KiB
JSON
143 lines
3.2 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 24,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "StyleRule",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 23,
|
|
"ctxt": 0
|
|
},
|
|
"selectors": [
|
|
{
|
|
"type": "ComplexSelector",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 1,
|
|
"ctxt": 0
|
|
},
|
|
"selectors": [
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 1,
|
|
"ctxt": 0
|
|
},
|
|
"hasNestPrefix": false,
|
|
"combinator": null,
|
|
"typeSelector": {
|
|
"type": "NamespacedName",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 1,
|
|
"ctxt": 0
|
|
},
|
|
"prefix": null,
|
|
"name": {
|
|
"type": "Text",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 1,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"raw": "a"
|
|
}
|
|
},
|
|
"subclassSelectors": []
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"block": {
|
|
"type": "DeclBlock",
|
|
"span": {
|
|
"start": 2,
|
|
"end": 23,
|
|
"ctxt": 0
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "Tokens",
|
|
"span": {
|
|
"start": 8,
|
|
"end": 20,
|
|
"ctxt": 0
|
|
},
|
|
"tokens": [
|
|
{
|
|
"span": {
|
|
"start": 8,
|
|
"end": 13,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "color",
|
|
"raw": "color"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 13,
|
|
"end": 14,
|
|
"ctxt": 0
|
|
},
|
|
"token": "Colon"
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 14,
|
|
"end": 15,
|
|
"ctxt": 0
|
|
},
|
|
"token": "WhiteSpace"
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 15,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Delim": {
|
|
"value": "@"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 16,
|
|
"end": 17,
|
|
"ctxt": 0
|
|
},
|
|
"token": "WhiteSpace"
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 17,
|
|
"end": 20,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "red",
|
|
"raw": "red"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|