| 1 |
//// [tests/cases/compiler/commentsOnJSXExpressionsArePreserved.tsx] //// |
| 2 |
|
| 3 |
=== commentsOnJSXExpressionsArePreserved.tsx === |
| 4 |
// file is intentionally not a module - this tests for a crash in the module/system transforms alongside the `react-jsx` and `react-jsxdev` outputs |
| 5 |
namespace JSX {} |
| 6 |
>JSX : Symbol(JSX, Decl(commentsOnJSXExpressionsArePreserved.tsx, 0, 0)) |
| 7 |
|
| 8 |
class Component { |
| 9 |
>Component : Symbol(Component, Decl(commentsOnJSXExpressionsArePreserved.tsx, 1, 16)) |
| 10 |
|
| 11 |
render() { |
| 12 |
>render : Symbol(Component.render, Decl(commentsOnJSXExpressionsArePreserved.tsx, 2, 17)) |
| 13 |
|
| 14 |
return <div> |
| 15 |
{/* missing */} |
| 16 |
{null/* preserved */} |
| 17 |
{ |
| 18 |
// ??? 1 |
| 19 |
} |
| 20 |
{ // ??? 2 |
| 21 |
} |
| 22 |
{// ??? 3 |
| 23 |
} |
| 24 |
{ |
| 25 |
// ??? 4 |
| 26 |
/* ??? 5 */} |
| 27 |
</div>; |
| 28 |
} |
| 29 |
} |