swc/crates/swc_css_parser/tests/recovery/delim-token/plus/output.json
2022-02-17 13:36:50 +09:00

267 lines
6.5 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 61,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 60,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 1,
"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": []
}
]
}
]
},
"block": {
"type": "SimpleBlock",
"span": {
"start": 2,
"end": 60,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "Declaration",
"span": {
"start": 8,
"end": 15,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 8,
"end": 12,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"token": {
"Delim": {
"value": "+"
}
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 21,
"end": 33,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 21,
"end": 26,
"ctxt": 0
},
"value": "prop1",
"raw": "prop1"
},
"value": [
{
"type": "Number",
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
{
"type": "PreservedToken",
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"token": {
"Delim": {
"value": "+"
}
}
},
{
"type": "Number",
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 39,
"end": 57,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 39,
"end": 44,
"ctxt": 0
},
"value": "prop2",
"raw": "prop2"
},
"value": [
{
"type": "Function",
"span": {
"start": 46,
"end": 57,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 46,
"end": 50,
"ctxt": 0
},
"value": "func",
"raw": "func"
},
"value": [
{
"type": "PreservedToken",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"token": {
"Number": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"token": {
"Delim": {
"value": "+"
}
}
},
{
"type": "Number",
"span": {
"start": 55,
"end": 56,
"ctxt": 0
},
"value": 2.0,
"raw": "2"
}
]
}
],
"important": null
}
]
}
}
]
}