(symbolAccessibilityResult)
| 108136 | refs.set(ts.getOriginalNodeId(container), container); |
| 108137 | } |
| 108138 | function handleSymbolAccessibilityError(symbolAccessibilityResult) { |
| 108139 | if (symbolAccessibilityResult.accessibility === 0 /* SymbolAccessibility.Accessible */) { |
| 108140 | // Add aliases back onto the possible imports list if they're not there so we can try them again with updated visibility info |
| 108141 | if (symbolAccessibilityResult && symbolAccessibilityResult.aliasesToMakeVisible) { |
| 108142 | if (!lateMarkedStatements) { |
| 108143 | lateMarkedStatements = symbolAccessibilityResult.aliasesToMakeVisible; |
| 108144 | } |
| 108145 | else { |
| 108146 | for (var _i = 0, _a = symbolAccessibilityResult.aliasesToMakeVisible; _i < _a.length; _i++) { |
| 108147 | var ref = _a[_i]; |
| 108148 | ts.pushIfUnique(lateMarkedStatements, ref); |
| 108149 | } |
| 108150 | } |
| 108151 | } |
| 108152 | // TODO: Do all these accessibility checks inside/after the first pass in the checker when declarations are enabled, if possible |
| 108153 | } |
| 108154 | else { |
| 108155 | // Report error |
| 108156 | var errorInfo = getSymbolAccessibilityDiagnostic(symbolAccessibilityResult); |
| 108157 | if (errorInfo) { |
| 108158 | if (errorInfo.typeName) { |
| 108159 | context.addDiagnostic(ts.createDiagnosticForNode(symbolAccessibilityResult.errorNode || errorInfo.errorNode, errorInfo.diagnosticMessage, ts.getTextOfNode(errorInfo.typeName), symbolAccessibilityResult.errorSymbolName, symbolAccessibilityResult.errorModuleName)); |
| 108160 | } |
| 108161 | else { |
| 108162 | context.addDiagnostic(ts.createDiagnosticForNode(symbolAccessibilityResult.errorNode || errorInfo.errorNode, errorInfo.diagnosticMessage, symbolAccessibilityResult.errorSymbolName, symbolAccessibilityResult.errorModuleName)); |
| 108163 | } |
| 108164 | return true; |
| 108165 | } |
| 108166 | } |
| 108167 | return false; |
| 108168 | } |
| 108169 | function trackExternalModuleSymbolOfImportTypeNode(symbol) { |
| 108170 | if (!isBundledEmit) { |
| 108171 | (exportedModulesFromDeclarationEmit || (exportedModulesFromDeclarationEmit = [])).push(symbol); |
no outgoing calls
no test coverage detected
searching dependent graphs…