提交 b8a225d7 编写于 作者: J Joakim Antonsson

fix issue 8315

上级 5b7d263a
......@@ -40,6 +40,17 @@ private bool IsValidContextForSelect(CSharpSyntaxContext context)
var lastToken = select.Expression.GetLastToken(includeSkipped: true);
var memberAccessExpression = select.Expression as MemberAccessExpressionSyntax;
if(memberAccessExpression != null && string.IsNullOrEmpty(memberAccessExpression.Name.ToString()))
{
return false;
}
//if(lastToken.Kind() == SyntaxKind.DotToken)
//{
// return false;
//}
if (lastToken == token)
{
return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册