swc/crates/swc_css_parser/tests/fixture/delim/backslash/output.json

156 lines
3.6 KiB
JSON
Raw Normal View History

2021-10-12 14:47:17 +03:00
{
"type": "Stylesheet",
"span": {
"start": 1,
"end": 34,
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": 33,
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": 33,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"name": {
"type": "PreservedToken",
"span": {
"start": 3,
"end": 4,
"ctxt": 0
},
"token": "LBrace"
},
"value": [
2021-10-12 14:47:17 +03:00
{
"type": "Declaration",
2021-10-12 14:47:17 +03:00
"span": {
"start": 9,
"end": 30,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"name": {
"type": "Ident",
2021-10-12 14:47:17 +03:00
"span": {
"start": 9,
"end": 14,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
2021-10-12 14:47:17 +03:00
{
"type": "Ident",
2021-10-12 14:47:17 +03:00
"span": {
"start": 16,
"end": 18,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"value": "\\",
"raw": "\\\\"
},
{
"type": "Ident",
2021-10-12 14:47:17 +03:00
"span": {
"start": 19,
"end": 22,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"value": "red",
"raw": "red"
},
{
"type": "Ident",
2021-10-12 14:47:17 +03:00
"span": {
"start": 23,
"end": 25,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"value": "\\",
"raw": "\\\\"
},
{
"type": "Ident",
2021-10-12 14:47:17 +03:00
"span": {
"start": 26,
"end": 30,
2021-10-12 14:47:17 +03:00
"ctxt": 0
},
"value": "blue",
"raw": "blue"
}
],
"important": null
}
]
}
}
]
}