From 377d0021f063e2daa97ec098336dfb5f8b16260f Mon Sep 17 00:00:00 2001 From: Hackerpilot Date: Tue, 4 Mar 2014 23:43:42 -0800 Subject: [PATCH] Somehow #88 popped up again. This fixes it. --- conversion/second.d | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/conversion/second.d b/conversion/second.d index f1ca360..24fdc1d 100644 --- a/conversion/second.d +++ b/conversion/second.d @@ -64,7 +64,7 @@ private: // This method is really ugly due to the casts... static ACSymbol* createImportSymbols(ImportInformation info, - Scope* currentScope) + Scope* currentScope, ACSymbol*[] moduleSymbols) { immutable string firstPart = info.importParts[0]; ACSymbol*[] symbols = currentScope.getSymbolsByName(firstPart); @@ -85,6 +85,7 @@ private: currentSymbol = s; } currentSymbol.kind = CompletionKind.moduleName; + currentSymbol.parts.insert(moduleSymbols); return currentSymbol; } @@ -95,7 +96,7 @@ private: { string location = ModuleCache.resolveImportLoctation(importInfo.modulePath); ACSymbol*[] symbols = location is null ? [] : ModuleCache.getSymbolsInModule(location); - ACSymbol* moduleSymbol = createImportSymbols(importInfo, currentScope); + ACSymbol* moduleSymbol = createImportSymbols(importInfo, currentScope, symbols); currentScope.symbols.insert(moduleSymbol); currentScope.symbols.insert(symbols); if (importInfo.importedSymbols.length == 0)