Home
last modified time | relevance | path

Searched refs:simpleVariableName (Results 1 – 5 of 5) sorted by relevance

/external/dagger2/javatests/dagger/internal/codegen/
DSourceFilesTest.java20 import static dagger.internal.codegen.binding.SourceFiles.simpleVariableName;
45 assertThat(simpleVariableName(typeElementFor(Long.class))).isEqualTo("l"); in testSimpleVariableName_typeCollisions()
46 assertThat(simpleVariableName(typeElementFor(Double.class))).isEqualTo("d"); in testSimpleVariableName_typeCollisions()
48 assertThat(simpleVariableName(typeElementFor(Int.class))).isEqualTo("i"); in testSimpleVariableName_typeCollisions()
50 assertThat(simpleVariableName(typeElementFor(Void.class))).isEqualTo("v"); in testSimpleVariableName_typeCollisions()
52 assertThat(simpleVariableName(typeElementFor(Class.class))).isEqualTo("clazz"); in testSimpleVariableName_typeCollisions()
53 assertThat(simpleVariableName(typeElementFor(Package.class))).isEqualTo("pkg"); in testSimpleVariableName_typeCollisions()
62 assertThat(simpleVariableName(typeElementFor(For.class))).isEqualTo("for_"); in testSimpleVariableName_randomKeywords()
63 assertThat(simpleVariableName(typeElementFor(Goto.class))).isEqualTo("goto_"); in testSimpleVariableName_randomKeywords()
68 assertThat(simpleVariableName(typeElementFor(Object.class))).isEqualTo("object"); in testSimpleVariableName()
[all …]
/external/dagger2/java/dagger/internal/codegen/binding/
DDependencyVariableNamer.java19 import static dagger.internal.codegen.binding.SourceFiles.simpleVariableName;
42 return simpleVariableName(MoreTypes.asTypeElement(dependency.key().type())); in name()
DComponentRequirement.java22 import static dagger.internal.codegen.binding.SourceFiles.simpleVariableName;
215 simpleVariableName(MoreTypes.asTypeElement(type))); in forDependency()
224 simpleVariableName(MoreTypes.asTypeElement(type))); in forModule()
DSourceFiles.java274 public static String simpleVariableName(TypeElement typeElement) { in simpleVariableName() method in SourceFiles
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DComponentCreatorImplementationFactory.java26 import static dagger.internal.codegen.binding.SourceFiles.simpleVariableName;
515 String name = simpleVariableName(requirement.typeElement());