mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
204 lines
4.8 KiB
JSON
204 lines
4.8 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 40,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "QualifiedRule",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 39,
|
|
"ctxt": 0
|
|
},
|
|
"prelude": {
|
|
"type": "SelectorList",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 9,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "ComplexSelector",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 9,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 9,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": {
|
|
"type": "TypeSelector",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 1,
|
|
"ctxt": 0
|
|
},
|
|
"prefix": null,
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 0,
|
|
"end": 1,
|
|
"ctxt": 0
|
|
},
|
|
"value": "p",
|
|
"raw": "p"
|
|
}
|
|
},
|
|
"subclassSelectors": [
|
|
{
|
|
"type": "PseudoElementSelector",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 9,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Identifier",
|
|
"span": {
|
|
"start": 3,
|
|
"end": 9,
|
|
"ctxt": 0
|
|
},
|
|
"value": "before",
|
|
"raw": "before"
|
|
},
|
|
"children": null
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "Block",
|
|
"span": {
|
|
"start": 10,
|
|
"end": 39,
|
|
"ctxt": 0
|
|
},
|
|
"items": [
|
|
{
|
|
"type": "Tokens",
|
|
"span": {
|
|
"start": 16,
|
|
"end": 38,
|
|
"ctxt": 0
|
|
},
|
|
"tokens": [
|
|
{
|
|
"span": {
|
|
"start": 16,
|
|
"end": 23,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "content",
|
|
"raw": "content"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 23,
|
|
"end": 24,
|
|
"ctxt": 0
|
|
},
|
|
"token": "Colon"
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 24,
|
|
"end": 25,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": " "
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 25,
|
|
"end": 29,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"BadStr": {
|
|
"value": "tes",
|
|
"raw": "\"tes"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 29,
|
|
"end": 34,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n "
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 34,
|
|
"end": 35,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Ident": {
|
|
"value": "t",
|
|
"raw": "t"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 35,
|
|
"end": 37,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"BadStr": {
|
|
"value": ";",
|
|
"raw": "\";"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"span": {
|
|
"start": 37,
|
|
"end": 38,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": "\n"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|