Add toString rendering for ExpressionWithComment.
@@ -199,6 +199,15 @@ class ToStringRenderer {
return false;
}
+ @Override
+ public boolean enterExpressionWithComment(ExpressionWithComment expression) {
+ print("/*");
+ print(expression.getComment());
+ print("*/");
+ accept(expression.getExpression());
+ return false;
+ }
+
@Override
public boolean enterField(Field field) {
print(field.getDescriptor().getTypeDescriptor());
