summaryrefslogtreecommitdiff
path: root/src/cuchaz/enigma/Deobfuscator.java
diff options
context:
space:
mode:
authorGravatar jeff2015-03-10 00:55:03 -0400
committerGravatar jeff2015-03-10 00:55:03 -0400
commit430df87ba5d855ca29bc53a5765a2862d2209098 (patch)
treeee427f009da8b29e7a66a4b4ce882120f9bb2cbf /src/cuchaz/enigma/Deobfuscator.java
parentfield matcher is starting to be useful (diff)
downloadenigma-fork-430df87ba5d855ca29bc53a5765a2862d2209098.tar.gz
enigma-fork-430df87ba5d855ca29bc53a5765a2862d2209098.tar.xz
enigma-fork-430df87ba5d855ca29bc53a5765a2862d2209098.zip
tweaks and improvements to field matching gui
Diffstat (limited to 'src/cuchaz/enigma/Deobfuscator.java')
-rw-r--r--src/cuchaz/enigma/Deobfuscator.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/cuchaz/enigma/Deobfuscator.java b/src/cuchaz/enigma/Deobfuscator.java
index 35cfd0b..f5012bd 100644
--- a/src/cuchaz/enigma/Deobfuscator.java
+++ b/src/cuchaz/enigma/Deobfuscator.java
@@ -225,8 +225,18 @@ public class Deobfuscator {
225 } 225 }
226 226
227 public SourceIndex getSourceIndex(CompilationUnit sourceTree, String source) { 227 public SourceIndex getSourceIndex(CompilationUnit sourceTree, String source) {
228 return getSourceIndex(sourceTree, source, null);
229 }
230
231 public SourceIndex getSourceIndex(CompilationUnit sourceTree, String source, Boolean ignoreBadTokens) {
232
228 // build the source index 233 // build the source index
229 SourceIndex index = new SourceIndex(source); 234 SourceIndex index;
235 if (ignoreBadTokens != null) {
236 index = new SourceIndex(source, ignoreBadTokens);
237 } else {
238 index = new SourceIndex(source);
239 }
230 sourceTree.acceptVisitor(new SourceIndexVisitor(), index); 240 sourceTree.acceptVisitor(new SourceIndexVisitor(), index);
231 241
232 // DEBUG 242 // DEBUG