Add parsing arrays and objects as binary operands (#7661)

* Add parsing arrays and objects as binary operands

* Add sim test showing the error message
This commit is contained in:
Jonathan Tran
2025-07-01 19:33:36 -04:00
committed by GitHub
parent a85a534d6b
commit fba62dab98
17 changed files with 336 additions and 3 deletions

View File

@ -51,6 +51,9 @@ impl BinaryPart {
BinaryPart::CallExpressionKw(call_expression) => call_expression.module_id,
BinaryPart::UnaryExpression(unary_expression) => unary_expression.module_id,
BinaryPart::MemberExpression(member_expression) => member_expression.module_id,
BinaryPart::ArrayExpression(e) => e.module_id,
BinaryPart::ArrayRangeExpression(e) => e.module_id,
BinaryPart::ObjectExpression(e) => e.module_id,
BinaryPart::IfExpression(e) => e.module_id,
BinaryPart::AscribedExpression(e) => e.module_id,
}