|
|
|
@ -728,7 +728,6 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
@@ -728,7 +728,6 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
|
|
|
|
|
return HandleKeywordCompletion(tokenIndex, token); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if (identifierStart == null) { |
|
|
|
|
var accCtx = HandleAccessorContext(); |
|
|
|
|
if (accCtx != null) { |
|
|
|
@ -744,6 +743,10 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
@@ -744,6 +743,10 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
|
|
|
|
|
AutoSelect = false; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// new { b$ }
|
|
|
|
|
if (n is IdentifierExpression && n.Parent is AnonymousTypeCreateExpression) |
|
|
|
|
return null; |
|
|
|
|
|
|
|
|
|
// Handle foreach (type name _
|
|
|
|
|
if (n is IdentifierExpression) { |
|
|
|
|
var prev = n.GetPrevNode() as ForeachStatement; |
|
|
|
@ -755,7 +758,6 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
@@ -755,7 +758,6 @@ namespace ICSharpCode.NRefactory.CSharp.Completion
|
|
|
|
|
return null; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Handle object/enumerable initialzer expressions: "new O () { P$"
|
|
|
|
|
if (n is IdentifierExpression && n.Parent is ArrayInitializerExpression && !(n.Parent.Parent is ArrayCreateExpression)) { |
|
|
|
|
var result = HandleObjectInitializer(identifierStart.Unit, n); |
|
|
|
|