Skip to content

Commit

Permalink
Revert "Try alternative way of determining parenthesis level for `Bin…
Browse files Browse the repository at this point in the history
…aryExpression` when AST doesn't provide `_INSIDE_PARENTHESES_LEVEL` flag (#4807)"

This reverts commit e59e48b.
  • Loading branch information
timtebeek committed Dec 27, 2024
1 parent f4038c2 commit f1dc9b9
Showing 1 changed file with 0 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2540,10 +2540,6 @@ private int sourceLengthOfString(ConstantExpression expr) {
} else if (node instanceof MethodCallExpression) {
MethodCallExpression expr = (MethodCallExpression) node;
return determineParenthesisLevel(expr.getObjectExpression().getLineNumber(), expr.getLineNumber(), expr.getObjectExpression().getColumnNumber(), expr.getColumnNumber());
} else if (node instanceof BinaryExpression) {
BinaryExpression expr = (BinaryExpression) node;
return determineParenthesisLevel(expr.getLeftExpression().getLineNumber(), expr.getLineNumber(), expr.getLeftExpression().getColumnNumber(), expr.getColumnNumber());

}
return null;
}
Expand Down

0 comments on commit f1dc9b9

Please sign in to comment.