memberInjectedParameters

fun ClassReference.memberInjectedParameters(): List<MemberInjectParameter>

Returns all member-injected parameters for the receiver class and any superclasses.

We use Psi whenever possible, to support generated code.

Order is important. Dagger expects the properties of the most-upstream class to be listed first in a factory's constructor.

Given the hierarchy: Impl -> Middle -> Base The order of dependencies in Impl_Factory's constructor should be: Base -> Middle -> Impl

Sources

Link copied to clipboard