(moduleReferenceExpression)
| 86752 | return !isPropertyName && getReferencedValueSymbol(node) === argumentsSymbol; |
| 86753 | } |
| 86754 | function moduleExportsSomeValue(moduleReferenceExpression) { |
| 86755 | var moduleSymbol = resolveExternalModuleName(moduleReferenceExpression.parent, moduleReferenceExpression); |
| 86756 | if (!moduleSymbol || ts.isShorthandAmbientModuleSymbol(moduleSymbol)) { |
| 86757 | // If the module is not found or is shorthand, assume that it may export a value. |
| 86758 | return true; |
| 86759 | } |
| 86760 | var hasExportAssignment = hasExportAssignmentSymbol(moduleSymbol); |
| 86761 | // if module has export assignment then 'resolveExternalModuleSymbol' will return resolved symbol for export assignment |
| 86762 | // otherwise it will return moduleSymbol itself |
| 86763 | moduleSymbol = resolveExternalModuleSymbol(moduleSymbol); |
| 86764 | var symbolLinks = getSymbolLinks(moduleSymbol); |
| 86765 | if (symbolLinks.exportsSomeValue === undefined) { |
| 86766 | // for export assignments - check if resolved symbol for RHS is itself a value |
| 86767 | // otherwise - check if at least one export is value |
| 86768 | symbolLinks.exportsSomeValue = hasExportAssignment |
| 86769 | ? !!(moduleSymbol.flags & 111551 /* SymbolFlags.Value */) |
| 86770 | : ts.forEachEntry(getExportsOfModule(moduleSymbol), isValue); |
| 86771 | } |
| 86772 | return symbolLinks.exportsSomeValue; |
| 86773 | function isValue(s) { |
| 86774 | s = resolveSymbol(s); |
| 86775 | return s && !!(s.flags & 111551 /* SymbolFlags.Value */); |
| 86776 | } |
| 86777 | } |
| 86778 | function isNameOfModuleOrEnumDeclaration(node) { |
| 86779 | return ts.isModuleOrEnumDeclaration(node.parent) && node === node.parent.name; |
| 86780 | } |
nothing calls this directly
no test coverage detected