Home
last modified time | relevance | path

Searched refs:childComponent (Results 1 – 9 of 9) sorted by relevance

/external/dagger2/javatests/dagger/functional/subcomponent/
DSubcomponentTest.java46 private final ChildComponent childComponent; field in SubcomponentTest
48 public SubcomponentTest(ParentGetters parentGetters, ChildComponent childComponent) { in SubcomponentTest() argument
50 this.childComponent = childComponent; in SubcomponentTest()
56 assertThat(childComponent.requiresSingleton().singletonType()) in scopePropagatesUpward_class()
57 .isSameInstanceAs(childComponent.requiresSingleton().singletonType()); in scopePropagatesUpward_class()
58 assertThat(childComponent.requiresSingleton().singletonType()) in scopePropagatesUpward_class()
60 childComponent.newGrandchildComponent().requiresSingleton().singletonType()); in scopePropagatesUpward_class()
65 assertThat(childComponent.requiresSingleton().unscopedTypeBoundAsSingleton()) in scopePropagatesUpward_provides()
66 .isSameInstanceAs(childComponent.requiresSingleton().unscopedTypeBoundAsSingleton()); in scopePropagatesUpward_provides()
67 assertThat(childComponent.requiresSingleton().unscopedTypeBoundAsSingleton()) in scopePropagatesUpward_provides()
[all …]
/external/dagger2/javatests/dagger/functional/subcomponent/repeat/
DRepeatedModuleTest.java38 SubcomponentWithRepeatedModule childComponent = in repeatedModuleHasSameStateInSubcomponent() local
40 assertThat(parentComponent.state()).isSameInstanceAs(childComponent.state()); in repeatedModuleHasSameStateInSubcomponent()
45 SubcomponentWithoutRepeatedModule childComponent = in repeatedModuleHasSameStateInGrandchildSubcomponent() local
48 childComponent.newGrandchildBuilder().build(); in repeatedModuleHasSameStateInGrandchildSubcomponent()
70 SubcomponentWithoutRepeatedModule childComponent = in repeatedModuleBuilderThrowsInGrandchildSubcomponent() local
73 childComponent.newGrandchildBuilder(); in repeatedModuleBuilderThrowsInGrandchildSubcomponent()
/external/dagger2/javatests/dagger/internal/codegen/
DBindsDependsOnSubcomponentValidationTest.java61 JavaFileObject childComponent = in testBinds() local
100 .compile(parentComponent, parentModule, childComponent, childModule, iface, impl); in testBinds()
135 JavaFileObject childComponent = in testSetBindings() local
175 .compile(parentComponent, parentModule, childComponent, childModule, iface, impl); in testSetBindings()
215 JavaFileObject childComponent = in testSetValueBindings() local
255 .compile(parentComponent, parentModule, childComponent, childModule, iface, impl); in testSetValueBindings()
291 JavaFileObject childComponent = in testMapBindings() local
332 .compile(parentComponent, parentModule, childComponent, childModule, iface, impl); in testMapBindings()
DSubcomponentValidationTest.java112 JavaFileObject childComponent = in factoryMethod_grandchild() local
156 .compile(component, childComponent, grandchildComponent, grandchildModule); in factoryMethod_grandchild()
/external/dagger2/java/dagger/internal/codegen/validation/
DComponentHierarchyValidator.java87 (method, childComponent) -> { in validateSubcomponentMethods()
88 if (childComponent.hasCreator()) { in validateSubcomponentMethods()
99 childComponent, in validateSubcomponentMethods()
105 childComponent.moduleTypes(), existingModuleToOwners.keySet()), in validateSubcomponentMethods()
106 constant(childComponent.typeElement()))) in validateSubcomponentMethods()
141 for (ComponentDescriptor childComponent : subject.childComponents()) { in validateScopeHierarchy()
142 validateScopeHierarchy(report, childComponent, scopesByComponent); in validateScopeHierarchy()
184 for (ComponentDescriptor childComponent : componentDescriptor.childComponents()) { in validateProductionModuleUniqueness()
185 validateProductionModuleUniqueness(report, childComponent, producerModulesByComponent); in validateProductionModuleUniqueness()
220 for (ComponentDescriptor childComponent : component.childComponents()) { in validateRepeatedScopedDeclarations()
[all …]
/external/dagger2/javatests/dagger/functional/producers/subcomponent/
DMultiPackageSubcomponentTest.java31 public void childComponent() throws Exception { in childComponent() method in MultiPackageSubcomponentTest
/external/dagger2/java/dagger/internal/codegen/binding/
DComponentDescriptor.java208 ComponentDescriptor childComponent) { in getFactoryMethodForChildComponent() argument
210 childComponentsDeclaredByFactoryMethods().inverse().get(childComponent)); in getFactoryMethodForChildComponent()
DBindingGraphFactory.java178 (builderEntryPoint, childComponent) -> { in createLegacyBindingGraph()
181 .contains(childComponent)) { in createLegacyBindingGraph()
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DComponentImplementationBuilder.java298 componentImplementation.addType(SUBCOMPONENT, childComponent(subgraph)); in addChildComponents()
302 private TypeSpec childComponent(BindingGraph childGraph) { in childComponent() method in ComponentImplementationBuilder