|
|
|
|
@ -1924,7 +1924,6 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
@@ -1924,7 +1924,6 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
|
|
|
|
|
if (curNode is AttributedNode || baseUnit.GetNodeAt<Expression> (location) == null) { |
|
|
|
|
baseUnit = ParseStub ("a()};"); |
|
|
|
|
} |
|
|
|
|
Print (baseUnit); |
|
|
|
|
var memberLocation = currentMember != null ? currentMember.Region.Begin : currentType.Region.Begin; |
|
|
|
|
var mref = baseUnit.GetNodeAt<MemberReferenceExpression> (location); |
|
|
|
|
if (mref == null) { |
|
|
|
|
@ -2056,7 +2055,6 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
@@ -2056,7 +2055,6 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
|
|
|
|
|
// try expression in anonymous type "new { sample = x$" case
|
|
|
|
|
if (expr == null) { |
|
|
|
|
baseUnit = ParseStub ("a", false); |
|
|
|
|
Print (baseUnit); |
|
|
|
|
expr = baseUnit.GetNodeAt<AnonymousTypeCreateExpression> (location.Line, location.Column); |
|
|
|
|
if (expr != null) |
|
|
|
|
expr = baseUnit.GetNodeAt<Expression> (location.Line, location.Column) ?? expr; |
|
|
|
|
|