I am fascinated by this features provided by JDT: it highlights un-used variables in a program.
for example:
x = 1; y = 1;Â // y is not used, jdt will give a warning to highlight it foo(x);
I am wondering how this feature is implemented, is there any APIs to expose un-used variables? Could anyone kindly point me to the correct place in JDT source code?