MegJayan commented on code in PR #4533:
URL: https://github.com/apache/netbeans/pull/4533#discussion_r996652911


##########
java/java.source.base/src/org/netbeans/modules/java/source/pretty/VeryPretty.java:
##########
@@ -2091,8 +2092,30 @@ public void visitErroneous(JCErroneous tree) {
 
     @Override
     public void visitTree(JCTree tree) {
-       print("(UNKNOWN: " + tree + ")");
-       newline();
+        print("(UNKNOWN: " + tree + ")");
+        newline();
+    }
+    
+    @Override
+    public void visitRecordPattern(JCRecordPattern tree) {
+        print((JCExpression) tree.deconstructor);
+        print("(");
+        Iterator<JCPattern> it = tree.nested.iterator();
+        while (it.hasNext()) {
+            JCPattern pattern = it.next();
+            if (pattern instanceof JCBindingPattern) {

Review Comment:
   @lahodaj : doAccept(pattern, true) takes a pattern of type DocTree right? Is 
it proper to use this here as we are not dealing with patterns inside 
documentation syntax tree?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to