Skip to content

Commit

Permalink
fix propagator, expose resolved for being able to add caching
Browse files Browse the repository at this point in the history
  • Loading branch information
wagyourtail committed Jul 25, 2024
1 parent b596dbc commit 9084281
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ abstract class MappingResolver<T : MappingResolver<T>>(val name: String) {
private set

lateinit var resolved: MemoryMappingTree
private set
protected set

open val unmappedNs = setOf(Namespace("official"))

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ class Propagator(val namespace: Namespace, val tree: AbstractMappingTree, requir

for ((method, nsNames) in names) {
visitor.visitClass(mapOf(namespace to method.first))?.use {
visitMethod(mapOf(namespace to (method.second.first to method.second.second)) + nsNames.mapValues { it.value.first() to null })?.visitEnd()
val targets = nsNames.mapValues { it.value.first() to null } + (namespace to (method.second.first to method.second.second))
visitMethod(targets)?.visitEnd()
}
}
}
Expand Down

0 comments on commit 9084281

Please sign in to comment.