Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] Parsing comments via JDT AST

Hi All,
   I apologize ahead of time if I've posted to the
wrong list, but I'm not sure the folks on the user
lists will be able to answer my finicky question(s).

The questions are

1) Is there a way to enable parsing of *all* comments,
not just those in front of TypeDeclarations, and
MethodDeclarations? I currently have the
JavaCore.COMPILER_DOC_COMMENT_SUPPORT set to
JavaCore.ENABLED, and yet the parser seems to drop
comments within methods. (The parser "kind" is set to
K_COMPILATION_UNIT)

2) Is there a way to get the parser to parse
LINE_COMMENTs as in "//" and BLOCK_COMMENTs as in "/*
.. */"? Although I see the constant definitions on the
ASTNode class, I never see BlockComment/LineComment(s)
in my ASTs. Any clues as to what I could be doing
wrong?

Thanks,
Denis


		
_______________________________
Do you Yahoo!?
Declare Yourself - Register online to vote today!
http://vote.yahoo.com


Back to the top