|
|
Re: ASTParser having problems with line comments [message #633725 is a reply to message #631973] |
Tue, 19 October 2010 06:47 |
Daniela da Cruz Messages: 1 Registered: October 2010 |
Junior Member |
|
|
Hello.
I am having a problem or an issue with the ASTParser.
I have the following very basic example:
public class Hello {
public static void main(String[] args) {
/* some comment inside method
* to test,
*/
int a;
}
}
And the AST parser doesn't show it in the tree.
When printing the AST tree it shows:
CompilationUnit {
TypeDeclaration {
Modifier {
}
SimpleName {
}
MethodDeclaration {
Modifier {
}
Modifier {
}
PrimitiveType {
}
SimpleName {
}
SingleVariableDeclaration {
ArrayType {
SimpleType {
SimpleName {
}
}
}
SimpleName {
}
}
Block {
VariableDeclarationStatement {
PrimitiveType {
}
VariableDeclarationFragment {
SimpleName {
}
}
}
}
}
}
}
Can anyone give me an hint about what is going one?
thanks
daniela
[Updated on: Tue, 19 October 2010 06:48] Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03198 seconds