diff --git a/compiler/src/main/java/com/squareup/anvil/compiler/codegen/dagger/AssistedFactoryCodeGen.kt b/compiler/src/main/java/com/squareup/anvil/compiler/codegen/dagger/AssistedFactoryCodeGen.kt index 8bc501091..06abfc620 100644 --- a/compiler/src/main/java/com/squareup/anvil/compiler/codegen/dagger/AssistedFactoryCodeGen.kt +++ b/compiler/src/main/java/com/squareup/anvil/compiler/codegen/dagger/AssistedFactoryCodeGen.kt @@ -214,6 +214,7 @@ object AssistedFactoryCodeGen : AnvilApplicabilityChecker { // `clazz` must be first in the list because of `distinctBy { ... }`, which keeps the first // matched element. If the function's inherited, it can be overridden as well. Prioritizing // the version from the file we're parsing ensures the correct variance of the referenced types. + // TODO can't use getAllFunctions() yet due to https://github.com/google/ksp/issues/1619 val assistedFunctions = sequenceOf(this) .plus(getAllSuperTypes().mapNotNull { it.resolveKSClassDeclaration() }) .distinctBy { it.qualifiedName?.asString() } diff --git a/compiler/src/main/java/com/squareup/anvil/compiler/codegen/dagger/DaggerGenerationUtils.kt b/compiler/src/main/java/com/squareup/anvil/compiler/codegen/dagger/DaggerGenerationUtils.kt index 92301c098..20503a85e 100644 --- a/compiler/src/main/java/com/squareup/anvil/compiler/codegen/dagger/DaggerGenerationUtils.kt +++ b/compiler/src/main/java/com/squareup/anvil/compiler/codegen/dagger/DaggerGenerationUtils.kt @@ -239,7 +239,7 @@ private fun ClassReference.declaredMemberInjectParameters( * Base -> Middle -> Impl */ internal fun KSClassDeclaration.memberInjectParameters(): List { - // TODO can we use getAllProperties()? + // TODO can we use getAllProperties() after https://github.com/google/ksp/issues/1619? return sequenceOf(asType(emptyList())) .plus(getAllSuperTypes()) .mapNotNull {