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

168 lines
3.8 KiB
JSON

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 29,
"ctxt": 0
},
"rules": [
{
"type": "StyleRule",
"span": {
"start": 0,
"end": 29,
"ctxt": 0
},
"selectors": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"selectors": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"hasNestPrefix": false,
"combinator": null,
"typeSelector": {
"type": "NamespacedName",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Text",
"span": {
"start": 0,
"end": 1,
"ctxt": 0
},
"value": "a",
"raw": "a"
}
},
"subclassSelectors": []
}
]
}
],
"block": {
"type": "Block",
"span": {
"start": 2,
"end": 29,
"ctxt": 0
},
"items": [
{
"type": "Tokens",
"span": {
"start": 8,
"end": 28,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 8,
"end": 12,
"ctxt": 0
},
"token": {
"Ident": {
"value": "prop",
"raw": "prop"
}
}
},
{
"span": {
"start": 12,
"end": 13,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 13,
"end": 14,
"ctxt": 0
},
"token": "WhiteSpace"
},
{
"span": {
"start": 14,
"end": 18,
"ctxt": 0
},
"token": {
"Function": {
"value": "url",
"raw": "url"
}
}
},
{
"span": {
"start": 18,
"end": 24,
"ctxt": 0
},
"token": {
"Str": {
"value": "test",
"raw": "\"test\""
}
}
},
{
"span": {
"start": 24,
"end": 25,
"ctxt": 0
},
"token": "RParen"
},
{
"span": {
"start": 25,
"end": 26,
"ctxt": 0
},
"token": "WhiteSpace"
},
{
"span": {
"start": 26,
"end": 27,
"ctxt": 0
},
"token": "Colon"
},
{
"span": {
"start": 27,
"end": 28,
"ctxt": 0
},
"token": "WhiteSpace"
}
]
}
]
}
}
]
}