How to search all references of a method ??? [message #1797856] |
Wed, 07 November 2018 14:13 |
Eclipse User |
|
|
|
I want to know the principle of finding the references of an ASTNode. I find a class in org.eclipse.jdt.ui
named LinkedNodeFinder.
public static SimpleName[] findByBinding(ASTNode root, IBinding binding) {
ArrayList<SimpleName> res= new ArrayList<>();
BindingFinder nodeFinder= new BindingFinder(binding, res);
root.accept(nodeFinder);
return res.toArray(new SimpleName[res.size()]);
}https://discord.software/ https://downloader.vip/adobe-reader/ https://downloader.vip/itunes/
The code use visitor pattern to check each binding within root node. However, I am confused how to find all references
in a whole project? Check the target binding for each CompilationUnit?? Where can I find relative code or anyone give me
some tips?
[Updated on: Thu, 08 November 2018 19:33] by Moderator Report message to a moderator
|
|
|
|
Powered by
FUDForum. Page generated in 0.03463 seconds