(symbol *ast.Symbol)
| 59 | } |
| 60 | |
| 61 | func getNonModuleSymbolOfMergedModuleSymbol(symbol *ast.Symbol) *ast.Symbol { |
| 62 | if len(symbol.Declarations) == 0 || (symbol.Flags&(ast.SymbolFlagsModule|ast.SymbolFlagsTransient)) == 0 { |
| 63 | return nil |
| 64 | } |
| 65 | |
| 66 | if decl := core.Find(symbol.Declarations, func(d *ast.Node) bool { return !ast.IsSourceFile(d) && !ast.IsModuleDeclaration(d) }); decl != nil { |
| 67 | return decl.Symbol() |
| 68 | } |
| 69 | return nil |
| 70 | } |
| 71 | |
| 72 | func getLocalSymbolForExportSpecifier(referenceLocation *ast.Node, referenceSymbol *ast.Symbol, exportSpecifier *ast.ExportSpecifier, ch *checker.Checker) *ast.Symbol { |
| 73 | if isExportSpecifierAlias(referenceLocation, exportSpecifier) { |
no test coverage detected