swc/crates/swc_css_parser/tests/line-comment/css-in-js/5/output.json

118 lines
2.7 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 33,
"end": 57,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 33,
"end": 56,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 33,
"end": 36,
"ctxt": 0
},
"value": "foo",
"raw": "foo"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 37,
"end": 56,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 43,
"end": 53,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 43,
"end": 48,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 50,
"end": 53,
"ctxt": 0
},
"value": "red",
"raw": "red"
}
],
"important": null
}
]
}
}
]
}