swc/css/parser/tests/fixture/selector/comments/output.json

1455 lines
35 KiB
JSON
Raw Normal View History

{
"type": "Stylesheet",
"span": {
"start": 9,
"end": 290,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 9,
"end": 15,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 9,
"end": 12,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 9,
"end": 10,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 9,
"end": 10,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 9,
"end": 10,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 13,
"end": 15,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 26,
"end": 32,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 26,
"end": 29,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 30,
"end": 32,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 43,
"end": 49,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 43,
"end": 46,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 43,
"end": 44,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 43,
"end": 44,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 43,
"end": 44,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 45,
"end": 46,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 45,
"end": 46,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 45,
"end": 46,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 47,
"end": 49,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 61,
"end": 67,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 61,
"end": 64,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 61,
"end": 62,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 63,
"end": 64,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 63,
"end": 64,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 63,
"end": 64,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 65,
"end": 67,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 68,
"end": 82,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 68,
"end": 79,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 68,
"end": 69,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 78,
"end": 79,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 80,
"end": 82,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 83,
"end": 98,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 83,
"end": 95,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 94,
"end": 95,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 94,
"end": 95,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 94,
"end": 95,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 96,
"end": 98,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 99,
"end": 115,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 99,
"end": 112,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 99,
"end": 100,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 99,
"end": 100,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 99,
"end": 100,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 111,
"end": 112,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 111,
"end": 112,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 111,
"end": 112,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 113,
"end": 115,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 116,
"end": 133,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 116,
"end": 130,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 116,
"end": 117,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 116,
"end": 117,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 116,
"end": 117,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 129,
"end": 130,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 129,
"end": 130,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 129,
"end": 130,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 131,
"end": 133,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 134,
"end": 149,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 134,
"end": 137,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 134,
"end": 135,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 134,
"end": 135,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 134,
"end": 135,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 136,
"end": 137,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 136,
"end": 137,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 136,
"end": 137,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 147,
"end": 149,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 150,
"end": 166,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 150,
"end": 153,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 150,
"end": 151,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 150,
"end": 151,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 150,
"end": 151,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 152,
"end": 153,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 152,
"end": 153,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 152,
"end": 153,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 164,
"end": 166,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 167,
"end": 183,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 167,
"end": 170,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 167,
"end": 168,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 167,
"end": 168,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 167,
"end": 168,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 169,
"end": 170,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 169,
"end": 170,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 169,
"end": 170,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 181,
"end": 183,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 184,
"end": 201,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 184,
"end": 187,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 184,
"end": 185,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 184,
"end": 185,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 184,
"end": 185,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 186,
"end": 187,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 199,
"end": 201,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 202,
"end": 216,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 202,
"end": 205,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 202,
"end": 203,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 202,
"end": 203,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 202,
"end": 203,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 204,
"end": 205,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 204,
"end": 205,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 204,
"end": 205,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 214,
"end": 216,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 217,
"end": 232,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 217,
"end": 220,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 217,
"end": 218,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 217,
"end": 218,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 217,
"end": 218,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
},
{
"type": "CompoundSelector",
"span": {
"start": 219,
"end": 220,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 219,
"end": 220,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 219,
"end": 220,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 230,
"end": 232,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 233,
"end": 258,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 233,
"end": 234,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 233,
"end": 234,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 233,
"end": 234,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 233,
"end": 234,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
}
]
},
{
"type": "ComplexSelector",
"span": {
"start": 255,
"end": 256,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 255,
"end": 256,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 255,
"end": 256,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 255,
"end": 256,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 256,
"end": 258,
"ctxt": 0
},
"items": []
}
},
{
"type": "StyleRule",
"span": {
"start": 259,
"end": 289,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 259,
"end": 260,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 259,
"end": 260,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 259,
"end": 260,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 259,
"end": 260,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
}
]
},
{
"type": "ComplexSelector",
"span": {
"start": 273,
"end": 286,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 285,
"end": 286,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 285,
"end": 286,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 285,
"end": 286,
"ctxt": 0
},
"value": "b",
"raw": "b"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "DeclBlock",
"span": {
"start": 287,
"end": 289,
"ctxt": 0
},
"items": []
}
}
]
}