Merge remote-tracking branch 'origin/dev' into dev

This commit is contained in:
zaaarf 2023-02-09 00:04:46 +01:00
commit 81eb9b17b7
No known key found for this signature in database
GPG key ID: 82240E075E31FA4C

View file

@ -85,13 +85,13 @@ public class PatternMatcher {
if(ignoreLabels && cur.getType() == AbstractInsnNode.LABEL) continue; if(ignoreLabels && cur.getType() == AbstractInsnNode.LABEL) continue;
if(ignoreFrames && cur.getType() == AbstractInsnNode.FRAME) continue; if(ignoreFrames && cur.getType() == AbstractInsnNode.FRAME) continue;
if(ignoreLineNumbers && cur.getType() == AbstractInsnNode.LINE) continue; if(ignoreLineNumbers && cur.getType() == AbstractInsnNode.LINE) continue;
if(predicates.get(match).test(cur)) { if(match == predicates.size()) {
last = cur.getPrevious(); //it was actually the preiovus run in this case
break;
} else if (predicates.get(match).test(cur)) {
match++; match++;
if(first == null) if(first == null)
first = cur; first = cur;
} else if(match == predicates.size()) {
last = cur.getPrevious(); //it was actually the preiovus run in this case
break;
} else break; } else break;
} }
if(first != null && last != null) { if(first != null && last != null) {