diff options
| author | 2014-10-01 00:04:18 -0400 | |
|---|---|---|
| committer | 2014-10-01 00:04:18 -0400 | |
| commit | 5eeee98418bb39367258442a82b75a081a6f91e0 (patch) | |
| tree | 16bd812576caad8a3af7f5616bdcaac7bc30b992 /src/cuchaz/enigma/analysis/SourceIndex.java | |
| parent | fixed nasty issue with renaming inner classes, but alas, more bugs remain (diff) | |
| download | enigma-fork-5eeee98418bb39367258442a82b75a081a6f91e0.tar.gz enigma-fork-5eeee98418bb39367258442a82b75a081a6f91e0.tar.xz enigma-fork-5eeee98418bb39367258442a82b75a081a6f91e0.zip | |
fixed inner class renaming bug
also added smarter sorting to class mappings
Diffstat (limited to '')
| -rw-r--r-- | src/cuchaz/enigma/analysis/SourceIndex.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cuchaz/enigma/analysis/SourceIndex.java b/src/cuchaz/enigma/analysis/SourceIndex.java index 21a499e..0e33de0 100644 --- a/src/cuchaz/enigma/analysis/SourceIndex.java +++ b/src/cuchaz/enigma/analysis/SourceIndex.java | |||
| @@ -90,7 +90,7 @@ public class SourceIndex | |||
| 90 | //System.out.println( String.format( "%s \"%s\" region: %s", node.getNodeType(), name, region ) ); | 90 | //System.out.println( String.format( "%s \"%s\" region: %s", node.getNodeType(), name, region ) ); |
| 91 | 91 | ||
| 92 | // for tokens representing inner classes, make sure we only get the simple name | 92 | // for tokens representing inner classes, make sure we only get the simple name |
| 93 | int pos = node.getText().lastIndexOf( '$' ); | 93 | int pos = name.lastIndexOf( '$' ); |
| 94 | if( pos >= 0 ) | 94 | if( pos >= 0 ) |
| 95 | { | 95 | { |
| 96 | token.end -= pos + 1; | 96 | token.end -= pos + 1; |