/external/dagger2/compiler/src/main/java/dagger/internal/codegen/ |
D | MapKeys.java | 25 import dagger.internal.codegen.writer.Snippet; 51 import static dagger.internal.codegen.writer.Snippet.makeParametersSnippet; 153 static Snippet getMapKeySnippet(Element bindingElement) { in getMapKeySnippet() 178 extends SimpleAnnotationValueVisitor6<Snippet, AnnotationValue> { 187 public Snippet visitEnumConstant(VariableElement c, AnnotationValue p) { in visitEnumConstant() 188 return Snippet.format( in visitEnumConstant() 193 public Snippet visitAnnotation(AnnotationMirror a, AnnotationValue p) { in visitAnnotation() 198 public Snippet visitType(TypeMirror t, AnnotationValue p) { in visitType() 199 return Snippet.format("%s.class", TypeNames.forTypeMirror(t)); in visitType() 203 public Snippet visitString(String s, AnnotationValue p) { in visitString() [all …]
|
D | ProducerFactoryGenerator.java | 39 import dagger.internal.codegen.writer.Snippet; 58 import static dagger.internal.codegen.writer.Snippet.makeParametersSnippet; 175 Snippet futureAccess = Snippet.format("%s.get()", name); in write() 183 ? Snippet.format( in write() 191 Snippet transformSnippet = in write() 192 Snippet.format( in write() 234 abstract Snippet futureSnippet(); in futureSnippet() 243 abstract ImmutableList<Snippet> parameterSnippets(); in parameterSnippets() 272 Snippet futureSnippet() { in futureSnippet() 273 return Snippet.format( in futureSnippet() [all …]
|
D | AbstractComponentWriter.java | 50 import dagger.internal.codegen.writer.Snippet; 108 import static dagger.internal.codegen.writer.Snippet.makeParametersSnippet; 109 import static dagger.internal.codegen.writer.Snippet.memberSelectSnippet; 110 import static dagger.internal.codegen.writer.Snippet.nullCheck; 182 private Snippet getComponentContributionSnippet(TypeElement contributionType) { in getComponentContributionSnippet() 184 return Snippet.format("builder.%s", builderFields.get(contributionType).name()); in getComponentContributionSnippet() 186 Optional<Snippet> snippet = getOrCreateComponentContributionFieldSnippet(contributionType); in getComponentContributionSnippet() 196 protected Optional<Snippet> getOrCreateComponentContributionFieldSnippet( in getOrCreateComponentContributionFieldSnippet() 212 fieldSelect = MemberSelect.instanceSelect(name, Snippet.format("%s", componentField.name())); in getOrCreateComponentContributionFieldSnippet() 218 private Snippet getMemberSelectSnippet(BindingKey key) { in getMemberSelectSnippet() [all …]
|
D | ComponentGenerator.java | 26 import dagger.internal.codegen.writer.Snippet; 78 static MemberSelect instanceSelect(ClassName owningClass, Snippet snippet) { in instanceSelect() 83 static MemberSelect staticSelect(ClassName owningClass, Snippet snippet) { in staticSelect() 89 ClassName owningClass, Snippet snippet, TypeName castType) { in staticMethodInvocationWithCast() 101 abstract Snippet snippet(); in snippet() 103 private Snippet qualifiedSelectSnippet() { in qualifiedSelectSnippet() 104 return Snippet.format( in qualifiedSelectSnippet() 109 Snippet getSnippetWithRawTypeCastFor(ClassName usingClass) { in getSnippetWithRawTypeCastFor() 110 Snippet snippet = getSnippetFor(usingClass); in getSnippetWithRawTypeCastFor() 112 ? Snippet.format("(%s) %s", selectedCast().get(), snippet) in getSnippetWithRawTypeCastFor() [all …]
|
D | MembersInjectorGenerator.java | 38 import dagger.internal.codegen.writer.Snippet; 66 import static dagger.internal.codegen.writer.Snippet.makeParametersSnippet; 249 private Snippet directInjectMemberSnippet( 253 return Snippet.format( 266 private Snippet delegateInjectMemberSnippet( 268 return Snippet.format( 274 new ImmutableList.Builder<Snippet>() 275 .add(Snippet.format("instance")) 287 private ImmutableList<Snippet> parameterSnippets( 291 ImmutableList.Builder<Snippet> parameters = ImmutableList.builder(); [all …]
|
D | SubcomponentWriter.java | 28 import dagger.internal.codegen.writer.Snippet; 83 protected Optional<Snippet> getOrCreateComponentContributionFieldSnippet( in getOrCreateComponentContributionFieldSnippet() 163 ImmutableList.Builder<Snippet> subcomponentConstructorParameters = ImmutableList.builder(); in writeSubcomponentWithoutBuilder() 185 MemberSelect.instanceSelect(name, Snippet.format(actualModuleName)); in writeSubcomponentWithoutBuilder() 187 subcomponentConstructorParameters.add(Snippet.format("%s", moduleVariable.getSimpleName())); in writeSubcomponentWithoutBuilder() 203 MemberSelect.instanceSelect(name, Snippet.format(actualModuleName)); in writeSubcomponentWithoutBuilder() 208 name, Snippet.makeParametersSnippet(subcomponentConstructorParameters.build())); in writeSubcomponentWithoutBuilder()
|
D | FactoryGenerator.java | 35 import dagger.internal.codegen.writer.Snippet; 60 import static dagger.internal.codegen.writer.Snippet.makeParametersSnippet; 224 List<Snippet> parameters = Lists.newArrayList(); in write() 227 Snippet.format(fields.get(dependency.bindingKey()).name()), dependency.kind())); in write() 229 Snippet parametersSnippet = makeParametersSnippet(parameters); in write() 232 Snippet providesMethodInvocation = Snippet.format("%s.%s(%s)", in write() 255 getMethodWriter.body().addSnippet(Snippet.format(Joiner.on('\n').join( in write()
|
D | SourceFiles.java | 28 import dagger.internal.codegen.writer.Snippet; 169 static Snippet frameworkTypeUsageStatement(Snippet frameworkTypeMemberSelect, in frameworkTypeUsageStatement() 173 return Snippet.format("%s.create(%s)", ClassName.fromClass(DoubleCheckLazy.class), in frameworkTypeUsageStatement() 177 return Snippet.format("%s.get()", frameworkTypeMemberSelect); in frameworkTypeUsageStatement() 181 return Snippet.format("%s", frameworkTypeMemberSelect); in frameworkTypeUsageStatement()
|
D | MapKeyGenerator.java | 29 import dagger.internal.codegen.writer.Snippet; 45 import static dagger.internal.codegen.writer.Snippet.makeParametersSnippet; 137 ImmutableList.Builder<Snippet> parameters = ImmutableList.builder(); in writeCreateMethod() 142 parameters.add(Snippet.format("%s", parameterName)); in writeCreateMethod()
|
/external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/ |
D | Snippet.java | 30 public abstract class Snippet implements HasClassReferences, Writable { class 52 private static final class BasicSnippet extends Snippet { 87 private static final class CompoundSnippet extends Snippet { 89 final ImmutableList<Snippet> snippets; 91 CompoundSnippet(String joinToken, ImmutableList<Snippet> snippets) { 100 new Function<Snippet, Iterable<TypeName>>() { 102 public Iterable<TypeName> apply(Snippet input) { 111 Iterator<Snippet> snippetIterator = snippets.iterator(); 113 Snippet firstSnippet = snippetIterator.next(); 116 Snippet nextSnippet = snippetIterator.next(); [all …]
|
D | BlockWriter.java | 26 private final List<Snippet> snippets; 33 snippets.add(Snippet.format(snippet, args)); in addSnippet() 37 public BlockWriter addSnippet(Snippet snippet) { in addSnippet() 48 for (Snippet snippet : snippets) { in write()
|
D | FieldWriter.java | 27 private Optional<Snippet> initializer; 34 public void setInitializer(Snippet initializer) { in setInitializer() 39 this.initializer = Optional.of(Snippet.format(initializer, args)); in setInitializer()
|
D | AnnotationWriter.java | 51 Snippet snippet = Snippet.format("%s.%s", ClassName.fromClass(value.getClass()), value); in setMember()
|
D | EnumWriter.java | 139 private final List<Snippet> constructorSnippets; 146 ConstantWriter addArgument(Snippet snippet) { in addArgument() 154 Iterator<Snippet> snippetIterator = constructorSnippets.iterator(); in write()
|
/external/llvm/tools/llvm-cov/ |
D | SourceCoverageViewHTML.cpp | 328 auto Highlight = [&](const std::string &Snippet) { in renderLine() argument 329 return tag("span", Snippet, Color.getValue()); in renderLine() 383 for (const auto &Snippet : Snippets) in renderLine() local 384 OS << Snippet; in renderLine()
|
/external/chromium-trace/catapult/common/py_utils/py_utils/refactor/ |
D | snippet.py | 14 class Snippet(object): class 90 class TokenSnippet(Snippet): 152 class Symbol(Snippet):
|
/external/swiftshader/third_party/subzero/tests_lit/reader_tests/ |
D | forwardref.ll | 29 ; Snippet of bitcode objdump with forward type reference (see "declare"). 82 ; Snippet of bitcode objdump with forward type references (see "declare").
|
/external/clang/lib/StaticAnalyzer/Core/ |
D | BugReporter.cpp | 2131 StringRef Snippet = Buffer->getBuffer().slice(BeginOffset, EndOffset); in getLengthOnSingleLine() local 2137 if (Snippet.find_first_of("\r\n") != StringRef::npos) in getLengthOnSingleLine() 2141 return Snippet.size(); in getLengthOnSingleLine()
|
/external/clang/docs/ |
D | InternalsManual.rst | 1302 // Snippet #1: 1310 // Snippet #2: 1317 actually have two separate ``NamespaceDecl`` nodes in Snippet #1, each of which
|