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

368 lines
8.6 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": "Tokens",
"span": {
"start": 39,
"end": 57,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 39,
"end": 44,
"ctxt": 0
},
"token": {
"Ident": {
"value": "prop2",
"raw": "prop2"
}
}
},
{
"span": {
"start": 44,
"end": 45,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 45,
"end": 46,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 46,
"end": 51,
"ctxt": 0
},
"token": {
"Function": {
"value": "func",
"raw": "func"
}
}
},
{
"span": {
"start": 51,
"end": 52,
"ctxt": 0
},
"token": {
"Num": {
"value": 1.0,
"raw": "1",
"type": "integer"
}
}
},
{
"span": {
"start": 52,
"end": 53,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 53,
"end": 54,
"ctxt": 0
},
"token": {
"Delim": {
"value": "+"
}
}
},
{
"span": {
"start": 54,
"end": 55,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"span": {
"start": 55,
"end": 56,
"ctxt": 0
},
"token": {
"Num": {
"value": 2.0,
"raw": "2",
"type": "integer"
}
}
},
{
"span": {
"start": 56,
"end": 57,
"ctxt": 0
},
"token": "RParen"
}
]
}
]
}
}
]
}