diff options
Diffstat (limited to 'src/cuchaz/enigma/Deobfuscator.java')
| -rw-r--r-- | src/cuchaz/enigma/Deobfuscator.java | 12 |
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 |