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

139 lines
3.1 KiB
JSON
Raw Normal View History

2021-10-12 14:47:17 +03:00
{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 33,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
2021-10-12 14:47:17 +03:00
"span": {
"start": 0,
"end": 32,
"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": "TypeSelector",
2021-10-12 14:47:17 +03:00
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Identifier",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
}
]
}
]
},
2021-10-12 14:47:17 +03:00
"block": {
"type": "Block",
2021-10-12 14:47:17 +03:00
"span": {
"start": 2,
"end": 32,
"ctxt": 0
},
"value": [
2021-10-12 14:47:17 +03:00
{
"type": "Declaration",
2021-10-12 14:47:17 +03:00
"span": {
"start": 8,
"end": 29,
"ctxt": 0
},
"property": {
"type": "Identifier",
2021-10-12 14:47:17 +03:00
"span": {
"start": 8,
"end": 13,
"ctxt": 0
},
"value": "color",
"raw": "color"
},
"value": [
2021-10-12 14:47:17 +03:00
{
"type": "Identifier",
2021-10-12 14:47:17 +03:00
"span": {
"start": 15,
"end": 17,
"ctxt": 0
},
"value": "\\",
"raw": "\\\\"
},
{
"type": "Identifier",
2021-10-12 14:47:17 +03:00
"span": {
"start": 18,
"end": 21,
"ctxt": 0
},
"value": "red",
"raw": "red"
},
{
"type": "Identifier",
2021-10-12 14:47:17 +03:00
"span": {
"start": 22,
"end": 24,
"ctxt": 0
},
"value": "\\",
"raw": "\\\\"
},
{
"type": "Identifier",
2021-10-12 14:47:17 +03:00
"span": {
"start": 25,
"end": 29,
"ctxt": 0
},
"value": "blue",
"raw": "blue"
}
],
"important": null
}
]
}
}
]
}