Add trailing commas for readability

This commit is contained in:
tibotix 2023-11-17 18:04:21 +01:00
parent 26fd4bf11e
commit ff11a2a757
No known key found for this signature in database
GPG Key ID: 96DF02FF50AC54C7
1 changed files with 37 additions and 31 deletions

View File

@ -50,8 +50,12 @@ void main() {
Reference(entityName: 'b', columnName: 'id'),
token(TokenType.equal),
Reference(entityName: 'foo', columnName: 'id'),
))))
]));
),
),
),
)
]),
);
});
test('parses updates with column-name-list and scalar rowValues', () {
@ -65,10 +69,12 @@ void main() {
columns: [Reference(columnName: 'a'), Reference(columnName: 'b')],
rowValue: Tuple(expressions: [
Reference(columnName: "b"),
BinaryExpression(NumericLiteral(3), token(TokenType.plus),
NumericLiteral(4)),
], usedAsRowValue: true))
]));
BinaryExpression(
NumericLiteral(3), token(TokenType.plus), NumericLiteral(4)),
], usedAsRowValue: true),
)
]),
);
});
test('parses updates with FROM clause', () {