提交 495f8aeb 编写于 作者: C CyrusNajmabadi 提交者: GitHub

Avoid directly calling AddError. (#16275)

上级 8d493b0c
......@@ -11250,7 +11250,9 @@ private QueryBodySyntax ParseQueryBody()
selectOrGroupBy = this.ParseGroupClause();
break;
default:
selectOrGroupBy = this.AddError(_syntaxFactory.SelectClause(SyntaxFactory.MissingToken(SyntaxKind.SelectKeyword), this.CreateMissingIdentifierName()), ErrorCode.ERR_ExpectedSelectOrGroup);
selectOrGroupBy = _syntaxFactory.SelectClause(
this.EatToken(SyntaxKind.SelectKeyword, ErrorCode.ERR_ExpectedSelectOrGroup),
this.CreateMissingIdentifierName());
break;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册