swc/crates/swc_css_parser/tests/fixture/declaration/output.json

294 lines
7.1 KiB
JSON
Raw Normal View History

{
"type": "Stylesheet",
"span": {
"start": 0,
"end": 103,
"ctxt": 0
},
"rules": [
{
"type": "QualifiedRule",
"span": {
"start": 0,
"end": 102,
"ctxt": 0
},
"prelude": {
"type": "SelectorList",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"children": [
{
"type": "ComplexSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"children": [
{
"type": "CompoundSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"nestingSelector": null,
"typeSelector": {
"type": "TypeSelector",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"prefix": null,
"name": {
"type": "Identifier",
"span": {
"start": 0,
"end": 3,
"ctxt": 0
},
"value": "div",
"raw": "div"
}
},
"subclassSelectors": []
}
]
}
]
},
"block": {
"type": "Block",
"span": {
"start": 4,
"end": 102,
"ctxt": 0
},
"value": [
{
"type": "Declaration",
"span": {
"start": 10,
"end": 21,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 10,
"end": 14,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Identifier",
"span": {
"start": 16,
"end": 21,
"ctxt": 0
},
"value": "value",
"raw": "value"
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 27,
"end": 40,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 27,
"end": 31,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "RoundBracketBlock",
"span": {
"start": 33,
"end": 40,
"ctxt": 0
},
"children": [
{
"type": "Identifier",
"span": {
"start": 34,
"end": 39,
"ctxt": 0
},
"value": "value",
"raw": "value"
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 46,
"end": 59,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 46,
"end": 50,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "BraceValue",
"span": {
"start": 52,
"end": 59,
"ctxt": 0
},
"value": {
"type": "Tokens",
"span": {
"start": 53,
"end": 58,
"ctxt": 0
},
"tokens": [
{
"span": {
"start": 53,
"end": 58,
"ctxt": 0
},
"token": {
"Ident": {
"value": "value",
"raw": "value"
}
}
}
]
}
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 65,
"end": 78,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 65,
"end": 69,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "SquareBracketBlock",
"span": {
"start": 71,
"end": 78,
"ctxt": 0
},
"children": [
{
"type": "Identifier",
"span": {
"start": 72,
"end": 77,
"ctxt": 0
},
"value": "value",
"raw": "value"
}
]
}
],
"important": null
},
{
"type": "Declaration",
"span": {
"start": 84,
"end": 99,
"ctxt": 0
},
"property": {
"type": "Identifier",
"span": {
"start": 84,
"end": 88,
"ctxt": 0
},
"value": "prop",
"raw": "prop"
},
"value": [
{
"type": "Function",
"span": {
"start": 90,
"end": 99,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 90,
"end": 92,
"ctxt": 0
},
"value": "fn",
"raw": "fn"
},
"value": [
{
"type": "Identifier",
"span": {
"start": 93,
"end": 98,
"ctxt": 0
},
"value": "value",
"raw": "value"
}
]
}
],
"important": null
}
]
}
}
]
}