File tree Expand file tree Collapse file tree 1 file changed +9
-5
lines changed
patcher/src/commonMain/kotlin/app/revanced/patcher Expand file tree Collapse file tree 1 file changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -950,25 +950,29 @@ fun MutablePredicateList<Method>.instructions(build: Function<IndexedMatcher<Ins
950950 predicate { implementation { match(instructions) } }
951951}
952952
953- fun MutablePredicateList<Method>.instructions (vararg predicates : IndexedMatcherPredicate <Instruction >) =
954- instructions {
955- predicates.forEach { + it }
956- }
957-
958953context(matchers: MutableList <IndexedMatcher <Instruction >>)
959954fun MutablePredicateList<Method>.instructions (build : Function <IndexedMatcher <Instruction >>) {
960955 val match = indexedMatcher(build).also (matchers::add)
961956
962957 predicate { implementation { match(instructions) } }
963958}
964959
960+ fun MutablePredicateList<Method>.instructions (vararg predicates : IndexedMatcherPredicate <Instruction >) =
961+ instructions {
962+ predicates.forEach { + it }
963+ }
964+
965965context(matchers: MutableList <IndexedMatcher <Instruction >>)
966966fun MutablePredicateList<Method>.instructions (vararg predicates : IndexedMatcherPredicate <Instruction >) =
967967 instructions { predicates.forEach { + it } }
968968
969969fun MutablePredicateList<Method>.instructions (vararg predicates : Predicate <Instruction >) =
970970 instructions { predicates.forEach { add { _, _, _ -> it() } } }
971971
972+ context(matchers: MutableList <IndexedMatcher <Instruction >>)
973+ fun MutablePredicateList<Method>.instructions (vararg predicates : Predicate <Instruction >) =
974+ instructions { predicates.forEach { add { _, _, _ -> it() } } }
975+
972976fun MutablePredicateList<Method>.custom (block : Predicate <Method >) {
973977 predicate { block() }
974978}
You can’t perform that action at this time.
0 commit comments