[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[jdt-core-dev] APIs for finding un-used variables.

Hi all:

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?

Really appreciate your help!


--

ÂÂ Â Â Â ÂThanks

ÂÂ Â Â Â Â Â Â Â Â ÂSai