MCPcopy Index your code
hub / github.com/nodejs/node / getCandidateName

Function getCandidateName

test/fixtures/snapshot/typescript.js:75075–75090  ·  view source on GitHub ↗
(candidate)

Source from the content-addressed store, hash-verified

75073 function getSpellingSuggestionForName(name, symbols, meaning) {
75074 return ts.getSpellingSuggestion(name, symbols, getCandidateName);
75075 function getCandidateName(candidate) {
75076 var candidateName = ts.symbolName(candidate);
75077 if (ts.startsWith(candidateName, "\"")) {
75078 return undefined;
75079 }
75080 if (candidate.flags & meaning) {
75081 return candidateName;
75082 }
75083 if (candidate.flags & 2097152 /* SymbolFlags.Alias */) {
75084 var alias = tryResolveAlias(candidate);
75085 if (alias && alias.flags & meaning) {
75086 return candidateName;
75087 }
75088 }
75089 return undefined;
75090 }
75091 }
75092 function markPropertyAsReferenced(prop, nodeForCheckWriteOnly, isSelfTypeAccess) {
75093 var valueDeclaration = prop && (prop.flags & 106500 /* SymbolFlags.ClassMember */) && prop.valueDeclaration;

Callers

nothing calls this directly

Calls 1

tryResolveAliasFunction · 0.85

Tested by

no test coverage detected