MCPcopy Create free account
hub / github.com/nodejs/node / isSymbolAccessible

Function isSymbolAccessible

test/fixtures/snapshot/typescript.js:52090–52092  ·  view source on GitHub ↗

* Check if the given symbol in given enclosing declaration is accessible and mark all associated alias to be visible if requested * * @param symbol a Symbol to check if accessible * @param enclosingDeclaration a Node containing reference to the symbol * @param mea

(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible)

Source from the content-addressed store, hash-verified

52088 * @param shouldComputeAliasToMakeVisible a boolean value to indicate whether to return aliases to be mark visible in case the symbol is accessible
52089 */
52090 function isSymbolAccessible(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible) {
52091 return isSymbolAccessibleWorker(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible, /*allowModules*/ true);
52092 }
52093 function isSymbolAccessibleWorker(symbol, enclosingDeclaration, meaning, shouldComputeAliasesToMakeVisible, allowModules) {
52094 if (symbol && enclosingDeclaration) {
52095 var result = isAnySymbolAccessible([symbol], enclosingDeclaration, symbol, meaning, shouldComputeAliasesToMakeVisible, allowModules);

Callers 2

trackExistingEntityNameFunction · 0.85

Calls 1

isSymbolAccessibleWorkerFunction · 0.85

Tested by

no test coverage detected