swc/css/parser/tests/fixture/esbuild/misc/TdBn3uBF54mw96CCUwpgew/output.json
Alexander Akait 20f4e2148c
refactor(css/ast): Use names from specification for ast types (#2643)
swc_css_ast:
 - Rename `AttrSelectorOp` to `AttrSelectorMatcher`.
2021-11-05 11:42:51 +00:00

92 lines
2.1 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 7,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 7,
"ctxt": 0
},
"selectors": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 5,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 5,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 5,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "AttributeSelector",
"span": {
"start": 0,
"end": 5,
"ctxt": 0
},
"prefix": {
"type": "Text",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"value": "a",
"raw": "a"
},
"name": {
"type": "Text",
"span": {
"start": 3,
"end": 4,
"ctxt": 0
},
"value": "b",
"raw": "b"
},
"matcher": null,
"value": null,
"modifier": null
}
]
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 5,
"end": 7,
"ctxt": 0
},
"items": []
}
}
]
}