Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/xamarin/NRefactory.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Grunwald <daniel@danielgrunwald.de>2014-02-12 00:45:57 +0400
committerDaniel Grunwald <daniel@danielgrunwald.de>2014-02-14 21:04:42 +0400
commit95141c8e4a338739b980e1e360409e414134d9ac (patch)
tree618bf8fdc36898c7d8c73cbcf7706594fa5b928b /ICSharpCode.NRefactory
parentc05dbd09a6135dc8f6c0d46679e0aab09fbb8c38 (diff)
Fix ICompilation.Import(ISymbol) for namespaces in extern alias.
Diffstat (limited to 'ICSharpCode.NRefactory')
-rw-r--r--ICSharpCode.NRefactory/TypeSystem/TypeSystemExtensions.cs11
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);