Home
last modified time | relevance | path

Searched refs:companionModule (Results 1 – 2 of 2) sorted by relevance

/external/dagger2/java/dagger/internal/codegen/binding/
DModuleDescriptor.java187 TypeElement companionModule = metadataUtil.getEnclosedCompanionObject(moduleElement); in collectCompanionModuleBindings() local
192 methodsIn(elements.getAllMembers(companionModule)).stream() in collectCompanionModuleBindings()
204 bindings.add(bindingFactory.providesMethodBinding(method, companionModule)); in collectCompanionModuleBindings()
207 bindings.add(bindingFactory.producesMethodBinding(method, companionModule)); in collectCompanionModuleBindings()
/external/dagger2/java/dagger/internal/codegen/validation/
DModuleValidator.java650 TypeElement companionModule = metadataUtil.getEnclosedCompanionObject(module); in validateCompanionModule() local
652 methodsIn(companionModule.getEnclosedElements()); in validateCompanionModule()
679 if (!companionBindingMethods.isEmpty() && metadataUtil.isVisibilityPrivate(companionModule)) { in validateCompanionModule()
681 "A Companion Module with binding methods cannot be private.", companionModule); in validateCompanionModule()