File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
liquidjava-verifier/src/main/java/liquidjava/rj_language/ast/formatter Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 2121import liquidjava .utils .Utils ;
2222
2323/**
24- * Formatter expressions that preserves only the parentheses required by precedence and associativity rules
25- * Also formats variable names using {@link VariableFormatter}
24+ * Formatter for expressions that only adds parentheses when required by precedence and associativity rules and formats
25+ * variable names using {@link VariableFormatter}
2626 */
2727public class ExpressionFormatter implements ExpressionVisitor <String > {
2828
@@ -55,8 +55,7 @@ private String formatCondition(Expression child) {
5555 }
5656
5757 private String formatArguments (List <Expression > args ) {
58- return args .stream ().map (expression -> formatParentheses (expression , false ))
59- .collect (Collectors .joining (", " ));
58+ return args .stream ().map (expression -> formatParentheses (expression , false )).collect (Collectors .joining (", " ));
6059 }
6160
6261 private boolean needsParentheses (Expression parent , Expression child ) {
You can’t perform that action at this time.
0 commit comments