diff options
| author | Jonas Herzig <me@johni0702.de> | 2019-04-29 19:37:39 +0200 |
|---|---|---|
| committer | Jonas Herzig <me@johni0702.de> | 2019-04-29 19:39:47 +0200 |
| commit | 626a2983f14aff02fe61231bee6d04fb47a27b44 (patch) | |
| tree | 01d8f4736bf8146baeb3d6e9f2519f1d94589390 /src/test | |
| parent | 0f2cc5e5ae889ede5f8079fc91ee153fa9a1d4ae (diff) | |
| download | Remap-626a2983f14aff02fe61231bee6d04fb47a27b44.tar.gz Remap-626a2983f14aff02fe61231bee6d04fb47a27b44.tar.bz2 Remap-626a2983f14aff02fe61231bee6d04fb47a27b44.zip | |
Prevent local variables from shadowing of implicit member references
E.g. `Entity#posX` is remapped to `x` which may then be shadowed by
a local variable with the same name.
Since I cannot figure out how to get JDT to give me a list of all
variables in scope at a particular node, the solution employed is to
just forbid any implicit references to remapped members.
This finds quite a few false positives (but not too many to manually
deal with), so I'd be quite happy to switch to another solution if
one becomes available.
Diffstat (limited to 'src/test')
0 files changed, 0 insertions, 0 deletions
