swc/css/parser/tests/fixture/rome/comment/output.json

284 lines
6.3 KiB
JSON
Raw Normal View History

2021-08-19 08:16:32 +03:00
{
"type": "Stylesheet",
"span": {
"start": 20,
2021-08-19 08:16:32 +03:00
"end": 127,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 20,
"end": 54,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 20,
"end": 21,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 20,
"end": 21,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 20,
"end": 21,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 20,
2021-08-19 08:16:32 +03:00
"end": 21,
"ctxt": 0
},
"value": "a",
"raw": "a"
2021-08-19 08:16:32 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 22,
"end": 54,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"items": [
2021-08-19 08:16:32 +03:00
{
"type": "Property",
"span": {
"start": 25,
"end": 37,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 25,
"end": 30,
"ctxt": 0
},
"value": "color",
"raw": "color"
2021-08-19 08:16:32 +03:00
},
"values": [
{
"type": "Text",
"span": {
"start": 32,
"end": 37,
"ctxt": 0
},
"value": "white",
"raw": "white"
2021-08-19 08:16:32 +03:00
}
],
"important": null
}
]
}
},
{
"type": "StyleRule",
"span": {
"start": 56,
"end": 90,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 56,
"end": 57,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 56,
"end": 57,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 56,
"end": 57,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"value": "a",
"raw": "a"
2021-08-19 08:16:32 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 58,
"end": 90,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"items": [
2021-08-19 08:16:32 +03:00
{
"type": "Property",
"span": {
"start": 61,
"end": 87,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 61,
"end": 66,
"ctxt": 0
},
"value": "color",
"raw": "color"
2021-08-19 08:16:32 +03:00
},
"values": [
{
"type": "Text",
"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": "StyleRule",
"span": {
"start": 92,
"end": 126,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 92,
"end": 93,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 92,
"end": 93,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 92,
"end": 93,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 92,
"end": 93,
"ctxt": 0
},
"value": "a",
"raw": "a"
2021-08-19 08:16:32 +03:00
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 108,
"end": 126,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"items": [
2021-08-19 08:16:32 +03:00
{
"type": "Property",
"span": {
"start": 111,
"end": 123,
2021-08-19 08:16:32 +03:00
"ctxt": 0
},
"name": {
"type": "Text",
"span": {
"start": 111,
"end": 116,
"ctxt": 0
},
"value": "color",
"raw": "color"
2021-08-19 08:16:32 +03:00
},
"values": [
{
"type": "Text",
"span": {
"start": 118,
"end": 123,
"ctxt": 0
},
"value": "white",
"raw": "white"
2021-08-19 08:16:32 +03:00
}
],
"important": null
}
]
}
}
]
}