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

Method emitNestedModuleName

internal/printer/printer.go:1329–1342  ·  view source on GitHub ↗
(node *ast.ModuleName)

Source from the content-addressed store, hash-verified

1327}
1328
1329func (p *Printer) emitNestedModuleName(node *ast.ModuleName) {
1330 if node == nil {
1331 return
1332 }
1333
1334 switch node.Kind {
1335 case ast.KindIdentifier:
1336 p.emitIdentifierName(node.AsIdentifier())
1337 case ast.KindStringLiteral:
1338 p.emitStringLiteral(node.AsStringLiteral())
1339 default:
1340 panic(fmt.Sprintf("unexpected ModuleName: %v", node.Kind))
1341 }
1342}
1343
1344//
1345// Signature elements

Callers 1

emitModuleDeclarationMethod · 0.95

Calls 5

emitIdentifierNameMethod · 0.95
emitStringLiteralMethod · 0.95
panicFunction · 0.85
AsIdentifierMethod · 0.80
AsStringLiteralMethod · 0.80

Tested by

no test coverage detected