swc/crates/swc_ecma_parser/tests/tsc/tsxAttributeResolution13.json

102 lines
2.0 KiB
JSON
Raw Normal View History

{
"type": "Script",
"span": {
"start": 40,
"end": 73,
"ctxt": 0
},
"body": [
{
"type": "FunctionDeclaration",
"identifier": {
"type": "Identifier",
"span": {
"start": 49,
"end": 53,
"ctxt": 0
},
"value": "Test",
"optional": false
},
"declare": false,
"params": [],
"decorators": [],
"span": {
"start": 40,
"end": 59,
"ctxt": 0
},
"body": {
"type": "BlockStatement",
"span": {
"start": 56,
"end": 59,
"ctxt": 0
},
"stmts": []
},
"generator": false,
"async": false,
"typeParameters": null,
"returnType": null
},
{
"type": "ExpressionStatement",
"span": {
"start": 60,
"end": 73,
"ctxt": 0
},
"expression": {
"type": "JSXElement",
"span": {
"start": 60,
"end": 73,
"ctxt": 0
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "Identifier",
"span": {
"start": 61,
"end": 65,
"ctxt": 0
},
"value": "Test",
"optional": false
},
"span": {
"start": 60,
"end": 66,
"ctxt": 0
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 66,
"end": 73,
"ctxt": 0
},
"name": {
"type": "Identifier",
"span": {
"start": 68,
"end": 72,
"ctxt": 0
},
"value": "Test",
"optional": false
}
}
}
}
],
"interpreter": null
}