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

131 lines
3.0 KiB
JSON
Raw Normal View History

2021-10-12 14:47:17 +03:00
{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 25,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
2021-10-12 14:47:17 +03:00
"span": {
"start": 1,
"end": 24,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
2021-10-12 14:47:17 +03:00
"span": {
"start": 1,
"end": 2,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TagNameSelector",
2021-10-12 14:47:17 +03:00
"span": {
"start": 1,
"end": 2,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"name": {
"type": "WqName",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"prefix": null,
"value": {
"type": "Ident",
"span": {
"start": 1,
"end": 2,
"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": 3,
"end": 24,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"name": "{",
"value": [
2021-10-12 14:47:17 +03:00
{
"type": "Declaration",
2021-10-12 14:47:17 +03:00
"span": {
"start": 9,
"end": 21,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 9,
"end": 14,
"ctxt": 0
2021-10-12 14:47:17 +03:00
},
"value": "color",
"raw": "color"
},
"value": [
2021-10-12 14:47:17 +03:00
{
"type": "PreservedToken",
2021-10-12 14:47:17 +03:00
"span": {
"start": 16,
"end": 17,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"token": {
"Delim": {
"value": "@"
}
}
},
{
"type": "Ident",
2021-10-12 14:47:17 +03:00
"span": {
"start": 18,
"end": 21,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"value": "red",
"raw": "red"
2021-10-12 14:47:17 +03:00
}
],
"important": null
2021-10-12 14:47:17 +03:00
}
]
}
}
]
}