swc/crates/swc_css_parser/tests/fixture/rome/comment/output.json

305 lines
7.0 KiB
JSON
Raw Normal View History

2021-08-19 08:16:32 +03:00
{
"type": "Stylesheet",
"span": {
"start": 18,
2021-08-19 08:16:32 +03:00
"end": 127,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
2021-08-19 08:16:32 +03:00
"span": {
"start": 20,
"end": 54,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
2021-08-19 08:16:32 +03:00
"span": {
"start": 20,
"end": 21,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TypeSelector",
2021-08-19 08:16:32 +03:00
"span": {
"start": 20,
2021-08-19 08:16:32 +03:00
"end": 21,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Identifier",
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
}
]
}
]
},
2021-08-19 08:16:32 +03:00
"block": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 22,
"end": 54,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Declaration",
2021-08-19 08:16:32 +03:00
"span": {
"start": 25,
"end": 37,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"value": "color",
"raw": "color"
2021-08-19 08:16:32 +03:00
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 32,
"end": 37,
"ctxt": 0
},
"value": "white",
"raw": "white"
2021-08-19 08:16:32 +03:00
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
2021-08-19 08:16:32 +03:00
"span": {
"start": 56,
"end": 90,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
2021-08-19 08:16:32 +03:00
"span": {
"start": 56,
"end": 57,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TypeSelector",
2021-08-19 08:16:32 +03:00
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Identifier",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
}
]
}
]
},
2021-08-19 08:16:32 +03:00
"block": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 58,
"end": 90,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Declaration",
2021-08-19 08:16:32 +03:00
"span": {
"start": 61,
"end": 87,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 61,
"end": 66,
"ctxt": 0
},
"value": "color",
"raw": "color"
2021-08-19 08:16:32 +03:00
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 82,
2021-08-19 08:16:32 +03:00
"end": 87,
"ctxt": 0
},
"value": "white",
"raw": "white"
2021-08-19 08:16:32 +03:00
}
],
"important": null
}
]
}
},
{
"type": "QualifiedRule",
2021-08-19 08:16:32 +03:00
"span": {
"start": 92,
"end": 126,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 92,
"end": 93,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 92,
"end": 93,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
2021-08-19 08:16:32 +03:00
"span": {
"start": 92,
"end": 93,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TypeSelector",
2021-08-19 08:16:32 +03:00
"span": {
"start": 92,
"end": 93,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Identifier",
"span": {
"start": 92,
"end": 93,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
}
]
}
]
},
2021-08-19 08:16:32 +03:00
"block": {
"type": "Block",
2021-08-19 08:16:32 +03:00
"span": {
"start": 108,
"end": 126,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Declaration",
2021-08-19 08:16:32 +03:00
"span": {
"start": 111,
"end": 123,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 111,
"end": 116,
"ctxt": 0
},
"value": "color",
"raw": "color"
2021-08-19 08:16:32 +03:00
},
"value": [
2021-08-19 08:16:32 +03:00
{
"type": "Identifier",
2021-08-19 08:16:32 +03:00
"span": {
"start": 118,
"end": 123,
"ctxt": 0
},
"value": "white",
"raw": "white"
2021-08-19 08:16:32 +03:00
}
],
"important": null
}
]
}
}
]
}