mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
285 lines
7.1 KiB
JSON
285 lines
7.1 KiB
JSON
{
|
|
"type": "Stylesheet",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 62,
|
|
"ctxt": 0
|
|
},
|
|
"rules": [
|
|
{
|
|
"type": "QualifiedRule",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"prelude": {
|
|
"type": "SelectorList",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 2,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "ComplexSelector",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 2,
|
|
"ctxt": 0
|
|
},
|
|
"children": [
|
|
{
|
|
"type": "CompoundSelector",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 2,
|
|
"ctxt": 0
|
|
},
|
|
"nestingSelector": null,
|
|
"typeSelector": {
|
|
"type": "TagNameSelector",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 2,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "WqName",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 2,
|
|
"ctxt": 0
|
|
},
|
|
"prefix": null,
|
|
"value": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 1,
|
|
"end": 2,
|
|
"ctxt": 0
|
|
},
|
|
"value": "a",
|
|
"raw": "a"
|
|
}
|
|
}
|
|
},
|
|
"subclassSelectors": []
|
|
}
|
|
]
|
|
}
|
|
]
|
|
},
|
|
"block": {
|
|
"type": "SimpleBlock",
|
|
"span": {
|
|
"start": 3,
|
|
"end": 61,
|
|
"ctxt": 0
|
|
},
|
|
"name": "{",
|
|
"value": [
|
|
{
|
|
"type": "Declaration",
|
|
"span": {
|
|
"start": 9,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 9,
|
|
"end": 13,
|
|
"ctxt": 0
|
|
},
|
|
"value": "prop",
|
|
"raw": "prop"
|
|
},
|
|
"value": [
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 15,
|
|
"end": 16,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Delim": {
|
|
"value": "+"
|
|
}
|
|
}
|
|
}
|
|
],
|
|
"important": null
|
|
},
|
|
{
|
|
"type": "Declaration",
|
|
"span": {
|
|
"start": 22,
|
|
"end": 34,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 22,
|
|
"end": 27,
|
|
"ctxt": 0
|
|
},
|
|
"value": "prop1",
|
|
"raw": "prop1"
|
|
},
|
|
"value": [
|
|
{
|
|
"type": "Integer",
|
|
"span": {
|
|
"start": 29,
|
|
"end": 30,
|
|
"ctxt": 0
|
|
},
|
|
"value": 1,
|
|
"raw": "1"
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 31,
|
|
"end": 32,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Delim": {
|
|
"value": "+"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "Integer",
|
|
"span": {
|
|
"start": 33,
|
|
"end": 34,
|
|
"ctxt": 0
|
|
},
|
|
"value": 2,
|
|
"raw": "2"
|
|
}
|
|
],
|
|
"important": null
|
|
},
|
|
{
|
|
"type": "Declaration",
|
|
"span": {
|
|
"start": 40,
|
|
"end": 58,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 40,
|
|
"end": 45,
|
|
"ctxt": 0
|
|
},
|
|
"value": "prop2",
|
|
"raw": "prop2"
|
|
},
|
|
"value": [
|
|
{
|
|
"type": "Function",
|
|
"span": {
|
|
"start": 47,
|
|
"end": 58,
|
|
"ctxt": 0
|
|
},
|
|
"name": {
|
|
"type": "Ident",
|
|
"span": {
|
|
"start": 47,
|
|
"end": 51,
|
|
"ctxt": 0
|
|
},
|
|
"value": "func",
|
|
"raw": "func"
|
|
},
|
|
"value": [
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 52,
|
|
"end": 53,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Number": {
|
|
"value": 1.0,
|
|
"raw": "1",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 53,
|
|
"end": 54,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": " "
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 54,
|
|
"end": 55,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Delim": {
|
|
"value": "+"
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 55,
|
|
"end": 56,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"WhiteSpace": {
|
|
"value": " "
|
|
}
|
|
}
|
|
},
|
|
{
|
|
"type": "PreservedToken",
|
|
"span": {
|
|
"start": 56,
|
|
"end": 57,
|
|
"ctxt": 0
|
|
},
|
|
"token": {
|
|
"Number": {
|
|
"value": 2.0,
|
|
"raw": "2",
|
|
"type": "integer"
|
|
}
|
|
}
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"important": null
|
|
}
|
|
]
|
|
}
|
|
}
|
|
]
|
|
}
|