Browse Source

GetClassTypeReference: remove redundant code

newNRvisualizers
Daniel Grunwald 13 years ago
parent
commit
359bb7b848
  1. 2
      ICSharpCode.NRefactory/TypeSystem/Implementation/GetClassTypeReference.cs

2
ICSharpCode.NRefactory/TypeSystem/Implementation/GetClassTypeReference.cs

@ -100,7 +100,7 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation @@ -100,7 +100,7 @@ namespace ICSharpCode.NRefactory.TypeSystem.Implementation
}
if (type == null) {
var compilation = context.Compilation;
foreach (var asm in (context.CurrentAssembly != null ? new[] { context.CurrentAssembly }.Concat(compilation.Assemblies) : compilation.Assemblies)) {
foreach (var asm in compilation.Assemblies) {
type = asm.GetTypeDefinition(fullTypeName);
if (type != null)
break;

Loading…
Cancel
Save