Searched refs:simpleVariableName (Results 1 – 5 of 5) sorted by relevance
20 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 …]
19 import static dagger.internal.codegen.binding.SourceFiles.simpleVariableName;42 return simpleVariableName(MoreTypes.asTypeElement(dependency.key().type())); in name()
22 import static dagger.internal.codegen.binding.SourceFiles.simpleVariableName;215 simpleVariableName(MoreTypes.asTypeElement(type))); in forDependency()224 simpleVariableName(MoreTypes.asTypeElement(type))); in forModule()
274 public static String simpleVariableName(TypeElement typeElement) { in simpleVariableName() method in SourceFiles
26 import static dagger.internal.codegen.binding.SourceFiles.simpleVariableName;515 String name = simpleVariableName(requirement.typeElement());