Skip to content

Commit

Permalink
Fix Darwin codegen support for grouping in YAML expressions. (#21808)
Browse files Browse the repository at this point in the history
  • Loading branch information
bzbarsky-apple authored and pull[bot] committed Oct 5, 2023
1 parent fcc8782 commit 4f934e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/darwin/Framework/CHIP/templates/helper.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ async function asTypedExpressionFromObjectiveC(value, type)
let expr = [];
for (let i = 0; i < tokens.length; i++) {
const token = tokens[i];
if ([ '+', '-', '/', '*', '%' ].includes(token)) {
if ([ '+', '-', '/', '*', '%', '(', ')' ].includes(token)) {
expr[i] = token;
} else if (!isNaN(token.replace(/ULL$|UL$|U$|LL$|L$/i, ''))) {
expr[i] = await appHelper.asTypedLiteral.call(this, token, type);
Expand Down

0 comments on commit 4f934e2

Please sign in to comment.