swc/crates/swc_css_parser/tests/recovery/simple-block/unclosed-in-function/output.json

201 lines
5.3 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 59,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 1,
"end": 59,
"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": 59,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 11,
"end": 59,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 11,
"end": 32,
"ctxt": 0
},
"value": "grid-template-columns",
"raw": "grid-template-columns"
},
"value": [
{
"type": "Function",
"span": {
"start": 34,
"end": 59,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 34,
"end": 40,
"ctxt": 0
},
"value": "repeat",
"raw": "repeat"
},
"value": [
{
"type": "Integer",
"span": {
"start": 41,
"end": 42,
"ctxt": 0
},
"value": 4,
"raw": "4"
},
{
"type": "Delimiter",
"span": {
"start": 42,
"end": 43,
"ctxt": 0
},
"value": ","
},
{
"type": "SimpleBlock",
"span": {
"start": 44,
"end": 59,
"ctxt": 0
},
"name": "[",
"value": [
{
"type": "Ident",
"span": {
"start": 45,
"end": 54,
"ctxt": 0
},
"value": "col-start",
"raw": "col-start"
},
{
"type": "PreservedToken",
"span": {
"start": 54,
"end": 55,
"ctxt": 0
},
"token": "RParen"
},
{
"type": "Delimiter",
"span": {
"start": 55,
"end": 56,
"ctxt": 0
},
"value": ";"
},
{
"type": "PreservedToken",
"span": {
"start": 57,
"end": 58,
"ctxt": 0
},
"token": "RBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 58,
"end": 59,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": "\n"
}
}
}
]
}
]
}
],
"important": null
}
]
}
}
]
}