(symbolFromSymbolTable, resolvedAliasSymbol, ignoreQualification)
| 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) |
| 51913 | // and if symbolFromSymbolTable or alias resolution matches the symbol, |
| 51914 | // check the symbol can be qualified, it is only then this symbol is accessible |
| 51915 | !ts.some(symbolFromSymbolTable.declarations, hasNonGlobalAugmentationExternalModuleSymbol) && |
| 51916 | (ignoreQualification || canQualifySymbol(getMergedSymbol(symbolFromSymbolTable), meaning)); |
| 51917 | } |
| 51918 | function trySymbolTable(symbols, ignoreQualification, isLocalNameLookup) { |
| 51919 | // If symbol is directly available by its name in the symbol table |
| 51920 | if (isAccessible(symbols.get(symbol.escapedName), /*resolvedAliasSymbol*/ undefined, ignoreQualification)) { |
no test coverage detected