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

Function isTypeSymbolAccessible

test/fixtures/snapshot/typescript.js:52007–52010  ·  view source on GitHub ↗
(typeSymbol, enclosingDeclaration)

Source from the content-addressed store, hash-verified

52005 return false;
52006 }
52007 function isTypeSymbolAccessible(typeSymbol, enclosingDeclaration) {
52008 var access = isSymbolAccessibleWorker(typeSymbol, enclosingDeclaration, 788968 /* SymbolFlags.Type */, /*shouldComputeAliasesToMakeVisible*/ false, /*allowModules*/ true);
52009 return access.accessibility === 0 /* SymbolAccessibility.Accessible */;
52010 }
52011 function isValueSymbolAccessible(typeSymbol, enclosingDeclaration) {
52012 var access = isSymbolAccessibleWorker(typeSymbol, enclosingDeclaration, 111551 /* SymbolFlags.Value */, /*shouldComputeAliasesToMakeVisible*/ false, /*allowModules*/ true);
52013 return access.accessibility === 0 /* SymbolAccessibility.Accessible */;

Callers 2

typeToTypeNodeHelperFunction · 0.85
trackExistingEntityNameFunction · 0.85

Calls 1

isSymbolAccessibleWorkerFunction · 0.85

Tested by

no test coverage detected