[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [jdt-core-dev] Question about Comments and Whitespace
|
My bad for not putting it in the right list....
getComment list is great...but it doesn't return it 'in order' So if there
were a line comment before some FOR structure then I don't really know it
goes there I just know the compilation unit has a comment. How do I know
where it goes in relation to the tree?
Also for whitespace I guess I mean while visiting the AST Tree.
Thanks!
Kailey
Frederic Fusier wrote:
>
> Please ask this kind of question on eclipse.tools.jdt newsgroup, this list
> is only for development purposes...
>
> Saying that, to answer the question on comments list,
> org.eclipse.jdt.core.dom.CompilationUnit#getCommentList() should address
> your need.
> Please be clearer on what you mean by "retain some type of whitespace": is
> it while visiting the AST tree, while writing it, parsing the compilation
> unit, others...?
> Is it in only in comments or all over the code?
>
> Cordialement/Regards,
>
> Frédéric
>
>
>
>
>
> "Kailey Joanette"
> <kaileyjo@bigblue
> bubble.com> To
> Sent by: jdt-core-dev@xxxxxxxxxxx
> jdt-core-dev-boun cc
> ces@xxxxxxxxxxx
> Subject
> [jdt-core-dev] Question about
> 04/03/2007 02:20 Comments and Whitespace
> PM
>
>
> Please respond to
> "Eclipse JDT Core
> developers list."
> <jdt-core-dev@ecl
> ipse.org>
>
>
>
>
>
>
> Is there any way to have comments including in the right order in the AST
> tree? I know I have this structure in compilationUnit that has all of the
> comments but there is no indication of where it would go in the parsing of
> the tree.
>
> Also, is there any way to retain some type of whitespace? In particular I
> would like to keep line breaks around (unless I explicitly choose not to).
>
> Kailey_______________________________________________
> jdt-core-dev mailing list
> jdt-core-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jdt-core-dev
>
>
> _______________________________________________
> jdt-core-dev mailing list
> jdt-core-dev@xxxxxxxxxxx
> https://dev.eclipse.org/mailman/listinfo/jdt-core-dev
>
>
--
View this message in context: http://www.nabble.com/Question-about-Comments-and-Whitespace-tf3512056.html#a9814130
Sent from the Eclipse JDT - core mailing list archive at Nabble.com.