MCPcopy Index your code
hub / github.com/microsoft/typescript-go / emitJsxChild

Method emitJsxChild

internal/printer/printer.go:4365–4380  ·  view source on GitHub ↗
(node *ast.JsxChild)

Source from the content-addressed store, hash-verified

4363}
4364
4365func (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
4382func (p *Printer) emitJsxTagName(node *ast.JsxTagNameExpression) {
4383 switch node.Kind {

Callers

nothing calls this directly

Calls 11

emitJsxTextMethod · 0.95
emitJsxExpressionMethod · 0.95
emitJsxElementMethod · 0.95
emitJsxFragmentMethod · 0.95
panicFunction · 0.85
AsJsxTextMethod · 0.80
AsJsxExpressionMethod · 0.80
AsJsxElementMethod · 0.80
AsJsxFragmentMethod · 0.80

Tested by

no test coverage detected