diff options
Diffstat (limited to 'src/main/java/cuchaz/enigma')
| -rw-r--r-- | src/main/java/cuchaz/enigma/analysis/SourceIndexMethodVisitor.java | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/main/java/cuchaz/enigma/analysis/SourceIndexMethodVisitor.java b/src/main/java/cuchaz/enigma/analysis/SourceIndexMethodVisitor.java index 2a638db..d88eae3 100644 --- a/src/main/java/cuchaz/enigma/analysis/SourceIndexMethodVisitor.java +++ b/src/main/java/cuchaz/enigma/analysis/SourceIndexMethodVisitor.java | |||
| @@ -33,7 +33,7 @@ public class SourceIndexMethodVisitor extends SourceIndexVisitor { | |||
| 33 | 33 | ||
| 34 | private Multimap<String, Identifier> unmatchedIdentifier = HashMultimap.create(); | 34 | private Multimap<String, Identifier> unmatchedIdentifier = HashMultimap.create(); |
| 35 | private Map<String, Entry> identifierEntryCache = new HashMap<>(); | 35 | private Map<String, Entry> identifierEntryCache = new HashMap<>(); |
| 36 | private int argumentPosition = 0; | 36 | private int argumentPosition; |
| 37 | 37 | ||
| 38 | public SourceIndexMethodVisitor(ReferencedEntryPool entryPool, ClassDefEntry ownerEntry, MethodDefEntry methodEntry) { | 38 | public SourceIndexMethodVisitor(ReferencedEntryPool entryPool, ClassDefEntry ownerEntry, MethodDefEntry methodEntry) { |
| 39 | super(entryPool); | 39 | super(entryPool); |
| @@ -41,6 +41,10 @@ public class SourceIndexMethodVisitor extends SourceIndexVisitor { | |||
| 41 | this.entryFactory = new ProcyonEntryFactory(entryPool); | 41 | this.entryFactory = new ProcyonEntryFactory(entryPool); |
| 42 | this.ownerEntry = ownerEntry; | 42 | this.ownerEntry = ownerEntry; |
| 43 | this.methodEntry = methodEntry; | 43 | this.methodEntry = methodEntry; |
| 44 | this.argumentPosition = 0; | ||
| 45 | if (ownerEntry.isInnerClass() && methodEntry.isConstructor() && !ownerEntry.getAccess().isStatic()) { | ||
| 46 | this.argumentPosition++; | ||
| 47 | } | ||
| 44 | } | 48 | } |
| 45 | 49 | ||
| 46 | @Override | 50 | @Override |