Skip to content
Browse files

Fixed potential resolve issue.

Note: That doesn't really fix the problem - only 90% of the cases. The
partial class representation could need a change.
  • Loading branch information...
1 parent c498bc8 commit fa5e7e504551fe7ab549e2fa727637357e3761d7 @mkrueger mkrueger committed Oct 26, 2011
View
4 ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngine.cs
@@ -1217,7 +1217,9 @@ public ITypeDefinition GetTypeFromContext (ITypeDefinition type)
{
if (type == null || type.DeclaringType != null)
return type;
- var result = ctx.GetTypeDefinition (type.Namespace, type.Name, type.TypeParameterCount, StringComparer.Ordinal);
+ var result = ctx.GetTypeDefinition (type.Namespace, type.Name, type.TypeParameterCount, StringComparer.Ordinal) ?? type;
+ if (result.GetParts ().Count == 1)
+ return type;
// Console.WriteLine ("result:"+ result);
return result;
}
View
2 ICSharpCode.NRefactory.CSharp/Completion/CSharpCompletionEngineBase.cs
@@ -203,8 +203,6 @@ protected void AppendMissingClosingBrackets (StringBuilder wrapper, string membe
if (!didAppendSemicolon)
wrapper.Append (';');
}
- Console.WriteLine ("1111111111");
- Console.WriteLine (wrapper);
}
protected CompilationUnit ParseStub (string continuation, bool appendSemicolon = true)

0 comments on commit fa5e7e5

Please sign in to comment.
Something went wrong with that request. Please try again.