-
Enhancement
-
Resolution: Duplicate
-
P4
-
None
-
10
-
None
-
generic
-
generic
This was reported via nashorn-dev alias.
http://mail.openjdk.java.net/pipermail/nashorn-dev/2016-April/006095.html
e-mail content reproduced here for convenience:
---- e-mail starts here --
Hello,
NetBeans used a modified Rhino that had useful features for an IDE like
comment nodes and parser-level sanitization.
As far as I know there is no way to get the comments in the Nashorn Tree
API (created as part of JEP 236) or in the jdk.nashorn.internal.ir Node
subclasses.
Obviously having access to comment contents and comment offsets is very
useful. An IDE, for example, would provide code folding for the multiline
comment.
Am I missing some proper way to get this information?
I believe an extra option for Parser.create() would be nice (plus a
CommentTree and a visitComment method).
--emi
--- e-mail ends here --
http://mail.openjdk.java.net/pipermail/nashorn-dev/2016-April/006095.html
e-mail content reproduced here for convenience:
---- e-mail starts here --
Hello,
NetBeans used a modified Rhino that had useful features for an IDE like
comment nodes and parser-level sanitization.
As far as I know there is no way to get the comments in the Nashorn Tree
API (created as part of JEP 236) or in the jdk.nashorn.internal.ir Node
subclasses.
Obviously having access to comment contents and comment offsets is very
useful. An IDE, for example, would provide code folding for the multiline
comment.
Am I missing some proper way to get this information?
I believe an extra option for Parser.create() would be nice (plus a
CommentTree and a visitComment method).
--emi
--- e-mail ends here --
- duplicates
-
JDK-8185253 Comment nodes and keywords in Nashorn AST
-
- Closed
-