(node *ast.JsxChild)
| 4363 | } |
| 4364 | |
| 4365 | func (p *Printer) emitJsxChild(node *ast.JsxChild) { |
| 4366 | switch node.Kind { |
| 4367 | case ast.KindJsxText: |
| 4368 | p.emitJsxText(node.AsJsxText()) |
| 4369 | case ast.KindJsxExpression: |
| 4370 | p.emitJsxExpression(node.AsJsxExpression()) |
| 4371 | case ast.KindJsxElement: |
| 4372 | p.emitJsxElement(node.AsJsxElement()) |
| 4373 | case ast.KindJsxSelfClosingElement: |
| 4374 | p.emitJsxSelfClosingElement(node.AsJsxSelfClosingElement()) |
| 4375 | case ast.KindJsxFragment: |
| 4376 | p.emitJsxFragment(node.AsJsxFragment()) |
| 4377 | default: |
| 4378 | panic(fmt.Sprintf("unhandled JsxChild: %v", node.Kind)) |
| 4379 | } |
| 4380 | } |
| 4381 | |
| 4382 | func (p *Printer) emitJsxTagName(node *ast.JsxTagNameExpression) { |
| 4383 | switch node.Kind { |
nothing calls this directly
no test coverage detected