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

182 lines
4.6 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 31,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 31,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 7,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 7,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 1,
"end": 7,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 1,
"end": 7,
"ctxt": 0
},
"text": {
"type": "Ident",
"span": {
"start": 2,
"end": 7,
"ctxt": 0
},
"value": "style",
"raw": "style"
}
}
]
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 8,
"end": 31,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 11,
"end": 31,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 11,
"end": 16,
"ctxt": 0
},
"value": "width",
"raw": "width"
},
"value": [
{
"type": "Function",
"span": {
"start": 18,
"end": 31,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 18,
"end": 21,
"ctxt": 0
},
"value": "min",
"raw": "min"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 22,
"end": 27,
"ctxt": 0
},
"token": {
"Dimension": {
"value": 500.0,
"raw_value": "500",
"unit": "px",
"raw_unit": "px",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"token": "Semi"
},
{
"type": "PreservedToken",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n"
}
}
}
]
}
],
"important": null
}
]
}
}
]
}