C++: Support repeated initializers in dbscheme.

This commit is contained in:
Alexandre Boulgakov
2023-03-29 17:14:41 +01:00
parent 2b9daed26a
commit d0a77a8433
2 changed files with 11 additions and 8 deletions

View File

@@ -192,7 +192,8 @@ class ClassAggregateLiteral extends AggregateLiteral {
*/
Expr getFieldExpr(Field field) {
field = classType.getAField() and
aggregate_field_init(underlyingElement(this), unresolveElement(result), unresolveElement(field))
aggregate_field_init(underlyingElement(this), unresolveElement(result), unresolveElement(field),
_)
}
/**
@@ -264,7 +265,7 @@ class ArrayOrVectorAggregateLiteral extends AggregateLiteral {
* element `elementIndex`, if present.
*/
Expr getElementExpr(int elementIndex) {
aggregate_array_init(underlyingElement(this), unresolveElement(result), elementIndex)
aggregate_array_init(underlyingElement(this), unresolveElement(result), elementIndex, _)
}
/**