|
|
|
@ -1399,7 +1399,8 @@ namespace ICSharpCode.NRefactory.CSharp.Completion |
|
|
|
var mref = baseUnit.GetNodeAt<MemberReferenceExpression> (location); |
|
|
|
var mref = baseUnit.GetNodeAt<MemberReferenceExpression> (location); |
|
|
|
Expression expr; |
|
|
|
Expression expr; |
|
|
|
if (mref != null) { |
|
|
|
if (mref != null) { |
|
|
|
expr = mref.Target; |
|
|
|
expr = mref.Target.Clone (); |
|
|
|
|
|
|
|
mref.Parent.ReplaceWith (expr); |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
var tref = baseUnit.GetNodeAt<TypeReferenceExpression> (location); |
|
|
|
var tref = baseUnit.GetNodeAt<TypeReferenceExpression> (location); |
|
|
|
var memberType = tref != null ? tref.Type as MemberType : null; |
|
|
|
var memberType = tref != null ? tref.Type as MemberType : null; |
|
|
|
|