swc/css/parser/tests/recovery/styled-jsx/2/output.json
2021-10-27 03:38:05 +09:00

223 lines
5.8 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 67,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 66,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 16,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 2,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "ClassSelector",
"span": {
"start": 0,
"end": 2,
"ctxt": 0
},
"text": {
"type": "Text",
"span": {
"start": 1,
"end": 2,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
}
]
},
{
"type": "CompoundSelector",
"span": {
"start": 3,
"end": 16,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": null,
"subclassSelectors": [
{
"type": "PseudoSelector",
"span": {
"start": 3,
"end": 16,
"ctxt": 0
},
"isElement": false,
"name": {
"type": "Text",
"span": {
"start": 4,
"end": 10,
"ctxt": 0
},
"value": "global",
"raw": "global"
},
"args": {
"type": "Tokens",
"span": {
"start": 11,
"end": 15,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 11,
"end": 12,
"ctxt": 0
},
"token": {
"Delim": {
"value": ">"
}
}
},
{
"span": {
"start": 12,
"end": 13,
"ctxt": 0
},
"token": "WhiteSpace"
},
{
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"token": {
"Delim": {
"value": "."
}
}
},
{
"span": {
"start": 14,
"end": 15,
"ctxt": 0
},
"token": {
"Ident": {
"value": "b",
"raw": "b"
}
}
}
]
}
}
]
}
]
}
],
"block": {
"type": "Block",
"span": {
"start": 17,
"end": 66,
"ctxt": 0
},
"items": [
{
"type": "Declaration",
"span": {
"start": 23,
"end": 62,
"ctxt": 0
},
"property": {
"type": "Text",
"span": {
"start": 23,
"end": 33,
"ctxt": 0
},
"value": "flex-basis",
"raw": "flex-basis"
},
"value": [
{
"type": "Tokens",
"span": {
"start": 34,
"end": 63,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 34,
"end": 35,
"ctxt": 0
},
"token": "WhiteSpace"
},
{
"span": {
"start": 35,
"end": 62,
"ctxt": 0
},
"token": {
"Ident": {
"value": "__styled-jsx-placeholder__0",
"raw": "__styled-jsx-placeholder__0"
}
}
},
{
"span": {
"start": 62,
"end": 63,
"ctxt": 0
},
"token": {
"Delim": {
"value": "%"
}
}
}
]
}
],
"important": null
}
]
}
}
]
}