lahodaj commented on a change in pull request #1877: [NETBEANS-3604]Supports
for Records (JEP 359) in JDK-14"
URL: https://github.com/apache/netbeans/pull/1877#discussion_r367894265
##########
File path:
java/java.editor.base/src/org/netbeans/modules/java/editor/base/semantic/SemanticHighlighterBase.java
##########
@@ -573,6 +582,27 @@ private void addModifiers(Element decl,
Collection<ColoringAttributes> c) {
return null;
}
+ private boolean isRecordComponent(ElementKind kind) {
+ return "RECORD_COMPONENT".equals(kind.name());
+ }
+
+ private Element toRecordComponent(Element el) {
Review comment:
Can TreeShims.toRecordComponent be used here?
----------------------------------------------------------------
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]
With regards,
Apache Git Services
---------------------------------------------------------------------
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