I can't seem to get the actual value of the comments out of a parse
tree without doing the offset/length math. Is this by design? Wouldn't
it be more useful to be able to have comment.getValue() or
comment.getText() to return the actual text of the comment minus the
delimiters?
I'd be happy to give implementing this a shot if that's the eventual
plan.
cheers,
Charles
Any takers?
I forwarded your question to the creator of the AST interface. He's
doing a big refactoring of the new AST code so it's a smaller delta
from previous Rhino versions, so perhaps it's worth waiting for that
refactoring to be complete.
Thanks,
Norris
Is there a snapshot of the refactoring available? I didn't find anything
in the CVS. And I would like to know if the interface is changed to
utilize method signatures instead of down casting every Node to the most
generic interface.
thanks,
Norbert