swc/crates/swc_css_parser/tests/recovery/delim-token/plus/output.json

323 lines
7.8 KiB
JSON
Raw Normal View History

{
"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": "TypeSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 2,
"end": 60,
"ctxt": 0
},
"value": [
{
"type": "Tokens",
"span": {
"start": 8,
"end": 15,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 8,
"end": 12,
"ctxt": 0
},
"token": {
"Ident": {
"value": "prop",
"raw": "prop"
}
}
},
{
"span": {
"start": 12,
"end": 13,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"token": {
"Delim": {
"value": "+"
}
}
}
]
},
{
"type": "Tokens",
"span": {
"start": 21,
"end": 33,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 21,
"end": 26,
"ctxt": 0
},
"token": {
"Ident": {
"value": "prop1",
"raw": "prop1"
}
}
},
{
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 28,
"end": 29,
"ctxt": 0
},
"token": {
"Num": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"span": {
"start": 29,
"end": 30,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 30,
"end": 31,
"ctxt": 0
},
"token": {
"Delim": {
"value": "+"
}
}
},
{
"span": {
"start": 31,
"end": 32,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"token": {
"Num": {
"value": 2.0,
"raw": "2",
"type": "integer"
}
}
}
]
},
{
"type": "Declaration",
"span": {
"start": 39,
"end": 57,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 39,
"end": 44,
"ctxt": 0
},
"value": "prop2",
"raw": "prop2"
},
"value": [
{
"type": "Function",
"span": {
"start": 46,
"end": 57,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 46,
"end": 50,
"ctxt": 0
},
"value": "func",
"raw": "func"
},
"value": [
{
"type": "Number",
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"value": 1.0,
"raw": "1"
},
{
"type": "Tokens",
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"tokens": [
{
"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
}
]
}
}
]
}