diff options
Diffstat (limited to 'src/cuchaz/enigma/analysis/SourceIndex.java')
| -rw-r--r-- | src/cuchaz/enigma/analysis/SourceIndex.java | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/cuchaz/enigma/analysis/SourceIndex.java b/src/cuchaz/enigma/analysis/SourceIndex.java index b43ab61..e31b803 100644 --- a/src/cuchaz/enigma/analysis/SourceIndex.java +++ b/src/cuchaz/enigma/analysis/SourceIndex.java | |||
| @@ -82,10 +82,11 @@ public class SourceIndex { | |||
| 82 | // DEBUG | 82 | // DEBUG |
| 83 | // System.out.println( String.format( "%s \"%s\" region: %s", node.getNodeType(), name, region ) ); | 83 | // System.out.println( String.format( "%s \"%s\" region: %s", node.getNodeType(), name, region ) ); |
| 84 | 84 | ||
| 85 | // for tokens representing inner classes, make sure we only get the simple name | 85 | // if the token has a $ in it, something's wrong. Ignore this token |
| 86 | int pos = name.lastIndexOf('$'); | 86 | if (name.lastIndexOf('$') >= 0) { |
| 87 | if (pos >= 0) { | 87 | // DEBUG |
| 88 | token.end -= pos + 1; | 88 | System.err.println(String.format("WARNING: %s \"%s\" is probably a bad token. It was ignored", node.getNodeType(), name)); |
| 89 | return null; | ||
| 89 | } | 90 | } |
| 90 | 91 | ||
| 91 | return token; | 92 | return token; |