Skip to content

Commit

Permalink
overriden addParentheses for subtract expressions
Browse files Browse the repository at this point in the history
  • Loading branch information
mtygesen committed Jan 7, 2025
1 parent e5e4294 commit f9a3142
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,11 @@ public void getVariables(Set<Variable> variables) {
right.getVariables(variables);
}

@Override
public boolean addParentheses() {
return parent != null;
}

@Override
public String toString() {
if (addParentheses()) {
Expand Down

0 comments on commit f9a3142

Please sign in to comment.