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

Function SymbolName

internal/ast/symbol.go:72–77  ·  view source on GitHub ↗
(symbol *Symbol)

Source from the content-addressed store, hash-verified

70)
71
72func SymbolName(symbol *Symbol) string {
73 if symbol.ValueDeclaration != nil && IsPrivateIdentifierClassElementDeclaration(symbol.ValueDeclaration) {
74 return symbol.ValueDeclaration.Name().Text()
75 }
76 return symbol.Name
77}
78
79// EscapeAllInternalSymbolNames replaces internal symbol name markers ("\xFE") with "__".
80func EscapeAllInternalSymbolNames(name string) string {

Calls 3

TextMethod · 0.65
NameMethod · 0.65

Tested by

no test coverage detected