swc/crates/swc_css_parser/tests/recovery/function/rgb/output.json
2022-03-04 06:24:22 +09:00

809 lines
21 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 314,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 313,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 4,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 4,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 4,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 0,
"end": 4,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"value": "div",
"raw": "div"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 5,
"end": 313,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 11,
"end": 29,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 11,
"end": 16,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Function",
"span": {
"start": 18,
"end": 29,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 18,
"end": 21,
"ctxt": 0
},
"value": "rgb",
"raw": "rgb"
},
"value": [
{
"type": "String",
"span": {
"start": 22,
"end": 28,
"ctxt": 0
},
"value": "test",
"raw": "\"test\""
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 36,
"end": 64,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 36,
"end": 41,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Function",
"span": {
"start": 43,
"end": 64,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 43,
"end": 46,
"ctxt": 0
},
"value": "rgb",
"raw": "rgb"
},
"value": [
{
"type": "String",
"span": {
"start": 47,
"end": 53,
"ctxt": 0
},
"value": "test",
"raw": "\"test\""
},
{
"type": "Delimiter",
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"value": ","
},
{
"type": "Integer",
"span": {
"start": 55,
"end": 58,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Delimiter",
"span": {
"start": 58,
"end": 59,
"ctxt": 0
},
"value": ","
},
{
"type": "Integer",
"span": {
"start": 60,
"end": 63,
"ctxt": 0
},
"value": 100,
"raw": "100"
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 70,
"end": 98,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 70,
"end": 75,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Function",
"span": {
"start": 77,
"end": 98,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 77,
"end": 80,
"ctxt": 0
},
"value": "rgb",
"raw": "rgb"
},
"value": [
{
"type": "Integer",
"span": {
"start": 81,
"end": 84,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Delimiter",
"span": {
"start": 84,
"end": 85,
"ctxt": 0
},
"value": ","
},
{
"type": "String",
"span": {
"start": 86,
"end": 92,
"ctxt": 0
},
"value": "test",
"raw": "\"test\""
},
{
"type": "Delimiter",
"span": {
"start": 92,
"end": 93,
"ctxt": 0
},
"value": ","
},
{
"type": "Integer",
"span": {
"start": 94,
"end": 97,
"ctxt": 0
},
"value": 100,
"raw": "100"
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 104,
"end": 132,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 104,
"end": 109,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Function",
"span": {
"start": 111,
"end": 132,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 111,
"end": 114,
"ctxt": 0
},
"value": "rgb",
"raw": "rgb"
},
"value": [
{
"type": "Integer",
"span": {
"start": 115,
"end": 118,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Delimiter",
"span": {
"start": 118,
"end": 119,
"ctxt": 0
},
"value": ","
},
{
"type": "Integer",
"span": {
"start": 120,
"end": 123,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Delimiter",
"span": {
"start": 123,
"end": 124,
"ctxt": 0
},
"value": ","
},
{
"type": "String",
"span": {
"start": 125,
"end": 131,
"ctxt": 0
},
"value": "test",
"raw": "\"test\""
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 138,
"end": 171,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 138,
"end": 143,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Function",
"span": {
"start": 145,
"end": 171,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 145,
"end": 148,
"ctxt": 0
},
"value": "rgb",
"raw": "rgb"
},
"value": [
{
"type": "Integer",
"span": {
"start": 149,
"end": 152,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Delimiter",
"span": {
"start": 152,
"end": 153,
"ctxt": 0
},
"value": ","
},
{
"type": "Integer",
"span": {
"start": 154,
"end": 157,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Delimiter",
"span": {
"start": 157,
"end": 158,
"ctxt": 0
},
"value": ","
},
{
"type": "Integer",
"span": {
"start": 159,
"end": 162,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Delimiter",
"span": {
"start": 162,
"end": 163,
"ctxt": 0
},
"value": ","
},
{
"type": "String",
"span": {
"start": 164,
"end": 170,
"ctxt": 0
},
"value": "test",
"raw": "\"test\""
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 182,
"end": 208,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 182,
"end": 187,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Function",
"span": {
"start": 189,
"end": 208,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 189,
"end": 192,
"ctxt": 0
},
"value": "rgb",
"raw": "rgb"
},
"value": [
{
"type": "String",
"span": {
"start": 193,
"end": 199,
"ctxt": 0
},
"value": "test",
"raw": "\"test\""
},
{
"type": "Integer",
"span": {
"start": 200,
"end": 203,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Integer",
"span": {
"start": 204,
"end": 207,
"ctxt": 0
},
"value": 100,
"raw": "100"
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 214,
"end": 240,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 214,
"end": 219,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Function",
"span": {
"start": 221,
"end": 240,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 221,
"end": 224,
"ctxt": 0
},
"value": "rgb",
"raw": "rgb"
},
"value": [
{
"type": "Integer",
"span": {
"start": 225,
"end": 228,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "String",
"span": {
"start": 229,
"end": 235,
"ctxt": 0
},
"value": "test",
"raw": "\"test\""
},
{
"type": "Integer",
"span": {
"start": 236,
"end": 239,
"ctxt": 0
},
"value": 100,
"raw": "100"
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 246,
"end": 272,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 246,
"end": 251,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Function",
"span": {
"start": 253,
"end": 272,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 253,
"end": 256,
"ctxt": 0
},
"value": "rgb",
"raw": "rgb"
},
"value": [
{
"type": "Integer",
"span": {
"start": 257,
"end": 260,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Integer",
"span": {
"start": 261,
"end": 264,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "String",
"span": {
"start": 265,
"end": 271,
"ctxt": 0
},
"value": "test",
"raw": "\"test\""
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 278,
"end": 310,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 278,
"end": 283,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Function",
"span": {
"start": 285,
"end": 310,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 285,
"end": 288,
"ctxt": 0
},
"value": "rgb",
"raw": "rgb"
},
"value": [
{
"type": "Integer",
"span": {
"start": 289,
"end": 292,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Integer",
"span": {
"start": 293,
"end": 296,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Integer",
"span": {
"start": 297,
"end": 300,
"ctxt": 0
},
"value": 100,
"raw": "100"
},
{
"type": "Delimiter",
"span": {
"start": 301,
"end": 302,
"ctxt": 0
},
"value": "/"
},
{
"type": "String",
"span": {
"start": 303,
"end": 309,
"ctxt": 0
},
"value": "test",
"raw": "\"test\""
}
]
}
],
"important": null
}
]
}
}
]
}