mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
229 lines
5.0 KiB
JSON
229 lines
5.0 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 54,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "QualifiedRule",
|
|
"span": {
|
|
"start": 5,
|
|
"end": 53,
|
|
"ctxt": 0
|
|
},
|
|
"prelude": {
|
|
"type": "Tokens",
|
|
"span": {
|
|
"start": 5,
|
|
"end": 18,
|
|
"ctxt": 0
|
|
},
|
|
"tokens": [
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 5,
|
|
"end": 8,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Number": {
|
|
"value": 123.0,
|
|
"raw": "123",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 8,
|
|
"end": 9,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": " "
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 9,
|
|
"end": 12,
|
|
"ctxt": 0
|
|
},
|
|
"token": "CDC"
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 12,
|
|
"end": 14,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n\n"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 14,
|
|
"end": 17,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "div",
|
|
"raw": "div"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 18,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": " "
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "SimpleBlock",
|
|
"span": {
|
|
"start": 18,
|
|
"end": 53,
|
|
"ctxt": 0
|
|
},
|
|
"name": "{",
|
|
"value": [
|
|
{
|
|
"type": "Declaration",
|
|
"span": {
|
|
"start": 24,
|
|
"end": 34,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 24,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"value": "color",
|
|
"raw": "color"
|
|
},
|
|
"value": [
|
|
{
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 31,
|
|
"end": 34,
|
|
"ctxt": 0
|
|
},
|
|
"value": "red",
|
|
"raw": "red"
|
|
}
|
|
],
|
|
"important": null
|
|
},
|
|
{
|
|
"type": "Tokens",
|
|
"span": {
|
|
"start": 36,
|
|
"end": 52,
|
|
"ctxt": 0
|
|
},
|
|
"tokens": [
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 36,
|
|
"end": 40,
|
|
"ctxt": 0
|
|
},
|
|
"token": "CDO"
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 40,
|
|
"end": 42,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n\n"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 42,
|
|
"end": 46,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "test",
|
|
"raw": "test"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 46,
|
|
"end": 48,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n\n"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 48,
|
|
"end": 51,
|
|
"ctxt": 0
|
|
},
|
|
"token": "CDC"
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 51,
|
|
"end": 52,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|