(symbol *ast.Symbol, nameText string, specifier *ast.Node, dontResolveAlias bool)
| 14713 | } |
| 14714 | |
| 14715 | func (c *Checker) getExportOfModule(symbol *ast.Symbol, nameText string, specifier *ast.Node, dontResolveAlias bool) *ast.Symbol { |
| 14716 | if symbol.Flags&ast.SymbolFlagsModule != 0 { |
| 14717 | exportSymbol := c.getExportsOfSymbol(symbol)[nameText] |
| 14718 | resolved := c.resolveSymbolEx(exportSymbol, dontResolveAlias) |
| 14719 | exportStarDeclaration := c.moduleSymbolLinks.Get(symbol).typeOnlyExportStarMap[nameText] |
| 14720 | c.markSymbolOfAliasDeclarationIfTypeOnly(specifier, exportStarDeclaration) |
| 14721 | return resolved |
| 14722 | } |
| 14723 | return nil |
| 14724 | } |
| 14725 | |
| 14726 | func (c *Checker) isOnlyImportableAsDefault(usage *ast.Node, resolvedModule *ast.Symbol) bool { |
| 14727 | // In Node.js, JSON modules don't get named exports |
no test coverage detected