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

218 lines
4.9 KiB
JSON
Raw Normal View History

{
"type": "Module",
"span": {
"start": 0,
"end": 15,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 15
}
}
},
"body": [
{
"type": "JSXElement",
"span": {
"start": 0,
"end": 15,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 0
},
"end": {
"line": 1,
"column": 15
}
}
},
"opening": {
"type": "JSXOpeningElement",
"name": {
"type": "JSXMemberExpression",
"object": {
"type": "JSXMemberExpression",
"object": {
"type": "Identifier",
"span": {
"start": 1,
"end": 2,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 2
}
}
},
"value": "a",
"typeAnnotation": null,
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 3,
"end": 4,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 3
},
"end": {
"line": 1,
"column": 4
}
}
},
"value": "b",
"typeAnnotation": null,
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 5,
"end": 6,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 5
},
"end": {
"line": 1,
"column": 6
}
}
},
"value": "c",
"typeAnnotation": null,
"optional": false
}
},
"span": {
"start": 1,
"end": 7,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 1
},
"end": {
"line": 1,
"column": 7
}
}
},
"attributes": [],
"selfClosing": false,
"typeArguments": null
},
"children": [],
"closing": {
"type": "JSXClosingElement",
"span": {
"start": 9,
"end": 15,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 15
}
}
},
"name": {
"type": "JSXMemberExpression",
"object": {
"type": "JSXMemberExpression",
"object": {
"type": "Identifier",
"span": {
"start": 9,
"end": 10,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 9
},
"end": {
"line": 1,
"column": 10
}
}
},
"value": "a",
"typeAnnotation": null,
"optional": false
},
"property": {
"type": "Identifier",
"span": {
"start": 11,
"end": 12,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 11
},
"end": {
"line": 1,
"column": 12
}
}
},
"value": "b",
"typeAnnotation": null,
"optional": false
}
},
"property": {
"type": "Identifier",
"span": {
"start": 13,
"end": 14,
"ctxt": 0,
"loc": {
"start": {
"line": 1,
"column": 13
},
"end": {
"line": 1,
"column": 14
}
}
},
"value": "c",
"typeAnnotation": null,
"optional": false
}
}
}
}
],
"interpreter": null
}