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

Function canQualifySymbol

test/fixtures/snapshot/typescript.js:51904–51909  ·  view source on GitHub ↗
(symbolFromSymbolTable, meaning)

Source from the content-addressed store, hash-verified

51902 return result;
51903 }
51904 function canQualifySymbol(symbolFromSymbolTable, meaning) {
51905 // If the symbol is equivalent and doesn't need further qualification, this symbol is accessible
51906 return !needsQualification(symbolFromSymbolTable, enclosingDeclaration, meaning) ||
51907 // If symbol needs qualification, make sure that parent is accessible, if it is then this symbol is accessible too
51908 !!getAccessibleSymbolChain(symbolFromSymbolTable.parent, enclosingDeclaration, getQualifiedLeftMeaning(meaning), useOnlyExternalAliasing, visitedSymbolTablesMap);
51909 }
51910 function isAccessible(symbolFromSymbolTable, resolvedAliasSymbol, ignoreQualification) {
51911 return (symbol === (resolvedAliasSymbol || symbolFromSymbolTable) || getMergedSymbol(symbol) === getMergedSymbol(resolvedAliasSymbol || symbolFromSymbolTable)) &&
51912 // if the symbolFromSymbolTable is not external module (it could be if it was determined as ambient external module and would be in globals table)

Callers 2

isAccessibleFunction · 0.85

Calls 3

needsQualificationFunction · 0.85
getAccessibleSymbolChainFunction · 0.85
getQualifiedLeftMeaningFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…