Browse Source

Fixed unit test.

newNRvisualizers
mike 14 years ago
parent
commit
8e66275c97
  1. 4
      ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs

4
ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs

@ -1261,8 +1261,8 @@ namespace ICSharpCode.NRefactory.CSharp.Completion @@ -1261,8 +1261,8 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
}
}
var isAsWrapper = new CompletionDataWrapper (this);
var def = isAsType.GetDefinition();
AddTypesAndNamespaces(isAsWrapper, GetState(), null, t => t.GetDefinition() != null && def != null && (isAsType == null || t.GetDefinition().IsDerivedFrom(def)), m => false);
var def = isAsType != null ? isAsType.GetDefinition() : null;
AddTypesAndNamespaces(isAsWrapper, GetState(), null, t => t.GetDefinition() == null || def == null || t.GetDefinition().IsDerivedFrom(def), m => false);
return isAsWrapper.Result;
// {
// CompletionDataList completionList = new ProjectDomCompletionDataList ();

Loading…
Cancel
Save