(children: ts.JsxChild[])
| 426 | } |
| 427 | |
| 428 | private getSingleJsxExpression(children: ts.JsxChild[]): ts.Expression | undefined { |
| 429 | if (children.length !== 1) { |
| 430 | return undefined; |
| 431 | } |
| 432 | |
| 433 | const uniqueChild = children[0]; |
| 434 | if (!ts.isJsxExpression(uniqueChild)) { |
| 435 | return undefined; |
| 436 | } |
| 437 | |
| 438 | return uniqueChild.expression; |
| 439 | } |
| 440 | |
| 441 | private outputSlot( |
| 442 | node: ts.Node, |