diff options
author | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-02-12 00:45:57 +0400 |
---|---|---|
committer | Daniel Grunwald <daniel@danielgrunwald.de> | 2014-02-14 21:04:42 +0400 |
commit | 95141c8e4a338739b980e1e360409e414134d9ac (patch) | |
tree | 618bf8fdc36898c7d8c73cbcf7706594fa5b928b /ICSharpCode.NRefactory | |
parent | c05dbd09a6135dc8f6c0d46679e0aab09fbb8c38 (diff) |
Fix ICompilation.Import(ISymbol) for namespaces in extern alias.
Diffstat (limited to 'ICSharpCode.NRefactory')
-rw-r--r-- | ICSharpCode.NRefactory/TypeSystem/TypeSystemExtensions.cs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/ICSharpCode.NRefactory/TypeSystem/TypeSystemExtensions.cs b/ICSharpCode.NRefactory/TypeSystem/TypeSystemExtensions.cs index b7215c0e..05264f1b 100644 --- a/ICSharpCode.NRefactory/TypeSystem/TypeSystemExtensions.cs +++ b/ICSharpCode.NRefactory/TypeSystem/TypeSystemExtensions.cs @@ -237,16 +237,7 @@ namespace ICSharpCode.NRefactory.TypeSystem ); } case SymbolKind.Namespace: - INamespace ns = (INamespace)symbol; - if (ns.ParentNamespace == null) { - return compilation.RootNamespace; - } else { - INamespace importedParent = Import(compilation, ns.ParentNamespace); - if (importedParent != null) - return importedParent.GetChildNamespace(ns.Name); - else - return null; - } + return Import(compilation, (INamespace)symbol); default: if (symbol is IEntity) return Import(compilation, (IEntity)symbol); |