/external/dagger2/javatests/dagger/internal/codegen/ |
D | DelegateBindingExpressionTest.java | 42 private final CompilerMode compilerMode; field in DelegateBindingExpressionTest 44 public DelegateBindingExpressionTest(CompilerMode compilerMode) { in DelegateBindingExpressionTest() argument 45 this.compilerMode = compilerMode; in DelegateBindingExpressionTest() 142 compilerMode in toDoubleCheck() 221 compilerMode in toSingleCheck() 297 compilerMode in toUnscoped() 393 compilerWithOptions(compilerMode.javacopts()) in castNeeded_rawTypes_Provider_get() 399 compilerMode in castNeeded_rawTypes_Provider_get() 501 compilerWithOptions(compilerMode.javacopts()) in noCast_rawTypes_Provider_get_toInaccessibleType() 507 compilerMode in noCast_rawTypes_Provider_get_toInaccessibleType() [all …]
|
D | AssistedFactoryErrorsTest.java | 38 private final CompilerMode compilerMode; field in AssistedFactoryErrorsTest 40 public AssistedFactoryErrorsTest(CompilerMode compilerMode) { in AssistedFactoryErrorsTest() argument 41 this.compilerMode = compilerMode; in AssistedFactoryErrorsTest() 54 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(factory); in testFactoryNotAbstract() 82 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testNestedFactoryNotStatic() 99 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(factory); in testFactoryMissingAbstractMethod() 141 compilerWithOptions(compilerMode.javacopts()).compile(factory, noInject, noAssistedParam); in testFactoryReturnsNonDeclaredType() 216 compilerWithOptions(compilerMode.javacopts()).compile(foo, fooFactory, fooFactoryInterface); in testFactoryMultipleAbstractMethods() 251 compilerWithOptions(compilerMode.javacopts()).compile(foo, fooFactory); in testFactoryMismatchingParameter() 288 compilerWithOptions(compilerMode.javacopts()).compile(foo, fooFactory); in testFactoryMismatchingGenericParameter() [all …]
|
D | AssistedInjectErrorsTest.java | 38 private final CompilerMode compilerMode; field in AssistedInjectErrorsTest 40 public AssistedInjectErrorsTest(CompilerMode compilerMode) { in AssistedInjectErrorsTest() argument 41 this.compilerMode = compilerMode; in AssistedInjectErrorsTest() 59 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithDuplicateTypesFails() 84 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithDuplicateTypesEmptyQualifierFails() 109 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithDuplicateQualifiedTypesFails() 136 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithDuplicateGenericTypesFails() 162 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithDuplicateParameterizedTypesFails() 187 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithUniqueParameterizedTypesPasses() 207 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedInjectWithUniqueGenericTypesPasses() [all …]
|
D | MembersInjectionTest.java | 55 private final CompilerMode compilerMode; field in MembersInjectionTest 57 public MembersInjectionTest(CompilerMode compilerMode) { in MembersInjectionTest() argument 58 this.compilerMode = compilerMode; in MembersInjectionTest() 98 compilerWithOptions(compilerMode.javacopts()) in parentClass_noInjectedMembers() 163 compilerWithOptions(compilerMode.javacopts()) in parentClass_injectedMembersInSupertype() 228 .withCompilerOptions(compilerMode.javacopts()) in fieldAndMethodGenerics() 338 .withCompilerOptions(compilerMode.javacopts()) in subclassedGenericMembersInjectors() 417 .withCompilerOptions(compilerMode.javacopts()) in fieldInjection() 488 .withCompilerOptions(compilerMode.javacopts()) in fieldInjectionWithQualifier() 576 .withCompilerOptions(compilerMode.javacopts()) in methodInjection() [all …]
|
D | ComponentProcessorTest.java | 58 private final CompilerMode compilerMode; field in ComponentProcessorTest 60 public ComponentProcessorTest(CompilerMode compilerMode) { in ComponentProcessorTest() argument 61 this.compilerMode = compilerMode; in ComponentProcessorTest() 109 compilerWithOptions(compilerMode.javacopts()) in doubleBindingFromResolvedModules() 144 compilerMode.javacopts().append("-Adagger.privateMemberValidation=WARNING")) in privateNestedClassWithWarningThatIsAnErrorInComponent() 175 compilerMode in simpleComponent() 261 compilerWithOptions(compilerMode.javacopts()) in simpleComponent() 296 compilerMode in componentWithScope() 386 compilerWithOptions(compilerMode.javacopts()) in componentWithScope() 415 compilerMode in simpleComponentWithNesting() [all …]
|
D | ComponentBuilderTest.java | 43 private final CompilerMode compilerMode; field in ComponentBuilderTest 45 public ComponentBuilderTest(CompilerMode compilerMode) { in ComponentBuilderTest() argument 46 this.compilerMode = compilerMode; in ComponentBuilderTest() 112 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesBuildAndSetterNames() 139 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testSetterMethodWithMoreThanOneArgFails() 172 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testInheritedSetterMethodWithMoreThanOneArgFails() 202 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testSetterReturningNonVoidOrBuilderFails() 231 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testInheritedSetterReturningNonVoidOrBuilderFails() 260 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testGenericsOnSetterMethodFails() 289 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testGenericsOnInheritedSetterMethodFails() [all …]
|
D | ProductionComponentProcessorTest.java | 43 private final CompilerMode compilerMode; field in ProductionComponentProcessorTest 45 public ProductionComponentProcessorTest(CompilerMode compilerMode) { in ProductionComponentProcessorTest() argument 46 this.compilerMode = compilerMode; in ProductionComponentProcessorTest() 73 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in componentOnEnum() 87 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in componentOnAnnotation() 101 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in nonModuleModule() 230 switch (compilerMode) { in simpleComponent() 539 .withCompilerOptions(compilerMode.javacopts()) in simpleComponent() 595 compilerWithOptions(compilerMode.javacopts()).compile(component); in nullableProducersAreNotErrors() 644 compilerWithOptions(compilerMode.javacopts()) in productionScope_injectConstructor() [all …]
|
D | SubcomponentValidationTest.java | 43 private final CompilerMode compilerMode; field in SubcomponentValidationTest 45 public SubcomponentValidationTest(CompilerMode compilerMode) { in SubcomponentValidationTest() argument 46 this.compilerMode = compilerMode; in SubcomponentValidationTest() 87 compilerWithOptions(compilerMode.javacopts()) in factoryMethod_missingModulesWithParameters() 155 compilerWithOptions(compilerMode.javacopts()) in factoryMethod_grandchild() 186 compilerWithOptions(compilerMode.javacopts()) in factoryMethod_nonModuleParameter() 222 compilerWithOptions(compilerMode.javacopts()) in factoryMethod_duplicateParameter() 259 compilerWithOptions(compilerMode.javacopts()) in factoryMethod_superflouousModule() 302 compilerWithOptions(compilerMode.javacopts()) in missingBinding() 322 compilerWithOptions(compilerMode.javacopts()).compile(subcomponentFile); in subcomponentOnConcreteType() [all …]
|
D | MapBindingComponentProcessorTest.java | 40 private final CompilerMode compilerMode; field in MapBindingComponentProcessorTest 42 public MapBindingComponentProcessorTest(CompilerMode compilerMode) { in MapBindingComponentProcessorTest() argument 43 this.compilerMode = compilerMode; in MapBindingComponentProcessorTest() 125 switch (compilerMode) { in mapBindingsWithEnumKey() 238 compilerWithOptions(compilerMode.javacopts()) in mapBindingsWithEnumKey() 532 switch (compilerMode) { in mapBindingsWithStringKey() 645 compilerWithOptions(compilerMode.javacopts()) in mapBindingsWithStringKey() 732 switch (compilerMode) { in mapBindingsWithWrappedKey() 856 compilerWithOptions(compilerMode.javacopts()) in mapBindingsWithWrappedKey() 945 switch (compilerMode) { in mapBindingsWithNonProviderValue() [all …]
|
D | ElidedFactoriesTest.java | 40 private final CompilerMode compilerMode; field in ElidedFactoriesTest 42 public ElidedFactoriesTest(CompilerMode compilerMode) { in ElidedFactoriesTest() argument 43 this.compilerMode = compilerMode; in ElidedFactoriesTest() 115 compilerWithOptions(compilerMode.javacopts()) in simpleComponent() 175 switch (compilerMode) { in simpleComponent_injectsProviderOf_dependsOnScoped() 309 compilerWithOptions(compilerMode.javacopts()) in simpleComponent_injectsProviderOf_dependsOnScoped() 369 switch (compilerMode) { in scopedBinding_onlyUsedInSubcomponent() 487 compilerWithOptions(compilerMode.javacopts()) in scopedBinding_onlyUsedInSubcomponent()
|
D | ComponentRequirementFieldTest.java | 39 private final CompilerMode compilerMode; field in ComponentRequirementFieldTest 41 public ComponentRequirementFieldTest(CompilerMode compilerMode) { in ComponentRequirementFieldTest() argument 42 this.compilerMode = compilerMode; in ComponentRequirementFieldTest() 69 compilerWithOptions(compilerMode.javacopts()).compile(component); in bindsInstance() 164 compilerWithOptions(compilerMode.javacopts()) in instanceModuleMethod() 237 compilerWithOptions(compilerMode.javacopts()) in componentInstances() 353 switch (compilerMode) { in componentRequirementNeededInFactoryCreationOfSubcomponent() 424 compilerWithOptions(compilerMode.javacopts()) in componentRequirementNeededInFactoryCreationOfSubcomponent()
|
D | AssistedFactoryTest.java | 41 private final CompilerMode compilerMode; field in AssistedFactoryTest 43 public AssistedFactoryTest(CompilerMode compilerMode) { in AssistedFactoryTest() argument 44 this.compilerMode = compilerMode; in AssistedFactoryTest() 94 compilerWithOptions(compilerMode.javacopts()).compile(foo, bar, fooFactory, component); in testAssistedFactory() 97 compilerMode in testAssistedFactory() 190 compilerWithOptions(compilerMode.javacopts()).compile(foo, bar, fooFactory, component); in testAssistedFactoryCycle() 193 compilerMode in testAssistedFactoryCycle()
|
D | MapBindingExpressionWithGuavaTest.java | 41 private final CompilerMode compilerMode; field in MapBindingExpressionWithGuavaTest 43 public MapBindingExpressionWithGuavaTest(CompilerMode compilerMode) { in MapBindingExpressionWithGuavaTest() argument 44 this.compilerMode = compilerMode; in MapBindingExpressionWithGuavaTest() 125 compilerMode in mapBindings() 343 compilerWithOptions(compilerMode.javacopts()) in mapBindings() 412 compilerWithOptions(compilerMode.javacopts()) in inaccessible() 482 compilerWithOptions(compilerMode.javacopts()).compile(parent, parentModule, child); in subcomponentOmitsInheritedBindings() 536 compilerMode in productionComponents()
|
D | SetBindingRequestFulfillmentWithGuavaTest.java | 40 private final CompilerMode compilerMode; field in SetBindingRequestFulfillmentWithGuavaTest 42 public SetBindingRequestFulfillmentWithGuavaTest(CompilerMode compilerMode) { in SetBindingRequestFulfillmentWithGuavaTest() argument 43 this.compilerMode = compilerMode; in SetBindingRequestFulfillmentWithGuavaTest() 125 compilerWithOptions(compilerMode.javacopts()) in setBindings() 219 compilerWithOptions(compilerMode.javacopts()) in inaccessible() 286 compilerWithOptions(compilerMode.javacopts()).compile(parent, parentModule, child); in subcomponentOmitsInheritedBindings() 370 compilerWithOptions(compilerMode.javacopts()) in productionComponents()
|
D | ComponentFactoryTest.java | 43 private final CompilerMode compilerMode; field in ComponentFactoryTest 45 public ComponentFactoryTest(CompilerMode compilerMode) { in ComponentFactoryTest() argument 46 this.compilerMode = compilerMode; in ComponentFactoryTest() 101 compilerWithOptions(compilerMode.javacopts()).compile(moduleFile, componentFile); in testUsesParameterNames() 127 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testSetterMethodFails() 156 compilerWithOptions(compilerMode.javacopts()).compile(componentFile); in testInheritedSetterMethodFails()
|
D | OptionalBindingRequestFulfillmentTest.java | 41 private final CompilerMode compilerMode; field in OptionalBindingRequestFulfillmentTest 43 public OptionalBindingRequestFulfillmentTest(CompilerMode compilerMode) { in OptionalBindingRequestFulfillmentTest() argument 44 this.compilerMode = compilerMode; in OptionalBindingRequestFulfillmentTest() 106 compilerMode in inlinedOptionalBindings() 180 compilerMode in inlinedOptionalBindings() 272 compilerMode in requestForFuture()
|
D | AssistedErrorsTest.java | 38 private final CompilerMode compilerMode; field in AssistedErrorsTest 40 public AssistedErrorsTest(CompilerMode compilerMode) { in AssistedErrorsTest() argument 41 this.compilerMode = compilerMode; in AssistedErrorsTest() 62 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testAssistedNotWithAssistedInjectionConstructor() 96 Compilation compilation = compilerWithOptions(compilerMode.javacopts()).compile(foo); in testNestedFactoryNotStatic()
|
D | ComponentCreatorTestHelper.java | 40 private final CompilerMode compilerMode; field in ComponentCreatorTestHelper 46 CompilerMode compilerMode, ComponentCreatorAnnotation componentCreatorAnnotation) { in ComponentCreatorTestHelper() argument 47 this.compilerMode = compilerMode; in ComponentCreatorTestHelper() 85 return new JavaFileBuilder(qualifiedName).withSettings(compilerMode, creatorKind); in javaFileBuilder() 90 return compilerWithOptions(compilerMode.javacopts()).compile(files); in compile()
|
D | MapKeyProcessorTest.java | 41 private final CompilerMode compilerMode; field in MapKeyProcessorTest 43 public MapKeyProcessorTest(CompilerMode compilerMode) { in MapKeyProcessorTest() argument 44 this.compilerMode = compilerMode; in MapKeyProcessorTest() 87 .withCompilerOptions(compilerMode.javacopts()) in mapKeyCreatorFile() 138 .withCompilerOptions(compilerMode.javacopts()) in nestedMapKeyCreatorFile()
|
D | MapBindingExpressionTest.java | 43 private final CompilerMode compilerMode; field in MapBindingExpressionTest 45 public MapBindingExpressionTest(CompilerMode compilerMode) { in MapBindingExpressionTest() argument 46 this.compilerMode = compilerMode; in MapBindingExpressionTest() 88 compilerMode in mapBindings() 363 return compilerWithOptions(compilerMode.javacopts()) in daggerCompilerWithoutGuava()
|
D | SetBindingRequestFulfillmentTest.java | 42 private final CompilerMode compilerMode; field in SetBindingRequestFulfillmentTest 44 public SetBindingRequestFulfillmentTest(CompilerMode compilerMode) { in SetBindingRequestFulfillmentTest() argument 45 this.compilerMode = compilerMode; in SetBindingRequestFulfillmentTest() 319 return compilerWithOptions(compilerMode.javacopts()) in daggerCompilerWithoutGuava()
|
D | JavaFileBuilder.java | 52 JavaFileBuilder(CompilerMode compilerMode, String qualifiedName) { in JavaFileBuilder() argument 54 settings.add(compilerMode); in JavaFileBuilder()
|
D | Compilers.java | 62 for (CompilerMode compilerMode : compilerModes) { in compilerWithOptions() 63 options = options.addAll(compilerMode.javacopts()); in compilerWithOptions()
|
D | SubcomponentCreatorRequestFulfillmentTest.java | 54 CompilerMode compilerMode, ComponentCreatorAnnotation componentCreatorAnnotation) { in SubcomponentCreatorRequestFulfillmentTest() argument 55 super(compilerMode, componentCreatorAnnotation); in SubcomponentCreatorRequestFulfillmentTest()
|
D | ComponentCreatorTest.java | 54 private final CompilerMode compilerMode; field in ComponentCreatorTest 66 CompilerMode compilerMode, in ComponentCreatorTest() argument 69 super(compilerMode, componentCreatorAnnotation); in ComponentCreatorTest() 70 this.compilerMode = compilerMode; in ComponentCreatorTest() 1278 ImmutableList.<String>builder().addAll(compilerMode.javacopts()); in compile()
|