junichi11 commented on a change in pull request #2674:
URL: https://github.com/apache/netbeans/pull/2674#discussion_r556217131
##########
File path:
php/php.editor/src/org/netbeans/modules/php/editor/parser/astnodes/FieldsDeclaration.java
##########
@@ -78,6 +78,54 @@ public static FieldsDeclaration create(FieldsDeclaration
declaration, List<Attri
);
}
+ /**
+ * Convert from FormalParameter to FieldsDeclaration.
+ *
+ * @param parameter
+ * @return the FieldsDeclaration, can be {@code null} if the parameter
+ * doesn't have a visibility modifier.
+ */
+ @CheckForNull
+ public static FieldsDeclaration create(FormalParameter parameter) {
Review comment:
Convert from FormalParameter to FiledsDeclaration if needed.
e.g. Scan a converted one in a visitor.
----------------------------------------------------------------
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.
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