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.java180 .ifPresent(companionModule -> collectCompanionModuleBindings(companionModule, bindings)); in createUncached()
193 XTypeElement companionModule, ImmutableSet.Builder<ContributionBinding> bindings) { in collectCompanionModuleBindings() argument
201 methodsIn(elements.getAllMembers(toJavac(companionModule))).stream() in collectCompanionModuleBindings()
216 bindings.add(bindingFactory.providesMethodBinding(method, companionModule)); in collectCompanionModuleBindings()
219 bindings.add(bindingFactory.producesMethodBinding(method, companionModule)); in collectCompanionModuleBindings()
/external/dagger2/java/dagger/internal/codegen/validation/
DModuleValidator.java226 .ifPresent(companionModule -> validateCompanionModule(companionModule, builder)); in validateUncached()
588 XTypeElement companionModule, ValidationReport.Builder builder) { in validateCompanionModule() argument
590 for (XMethodElement companionMethod : companionModule.getDeclaredMethods()) { in validateCompanionModule()
614 if (!companionBindingMethods.isEmpty() && companionModule.isPrivate()) { in validateCompanionModule()
616 "A Companion Module with binding methods cannot be private.", companionModule); in validateCompanionModule()