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

168 lines
3.9 KiB
JSON
Raw Normal View History

2021-10-12 14:47:17 +03:00
{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 21,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
2021-10-12 14:47:17 +03:00
"span": {
"start": 0,
"end": 20,
"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",
2021-10-12 14:47:17 +03:00
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
2021-10-12 14:47:17 +03:00
"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": []
}
]
}
]
},
2021-10-12 14:47:17 +03:00
"block": {
"type": "SimpleBlock",
2021-10-12 14:47:17 +03:00
"span": {
"start": 2,
"end": 20,
"ctxt": 0
},
"name": "{",
"value": [
2021-10-12 14:47:17 +03:00
{
"type": "Tokens",
"span": {
"start": 8,
"end": 18,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"tokens": [
{
"type": "PreservedToken",
2021-10-12 14:47:17 +03:00
"span": {
"start": 8,
"end": 13,
"ctxt": 0
},
"token": {
"Ident": {
"value": "color",
"raw": "color"
}
}
},
{
"type": "PreservedToken",
2021-10-12 14:47:17 +03:00
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
2021-10-12 14:47:17 +03:00
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
2021-10-12 14:47:17 +03:00
},
{
"type": "PreservedToken",
2021-10-12 14:47:17 +03:00
"span": {
"start": 15,
"end": 16,
"ctxt": 0
},
"token": {
"Delim": {
"value": "!"
}
}
2021-10-12 14:47:17 +03:00
},
{
"type": "PreservedToken",
2021-10-12 14:47:17 +03:00
"span": {
"start": 16,
"end": 17,
"ctxt": 0
},
"token": {
"Delim": {
"value": "!"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 17,
"end": 18,
"ctxt": 0
},
"token": "Semi"
2021-10-12 14:47:17 +03:00
}
]
}
]
}
}
]
}