MCPcopy Create free account
hub / github.com/microsoft/typescript-go / getDisplayName

Method getDisplayName

internal/binder/binder.go:362–372  ·  view source on GitHub ↗
(node *ast.Node)

Source from the content-addressed store, hash-verified

360}
361
362func (b *Binder) getDisplayName(node *ast.Node) string {
363 nameNode := node.Name()
364 if nameNode != nil {
365 return scanner.DeclarationNameToString(nameNode)
366 }
367 name := b.getDeclarationName(node)
368 if name != ast.InternalSymbolNameMissing {
369 return name
370 }
371 return "(Missing)"
372}
373
374func GetSymbolNameForPrivateIdentifier(containingClassSymbol *ast.Symbol, description string) string {
375 return ast.InternalSymbolNamePrefix + "#" + strconv.Itoa(int(ast.GetSymbolId(containingClassSymbol))) + "@" + description

Callers 1

declareSymbolExMethod · 0.95

Calls 3

getDeclarationNameMethod · 0.95
DeclarationNameToStringFunction · 0.92
NameMethod · 0.65

Tested by

no test coverage detected