i created a parser of ASTParser type for a compilationunit. I want to use this parser to list all the variable declarations in the functions present in this particular compilationunit.Should i use ASTVisitor? if so how or is there any other way? help
Share
You can try following this thread
you should have a look at
org.eclipse.jdt.coreplugin and speciallyASTParserclass there.Just to launch the parser, the following code would be enough:
in workspace.
More details and code sample in this thread