swc/css/parser/tests/line-comment/css-in-js/4/output.json

141 lines
3.1 KiB
JSON
Raw Normal View History

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 56,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 55,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"value": "foo",
"raw": "foo"
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 4,
"end": 55,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 10,
"end": 20,
"ctxt": 0
},
"property": {
"type": "Text",
"span": {
"start": 10,
"end": 15,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Text",
"span": {
"start": 17,
"end": 20,
"ctxt": 0
},
"value": "red",
"raw": "red"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 46,
"end": 52,
"ctxt": 0
},
"property": {
"type": "Text",
"span": {
"start": 46,
"end": 49,
"ctxt": 0
},
"value": "top",
"raw": "top"
},
"value": [
{
"type": "Number",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": 0.0,
"raw": "0"
}
],
"important": null
}
]
}
}
]
}