swc/ecmascript/parser/tests/jsx/basic/18/input.js.json

183 lines
4.0 KiB
JSON

{
"type": "Module",
"span": {
"start": 0,
"end": 35,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 35
}
}
},
"body": [
{
"type": "JSXElement",
"span": {
"start": 0,
"end": 35,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 35
}
}
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 1,
"end": 4,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 4
}
}
},
"value": "div",
"typeAnnotation": null,
"optional": false
},
"span": {
"start": 1,
"end": 35,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 35
}
}
},
"attributes": [
{
"type": "SpreadElement",
"spread": {
"start": 6,
"end": 9,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 6
},
"end": {
"line": 1,
"column": 9
}
}
},
"arguments": {
"type": "Identifier",
"span": {
"start": 9,
"end": 14,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 14
}
}
},
"value": "props",
"typeAnnotation": null,
"optional": false
}
},
{
"type": "JSXAttribute",
"span": {
"start": 16,
"end": 32,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 32
}
}
},
"name": {
"type": "Identifier",
"span": {
"start": 16,
"end": 20,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 16
},
"end": {
"line": 1,
"column": 20
}
}
},
"value": "post",
"typeAnnotation": null,
"optional": false
},
"value": {
"type": "StringLiteral",
"span": {
"start": 21,
"end": 32,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 21
},
"end": {
"line": 1,
"column": 32
}
}
},
"value": "attribute",
"hasEscape": false
}
}
],
"selfClosing": true,
"typeArguments": null
},
"children": [],
"closing": null
}
],
"interpreter": null
}