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

Function getPropertyNameForKnownSymbolName

test/fixtures/snapshot/typescript.js:83332–83336  ·  view source on GitHub ↗
(symbolName)

Source from the content-addressed store, hash-verified

83330 }
83331 }
83332 function getPropertyNameForKnownSymbolName(symbolName) {
83333 var ctorType = getGlobalESSymbolConstructorSymbol(/*reportErrors*/ false);
83334 var uniqueType = ctorType && getTypeOfPropertyOfType(getTypeOfSymbol(ctorType), ts.escapeLeadingUnderscores(symbolName));
83335 return uniqueType && isTypeUsableAsPropertyName(uniqueType) ? getPropertyNameFromType(uniqueType) : "__@".concat(symbolName);
83336 }
83337 /**
83338 * Gets the *yield*, *return*, and *next* types of an `Iterable`-like or `AsyncIterable`-like
83339 * type from its members.

Callers 1

Calls 6

getTypeOfPropertyOfTypeFunction · 0.85
getTypeOfSymbolFunction · 0.85
getPropertyNameFromTypeFunction · 0.85
concatMethod · 0.80

Tested by

no test coverage detected