Browse Source

Resolve object create expression, if the parent is one.

That causes a jump/tooltip for the constructor rather than the class
on a object create expression.
newNRvisualizers
Mike Krüger 14 years ago
parent
commit
fa5ec27072
  1. 4
      ICSharpCode.NRefactory.CSharp/Resolver/ResolveAtLocation.cs

4
ICSharpCode.NRefactory.CSharp/Resolver/ResolveAtLocation.cs

@ -58,6 +58,10 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver @@ -58,6 +58,10 @@ namespace ICSharpCode.NRefactory.CSharp.Resolver
return null;
}
if (resolvableNode != null && resolvableNode.Parent is ObjectCreateExpression) {
resolvableNode = resolvableNode.Parent;
}
InvocationExpression parentInvocation = null;
if ((resolvableNode is IdentifierExpression || resolvableNode is MemberReferenceExpression || resolvableNode is PointerReferenceExpression)) {
// we also need to resolve the invocation

Loading…
Cancel
Save