Community
Participate
Working Groups
Using 1203, I need to set needReferenceInfo to true to get the local declarations. If needReferenceInfo is false, then even if I create a SourceElementParser with reportLocalDeclarations set to true, I don't get them. The bug seems to come from the parseCompilationUnit methods on SourceElementParser. It parses the method bodies only if needReferenceInfo is true instead of checking if localDeclarationVisitor is not null.
Pls fix
In fact it has to check both. The right test is: localDeclarationVisitor != null || needReferenceInfo. Because you might want to get the reference without the local declaration or visa versa.
Fixed and released in 2.1 stream.
Verified.