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

Method emitJsxText

internal/printer/printer.go:4299–4304  ·  view source on GitHub ↗
(node *ast.JsxText)

Source from the content-addressed store, hash-verified

4297}
4298
4299func (p *Printer) emitJsxText(node *ast.JsxText) {
4300 state := p.enterNode(node.AsNode())
4301 // TODO(rbuckton): Should this be using `getLiteralTextOfNode` instead?
4302 p.writeLiteral(node.Text)
4303 p.exitNode(node.AsNode(), state)
4304}
4305
4306func (p *Printer) emitJsxAttributes(node *ast.JsxAttributes) {
4307 state := p.enterNode(node.AsNode())

Callers 2

emitJsxChildMethod · 0.95
WriteMethod · 0.95

Calls 4

enterNodeMethod · 0.95
writeLiteralMethod · 0.95
exitNodeMethod · 0.95
AsNodeMethod · 0.65

Tested by

no test coverage detected