swc/crates/swc_css_parser/tests/recovery/vercel/004/output.json
2022-03-02 15:51:52 +00:00

362 lines
8.9 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 140,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 139,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 8,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 8,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 8,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
},
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 1,
"end": 8,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 2,
"end": 8,
"ctxt": 0
},
"value": "invert",
"raw": "invert"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 9,
"end": 139,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 15,
"end": 24,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 15,
"end": 21,
"ctxt": 0
},
"value": "margin",
"raw": "margin"
},
"value": [
{
"type": "Integer",
"span": {
"start": 23,
"end": 24,
"ctxt": 0
},
"value": 0,
"raw": "0"
}
],
"important": null
},
{
"type": "Tokens",
"span": {
"start": 30,
"end": 63,
"ctxt": 0
},
"tokens": [
{
"type": "PreservedToken",
"span": {
"start": 30,
"end": 39,
"ctxt": 0
},
"token": {
"Ident": {
"value": "__ident__",
"raw": "__ident__"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 39,
"end": 44,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 44,
"end": 57,
"ctxt": 0
},
"token": {
"Ident": {
"value": "border-radius",
"raw": "border-radius"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 58,
"end": 59,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 59,
"end": 62,
"ctxt": 0
},
"token": {
"Dimension": {
"value": 7.0,
"raw_value": "7",
"unit": "px",
"raw_unit": "px",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 62,
"end": 63,
"ctxt": 0
},
"token": "Semi"
}
]
},
{
"type": "Declaration",
"span": {
"start": 68,
"end": 80,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 68,
"end": 73,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
{
"type": "Ident",
"span": {
"start": 75,
"end": 80,
"ctxt": 0
},
"value": "white",
"raw": "white"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 86,
"end": 108,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 86,
"end": 96,
"ctxt": 0
},
"value": "background",
"raw": "background"
},
"value": [
{
"type": "Ident",
"span": {
"start": 99,
"end": 108,
"ctxt": 0
},
"value": "__ident__",
"raw": "__ident__"
}
],
"important": null
},
{
"type": "Tokens",
"span": {
"start": 114,
"end": 138,
"ctxt": 0
},
"tokens": [
{
"type": "PreservedToken",
"span": {
"start": 114,
"end": 123,
"ctxt": 0
},
"token": {
"Ident": {
"value": "__ident__",
"raw": "__ident__"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 123,
"end": 128,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 128,
"end": 137,
"ctxt": 0
},
"token": {
"Ident": {
"value": "__ident__",
"raw": "__ident__"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 137,
"end": 138,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n"
}
}
}
]
}
]
}
}
]
}