Skip to content

Commit

Permalink
Rename the isBinaryBitwiseOperatorExpr method
Browse files Browse the repository at this point in the history
  • Loading branch information
SasinduDilshara committed Jul 12, 2023
1 parent 893363c commit 3fca4a0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4693,7 +4693,7 @@ private void checkTypesForRecords(BLangWaitForAllExpr waitExpr, AnalyzerData dat
for (BLangWaitForAllExpr.BLangWaitKeyValue keyVal : rhsFields) {
String key = keyVal.key.value;
BLangExpression valueExpr = keyVal.valueExpr;
if (valueExpr != null && checkBinaryBitwiseOperations(valueExpr)) {
if (valueExpr != null && isBinaryBitwiseOperatorExpr(valueExpr)) {
dlog.error(valueExpr.pos,
DiagnosticErrorCode.CANNOT_USE_ALTERNATE_WAIT_ACTION_WITHIN_MULTIPLE_WAIT_ACTION);
data.resultType = symTable.semanticError;
Expand Down Expand Up @@ -4722,9 +4722,9 @@ private void checkTypesForRecords(BLangWaitForAllExpr waitExpr, AnalyzerData dat
}
}

private boolean checkBinaryBitwiseOperations(BLangExpression valueExpr) {
private boolean isBinaryBitwiseOperatorExpr(BLangExpression valueExpr) {
if (valueExpr.getKind() == NodeKind.GROUP_EXPR) {
return checkBinaryBitwiseOperations(((BLangGroupExpr) valueExpr).expression);
return isBinaryBitwiseOperatorExpr(((BLangGroupExpr) valueExpr).expression);
}
if (valueExpr.getKind() == NodeKind.BINARY_EXPR
&& ((BLangBinaryExpr) valueExpr).opKind == OperatorKind.BITWISE_OR) {
Expand Down

0 comments on commit 3fca4a0

Please sign in to comment.