Home
last modified time | relevance | path

Searched refs:Snippet (Results 1 – 19 of 19) sorted by relevance

/external/dagger2/compiler/src/main/java/dagger/internal/codegen/
DMapKeys.java25 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 …]
DProducerFactoryGenerator.java39 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 …]
DAbstractComponentWriter.java50 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 …]
DComponentGenerator.java26 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 …]
DMembersInjectorGenerator.java38 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 …]
DSubcomponentWriter.java28 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()
DFactoryGenerator.java35 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()
DSourceFiles.java28 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()
DMapKeyGenerator.java29 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/
DSnippet.java30 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 …]
DBlockWriter.java26 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()
DFieldWriter.java27 private Optional<Snippet> initializer;
34 public void setInitializer(Snippet initializer) { in setInitializer()
39 this.initializer = Optional.of(Snippet.format(initializer, args)); in setInitializer()
DAnnotationWriter.java51 Snippet snippet = Snippet.format("%s.%s", ClassName.fromClass(value.getClass()), value); in setMember()
DEnumWriter.java139 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/
DSourceCoverageViewHTML.cpp328 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/
Dsnippet.py14 class Snippet(object): class
90 class TokenSnippet(Snippet):
152 class Symbol(Snippet):
/external/swiftshader/third_party/subzero/tests_lit/reader_tests/
Dforwardref.ll29 ; 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/
DBugReporter.cpp2131 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/
DInternalsManual.rst1302 // Snippet #1:
1310 // Snippet #2:
1317 actually have two separate ``NamespaceDecl`` nodes in Snippet #1, each of which