I am writing an Eclipse plug-in that uses JDT AST\'s ASTParser
to parse a method. I am looking within that method for the creation of a particular type of obje
Tucked away at the bottom of the overview of ASTParser.setKind()
, carefully hidden from people troubleshooting resolveBinding()
and setResolveBindings()
, is the statement
Binding information is only computed when
kind
isK_COMPILATION_UNIT
.
(from the online Javadoc)
I don't understand offhand why this would be the case, but it does seem to point pretty clearly at what needs to be different!