in libraries/rib-compiler-app/src/main/kotlin/com/uber/rib/compiler/InteractorAnnotationVerifier.kt [44:60]
override fun verify(type: TypeElement): InteractorAnnotatedClass {
val hasConstructor = hasConstructor(type)
var result = validateInteractorSubclass(type)
result = result && validateInteractorSuffix(type)
return if (!result) {
throw VerificationFailedException()
} else {
val fields: List<VariableElement>
fields =
if (hasConstructor) {
getConstructorParameters(type)
} else {
getInjectFields(type)
}
InteractorAnnotatedClass(type, fields, hasConstructor)
}
}