swc/crates/swc_css_parser/tests/fixture/at-rule/unknown/output.json

1201 lines
24 KiB
JSON
Raw Normal View History

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 666,
"ctxt": 0
},
"rules": [
{
"type": "UnknownAtRule",
"span": {
"start": 0,
"end": 9,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 1,
"end": 8,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [],
"block": null
},
{
"type": "UnknownAtRule",
"span": {
"start": 10,
"end": 23,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 11,
"end": 18,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 18,
"end": 19,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 19,
"end": 20,
"ctxt": 0
},
"token": {
"Ident": {
"value": "x",
"raw": "x"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 20,
"end": 21,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 21,
"end": 22,
"ctxt": 0
},
"token": {
"Ident": {
"value": "y",
"raw": "y"
}
}
}
],
"block": null
},
{
"type": "UnknownAtRule",
"span": {
"start": 24,
"end": 40,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 25,
"end": 32,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 32,
"end": 33,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 33,
"end": 39,
"ctxt": 0
},
"token": {
"String": {
"value": "blah",
"raw": "\"blah\""
}
}
}
],
"block": null
},
{
"type": "UnknownAtRule",
"span": {
"start": 41,
"end": 59,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 42,
"end": 49,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 49,
"end": 50,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 50,
"end": 58,
"ctxt": 0
},
"token": {
"Ident": {
"value": "\"blah\"",
"raw": "\\\"blah\\\""
}
}
}
],
"block": null
},
{
"type": "UnknownAtRule",
"span": {
"start": 115,
"end": 126,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 116,
"end": 123,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 123,
"end": 125,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"block": null
},
{
"type": "UnknownAtRule",
"span": {
"start": 127,
"end": 142,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 128,
"end": 135,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 135,
"end": 137,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 137,
"end": 138,
"ctxt": 0
},
"token": {
"Ident": {
"value": "x",
"raw": "x"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 138,
"end": 140,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 140,
"end": 141,
"ctxt": 0
},
"token": {
"Ident": {
"value": "y",
"raw": "y"
}
}
}
],
"block": null
},
{
"type": "UnknownAtRule",
"span": {
"start": 144,
"end": 155,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 145,
"end": 152,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 152,
"end": 153,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"block": {
"type": "SimpleBlock",
"span": {
"start": 153,
"end": 155,
"ctxt": 0
},
"name": "{",
"value": []
}
},
{
"type": "UnknownAtRule",
"span": {
"start": 156,
"end": 168,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 157,
"end": 165,
"ctxt": 0
},
"value": "unknown",
"raw": "\\unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 165,
"end": 166,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"block": {
"type": "SimpleBlock",
"span": {
"start": 166,
"end": 168,
"ctxt": 0
},
"name": "{",
"value": []
}
},
{
"type": "UnknownAtRule",
"span": {
"start": 169,
"end": 184,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 170,
"end": 177,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 177,
"end": 178,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 178,
"end": 179,
"ctxt": 0
},
"token": {
"Ident": {
"value": "a",
"raw": "a"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 179,
"end": 180,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 180,
"end": 181,
"ctxt": 0
},
"token": {
"Ident": {
"value": "b",
"raw": "b"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 181,
"end": 182,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"block": {
"type": "SimpleBlock",
"span": {
"start": 182,
"end": 184,
"ctxt": 0
},
"name": "{",
"value": []
}
},
{
"type": "UnknownAtRule",
"span": {
"start": 185,
"end": 199,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 186,
"end": 193,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 193,
"end": 194,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"block": {
"type": "SimpleBlock",
"span": {
"start": 194,
"end": 199,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "PreservedToken",
"span": {
"start": 195,
"end": 196,
"ctxt": 0
},
"token": {
"Ident": {
"value": "p",
"raw": "p"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 196,
"end": 197,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 197,
"end": 198,
"ctxt": 0
},
"token": {
"Ident": {
"value": "v",
"raw": "v"
}
}
}
]
}
},
{
"type": "UnknownAtRule",
"span": {
"start": 200,
"end": 218,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 201,
"end": 208,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 208,
"end": 209,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 209,
"end": 210,
"ctxt": 0
},
"token": {
"Ident": {
"value": "x",
"raw": "x"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 210,
"end": 211,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 211,
"end": 212,
"ctxt": 0
},
"token": {
"Ident": {
"value": "y",
"raw": "y"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 212,
"end": 213,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"block": {
"type": "SimpleBlock",
"span": {
"start": 213,
"end": 218,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "PreservedToken",
"span": {
"start": 214,
"end": 215,
"ctxt": 0
},
"token": {
"Ident": {
"value": "p",
"raw": "p"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 215,
"end": 216,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 216,
"end": 217,
"ctxt": 0
},
"token": {
"Ident": {
"value": "v",
"raw": "v"
}
}
}
]
}
},
{
"type": "UnknownAtRule",
"span": {
"start": 279,
"end": 332,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 280,
"end": 287,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [],
"block": {
"type": "SimpleBlock",
"span": {
"start": 295,
"end": 332,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "PreservedToken",
"span": {
"start": 304,
"end": 305,
"ctxt": 0
},
"token": {
"Ident": {
"value": "p",
"raw": "p"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 313,
"end": 314,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 322,
"end": 323,
"ctxt": 0
},
"token": {
"Ident": {
"value": "v",
"raw": "v"
}
}
}
]
}
},
{
"type": "UnknownAtRule",
"span": {
"start": 542,
"end": 565,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 543,
"end": 550,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 550,
"end": 552,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"block": {
"type": "SimpleBlock",
"span": {
"start": 552,
"end": 565,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "PreservedToken",
"span": {
"start": 553,
"end": 555,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 555,
"end": 556,
"ctxt": 0
},
"token": {
"Ident": {
"value": "p",
"raw": "p"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 556,
"end": 558,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 558,
"end": 559,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 559,
"end": 561,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 561,
"end": 562,
"ctxt": 0
},
"token": {
"Ident": {
"value": "v",
"raw": "v"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 562,
"end": 564,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
]
}
},
{
"type": "UnknownAtRule",
"span": {
"start": 566,
"end": 595,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 567,
"end": 574,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 574,
"end": 576,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 576,
"end": 577,
"ctxt": 0
},
"token": {
"Ident": {
"value": "x",
"raw": "x"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 577,
"end": 579,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 579,
"end": 580,
"ctxt": 0
},
"token": {
"Ident": {
"value": "y",
"raw": "y"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 580,
"end": 582,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"block": {
"type": "SimpleBlock",
"span": {
"start": 582,
"end": 595,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "PreservedToken",
"span": {
"start": 583,
"end": 585,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 585,
"end": 586,
"ctxt": 0
},
"token": {
"Ident": {
"value": "p",
"raw": "p"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 586,
"end": 588,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 588,
"end": 589,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 589,
"end": 591,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 591,
"end": 592,
"ctxt": 0
},
"token": {
"Ident": {
"value": "v",
"raw": "v"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 592,
"end": 594,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
]
}
},
{
"type": "UnknownAtRule",
"span": {
"start": 650,
"end": 666,
"ctxt": 0
},
"name": {
"type": "Ident",
"span": {
"start": 651,
"end": 658,
"ctxt": 0
},
"value": "unknown",
"raw": "unknown"
},
"prelude": [
{
"type": "PreservedToken",
"span": {
"start": 658,
"end": 659,
"ctxt": 0
},
"token": {
"WhiteSpace": {
"value": " "
}
}
}
],
"block": {
"type": "SimpleBlock",
"span": {
"start": 659,
"end": 666,
"ctxt": 0
},
"name": "{",
"value": [
{
"type": "PreservedToken",
"span": {
"start": 660,
"end": 661,
"ctxt": 0
},
"token": {
"Ident": {
"value": "s",
"raw": "s"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 661,
"end": 662,
"ctxt": 0
},
"token": "LBrace"
},
{
"type": "PreservedToken",
"span": {
"start": 662,
"end": 663,
"ctxt": 0
},
"token": {
"Ident": {
"value": "p",
"raw": "p"
}
}
},
{
"type": "PreservedToken",
"span": {
"start": 663,
"end": 664,
"ctxt": 0
},
"token": "Colon"
},
{
"type": "PreservedToken",
"span": {
"start": 664,
"end": 665,
"ctxt": 0
},
"token": {
"Ident": {
"value": "v",
"raw": "v"
}
}
}
]
}
}
]
}