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

Method emitExternalModuleReference

internal/printer/printer.go:4221–4228  ·  view source on GitHub ↗

Module references

(node *ast.ExternalModuleReference)

Source from the content-addressed store, hash-verified

4219//
4220
4221func (p *Printer) emitExternalModuleReference(node *ast.ExternalModuleReference) {
4222 state := p.enterNode(node.AsNode())
4223 p.writeKeyword("require")
4224 p.writePunctuation("(")
4225 p.emitExpression(node.Expression, ast.OperatorPrecedenceDisallowComma)
4226 p.writePunctuation(")")
4227 p.exitNode(node.AsNode(), state)
4228}
4229
4230//
4231// JSX

Callers 2

emitModuleReferenceMethod · 0.95
WriteMethod · 0.95

Calls 6

enterNodeMethod · 0.95
writeKeywordMethod · 0.95
writePunctuationMethod · 0.95
emitExpressionMethod · 0.95
exitNodeMethod · 0.95
AsNodeMethod · 0.65

Tested by

no test coverage detected