swc/crates/swc_css_parser/tests/recovery/function/base/output.json

691 lines
19 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 204,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 203,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1,
"end": 4,
"ctxt": 0
},
"value": "div",
"raw": "div"
}
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 5,
"end": 203,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 11,
"end": 28,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 11,
"end": 15,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Function",
"span": {
"start": 17,
"end": 28,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 17,
"end": 21,
"ctxt": 0
},
"value": "func",
"raw": "func"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 22,
"end": 23,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 23,
"end": 24,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 24,
"end": 25,
"ctxt": 0
},
"token": {
"Delim": {
"value": "+"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 25,
"end": 26,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"token": {
"Number": {
"value": 2.0,
"raw": "2",
"type": "integer"
}
}
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 34,
"end": 57,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 34,
"end": 38,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Function",
"span": {
"start": 40,
"end": 57,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 40,
"end": 44,
"ctxt": 0
},
"value": "func",
"raw": "func"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 45,
"end": 50,
"ctxt": 0
},
"token": {
"Ident": {
"value": "ident",
"raw": "ident"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 50,
"end": 51,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 51,
"end": 56,
"ctxt": 0
},
"token": {
"Ident": {
"value": "ident",
"raw": "ident"
}
}
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 63,
"end": 93,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 63,
"end": 67,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Function",
"span": {
"start": 69,
"end": 93,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 69,
"end": 74,
"ctxt": 0
},
"value": "func3",
"raw": "func3"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 75,
"end": 78,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 78,
"end": 83,
"ctxt": 0
},
"token": {
"Ident": {
"value": "ident",
"raw": "ident"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 83,
"end": 84,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 84,
"end": 89,
"ctxt": 0
},
"token": {
"Ident": {
"value": "ident",
"raw": "ident"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 89,
"end": 92,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 99,
"end": 120,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 99,
"end": 103,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Function",
"span": {
"start": 105,
"end": 120,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 105,
"end": 109,
"ctxt": 0
},
"value": "func",
"raw": "func"
},
"value": [
{
"type": "SimpleBlock",
"span": {
"start": 110,
"end": 119,
"ctxt": 0
},
"name": "[",
"value": [
{
"type": "Ident",
"span": {
"start": 111,
"end": 114,
"ctxt": 0
},
"value": "foo",
"raw": "foo"
},
{
"type": "Ident",
"span": {
"start": 115,
"end": 118,
"ctxt": 0
},
"value": "bar",
"raw": "bar"
}
]
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 126,
"end": 148,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 126,
"end": 130,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Function",
"span": {
"start": 132,
"end": 148,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 132,
"end": 136,
"ctxt": 0
},
"value": "func",
"raw": "func"
},
"value": [
{
"type": "SimpleBlock",
"span": {
"start": 137,
"end": 147,
"ctxt": 0
},
"name": "(",
"value": [
{
"type": "Ident",
"span": {
"start": 138,
"end": 141,
"ctxt": 0
},
"value": "foo",
"raw": "foo"
},
{
"type": "Delimiter",
"span": {
"start": 141,
"end": 142,
"ctxt": 0
},
"value": ","
},
{
"type": "Ident",
"span": {
"start": 143,
"end": 146,
"ctxt": 0
},
"value": "bar",
"raw": "bar"
}
]
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 154,
"end": 178,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 154,
"end": 158,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Function",
"span": {
"start": 160,
"end": 178,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 160,
"end": 164,
"ctxt": 0
},
"value": "func",
"raw": "func"
},
"value": [
{
"type": "SimpleBlock",
"span": {
"start": 165,
"end": 177,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Ident",
"span": {
"start": 167,
"end": 170,
"ctxt": 0
},
"value": "foo",
"raw": "foo"
},
{
"type": "PreservedToken",
"span": {
"start": 170,
"end": 171,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "Ident",
"span": {
"start": 172,
"end": 175,
"ctxt": 0
},
"value": "bar",
"raw": "bar"
}
]
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 184,
"end": 200,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 184,
"end": 188,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Function",
"span": {
"start": 190,
"end": 200,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 190,
"end": 194,
"ctxt": 0
},
"value": "func",
"raw": "func"
},
"value": [
{
"type": "Integer",
"span": {
"start": 195,
"end": 196,
"ctxt": 0
},
"value": 1,
"raw": "1"
},
{
"type": "Delimiter",
"span": {
"start": 196,
"end": 197,
"ctxt": 0
},
"value": ","
},
{
"type": "Integer",
"span": {
"start": 198,
"end": 199,
"ctxt": 0
},
"value": 2,
"raw": "2"
}
]
}
],
"important": null
}
]
}
}
]
}