VariableDeclarationFragment node resolveBindind() returns null in eclipse/jdt/ast
This happens because of the following from the setResolveBindings docs: Binding information is obtained from the Java model. This means that the compilation unit must be located relative to the Java model. This happens automatically when the source code comes from either setSource(ICompilationUnit) or setSource(IClassFile). When source is supplied by setSource(char[]), the location must be … Read more