Use `_consumeIdentifier` instead of `_consume`

This commit is contained in:
tibotix 2023-11-17 17:55:18 +01:00
parent 5e26cae5e9
commit e08bb30585
No known key found for this signature in database
GPG Key ID: 96DF02FF50AC54C7
1 changed files with 1 additions and 3 deletions

View File

@ -1690,9 +1690,7 @@ class Parser {
}
SingleColumnSetComponent _singleColumnSetComponent() {
final columnName =
_consume(TokenType.identifier, 'Expected a column name to set')
as IdentifierToken;
final columnName = _consumeIdentifier('Expected a column name to set');
final reference = Reference(columnName: columnName.identifier)
..setSpan(columnName, columnName);
_consume(TokenType.equal, 'Expected = after the column name');