mirror of
https://github.com/swc-project/swc.git
synced 2024-12-22 13:11:31 +03:00
204 lines
3.9 KiB
JSON
204 lines
3.9 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 45,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "AtRule",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 17,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 2,
|
|
"end": 8,
|
|
"ctxt": 0
|
|
},
|
|
"value": "import",
|
|
"raw": "import"
|
|
},
|
|
"prelude": {
|
|
"type": "ImportPrelude",
|
|
"span": {
|
|
"start": 9,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"href": {
|
|
"type": "String",
|
|
"span": {
|
|
"start": 9,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"value": "x.css",
|
|
"raw": "\"x.css\""
|
|
},
|
|
"layerName": null,
|
|
"supports": null,
|
|
"media": null
|
|
},
|
|
"block": null
|
|
},
|
|
{
|
|
"type": "Tokens",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 44,
|
|
"ctxt": 0
|
|
},
|
|
"tokens": [
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 17,
|
|
"end": 18,
|
|
"ctxt": 0
|
|
},
|
|
"token": "Semi"
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 18,
|
|
"end": 20,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n\n"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 20,
|
|
"end": 21,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Delim": {
|
|
"value": "."
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 21,
|
|
"end": 26,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "color",
|
|
"raw": "color"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 26,
|
|
"end": 27,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": " "
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 27,
|
|
"end": 28,
|
|
"ctxt": 0
|
|
},
|
|
"token": "LBrace"
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 28,
|
|
"end": 33,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n "
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 33,
|
|
"end": 38,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "color",
|
|
"raw": "color"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 38,
|
|
"end": 39,
|
|
"ctxt": 0
|
|
},
|
|
"token": "Colon"
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 39,
|
|
"end": 40,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": " "
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 40,
|
|
"end": 43,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "red",
|
|
"raw": "red"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 43,
|
|
"end": 44,
|
|
"ctxt": 0
|
|
},
|
|
"token": "Semi"
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|