mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 19:52:21 +03:00
229 lines
5.1 KiB
JSON
229 lines
5.1 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 55,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "QualifiedRule",
|
|
"span": {
|
|
"start": 6,
|
|
"end": 54,
|
|
"ctxt": 0
|
|
},
|
|
"prelude": {
|
|
"type": "Tokens",
|
|
"span": {
|
|
"start": 6,
|
|
"end": 19,
|
|
"ctxt": 0
|
|
},
|
|
"tokens": [
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 6,
|
|
"end": 9,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Number": {
|
|
"value": 123.0,
|
|
"raw": "123",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 9,
|
|
"end": 10,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": " "
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 10,
|
|
"end": 13,
|
|
"ctxt": 0
|
|
},
|
|
"token": "CDC"
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 13,
|
|
"end": 15,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n\n"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 15,
|
|
"end": 18,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "div",
|
|
"raw": "div"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 18,
|
|
"end": 19,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": " "
|
|
}
|
|
}
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "SimpleBlock",
|
|
"span": {
|
|
"start": 19,
|
|
"end": 54,
|
|
"ctxt": 0
|
|
},
|
|
"name": "{",
|
|
"value": [
|
|
{
|
|
"type": "Declaration",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 35,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 25,
|
|
"end": 30,
|
|
"ctxt": 0
|
|
},
|
|
"value": "color",
|
|
"raw": "color"
|
|
},
|
|
"value": [
|
|
{
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 32,
|
|
"end": 35,
|
|
"ctxt": 0
|
|
},
|
|
"value": "red",
|
|
"raw": "red"
|
|
}
|
|
],
|
|
"important": null
|
|
},
|
|
{
|
|
"type": "Tokens",
|
|
"span": {
|
|
"start": 37,
|
|
"end": 53,
|
|
"ctxt": 0
|
|
},
|
|
"tokens": [
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 37,
|
|
"end": 41,
|
|
"ctxt": 0
|
|
},
|
|
"token": "CDO"
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 41,
|
|
"end": 43,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n\n"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 43,
|
|
"end": 47,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "test",
|
|
"raw": "test"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 47,
|
|
"end": 49,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n\n"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 49,
|
|
"end": 52,
|
|
"ctxt": 0
|
|
},
|
|
"token": "CDC"
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 52,
|
|
"end": 53,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|