summaryrefslogtreecommitdiff
path: root/src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java
diff options
context:
space:
mode:
authorGravatar jeff2014-09-28 15:20:54 -0400
committerGravatar jeff2014-09-28 15:20:54 -0400
commitcf3ffcee30083a71e68e3edb9ecbb936cc255992 (patch)
treef9a6415d7eef1e76640b07238d2d08daecedde17 /src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java
parentimplemented mark-as-deobfuscated and reset-to-obfuscated (diff)
downloadenigma-fork-cf3ffcee30083a71e68e3edb9ecbb936cc255992.tar.gz
enigma-fork-cf3ffcee30083a71e68e3edb9ecbb936cc255992.tar.xz
enigma-fork-cf3ffcee30083a71e68e3edb9ecbb936cc255992.zip
added proper support for renaming constructors
Diffstat (limited to 'src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java')
-rw-r--r--src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java b/src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java
index 5d8a383..fc8cd66 100644
--- a/src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java
+++ b/src/cuchaz/enigma/analysis/SourceIndexClassVisitor.java
@@ -28,7 +28,6 @@ import cuchaz.enigma.mapping.BehaviorEntry;
28import cuchaz.enigma.mapping.BehaviorEntryFactory; 28import cuchaz.enigma.mapping.BehaviorEntryFactory;
29import cuchaz.enigma.mapping.ClassEntry; 29import cuchaz.enigma.mapping.ClassEntry;
30import cuchaz.enigma.mapping.ConstructorEntry; 30import cuchaz.enigma.mapping.ConstructorEntry;
31import cuchaz.enigma.mapping.Entry;
32import cuchaz.enigma.mapping.FieldEntry; 31import cuchaz.enigma.mapping.FieldEntry;
33 32
34public class SourceIndexClassVisitor extends SourceIndexVisitor 33public class SourceIndexClassVisitor extends SourceIndexVisitor
@@ -63,10 +62,7 @@ public class SourceIndexClassVisitor extends SourceIndexVisitor
63 if( node.getIdentifierToken().getStartLocation() != TextLocation.EMPTY ) 62 if( node.getIdentifierToken().getStartLocation() != TextLocation.EMPTY )
64 { 63 {
65 ClassEntry classEntry = new ClassEntry( ref.getInternalName() ); 64 ClassEntry classEntry = new ClassEntry( ref.getInternalName() );
66 index.addReference( 65 index.addReference( node.getIdentifierToken(), classEntry, m_classEntry );
67 node.getIdentifierToken(),
68 new EntryReference<Entry,Entry>( classEntry, m_classEntry )
69 );
70 } 66 }
71 67
72 return recurse( node, index ); 68 return recurse( node, index );