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

1750 lines
36 KiB
JSON

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