/external/dagger2/javatests/dagger/functional/subcomponent/ |
D | SubcomponentTest.java | 46 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/ |
D | RepeatedModuleTest.java | 38 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/ |
D | BindsDependsOnSubcomponentValidationTest.java | 61 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()
|
D | SubcomponentValidationTest.java | 112 JavaFileObject childComponent = in factoryMethod_grandchild() local 156 .compile(component, childComponent, grandchildComponent, grandchildModule); in factoryMethod_grandchild()
|
/external/dagger2/java/dagger/internal/codegen/validation/ |
D | ComponentHierarchyValidator.java | 87 (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/ |
D | MultiPackageSubcomponentTest.java | 31 public void childComponent() throws Exception { in childComponent() method in MultiPackageSubcomponentTest
|
/external/dagger2/java/dagger/internal/codegen/binding/ |
D | ComponentDescriptor.java | 208 ComponentDescriptor childComponent) { in getFactoryMethodForChildComponent() argument 210 childComponentsDeclaredByFactoryMethods().inverse().get(childComponent)); in getFactoryMethodForChildComponent()
|
D | BindingGraphFactory.java | 178 (builderEntryPoint, childComponent) -> { in createLegacyBindingGraph() 181 .contains(childComponent)) { in createLegacyBindingGraph()
|
/external/dagger2/java/dagger/internal/codegen/componentgenerator/ |
D | ComponentImplementationBuilder.java | 298 componentImplementation.addType(SUBCOMPONENT, childComponent(subgraph)); in addChildComponents() 302 private TypeSpec childComponent(BindingGraph childGraph) { in childComponent() method in ComponentImplementationBuilder
|