HomeSort by relevance Sort by last modified time
    Searched refs:Snippet (Results 1 - 23 of 23) sorted by null

  /cts/tools/vm-tests-tf/src/dot/junit/opcodes/invoke_virtual_range/d/
Snippet.java 3 public class Snippet {
  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/
MapKeys.java 25 import dagger.internal.codegen.writer.Snippet;
51 import static dagger.internal.codegen.writer.Snippet.makeParametersSnippet;
145 * Returns a snippet for the map key specified by the {@link MapKey} annotation on
153 static Snippet getMapKeySnippet(Element bindingElement) {
167 * Returns a snippet to create the visited value in code. Expects its parameter to be a class with
178 extends SimpleAnnotationValueVisitor6<Snippet, AnnotationValue> {
187 public Snippet visitEnumConstant(VariableElement c, AnnotationValue p) {
188 return Snippet.format(
193 public Snippet visitAnnotation(AnnotationMirror a, AnnotationValue p) {
198 public Snippet visitType(TypeMirror t, AnnotationValue p)
    [all...]
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);
183 ? Snippet.format(
191 Snippet transformSnippet =
192 Snippet.format(
233 /** The snippet representing the future that should be transformed. */
234 abstract Snippet futureSnippet();
243 abstract ImmutableList<Snippet> parameterSnippets()
    [all...]
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;
148 * For each component requirement, the snippet for the component field that holds it.
179 * Returns an expression snippet that evaluates to an instance of the contribution, looking for
182 private Snippet getComponentContributionSnippet(TypeElement contributionType) {
184 return Snippet.format("builder.%s", builderFields.get(contributionType).name());
186 Optional<Snippet> snippet = getOrCreateComponentContributionFieldSnippet(contributionType) local
751 Snippet snippet = multibindingContributionSnippet.get().getSnippetFor(name); local
    [all...]
ComponentGenerator.java 26 import dagger.internal.codegen.writer.Snippet;
78 static MemberSelect instanceSelect(ClassName owningClass, Snippet snippet) {
80 Optional.<TypeName> absent(), owningClass, false, snippet);
83 static MemberSelect staticSelect(ClassName owningClass, Snippet snippet) {
85 Optional.<TypeName> absent(), owningClass, true, snippet);
89 ClassName owningClass, Snippet snippet, TypeName castType) {
91 Optional.of(castType), owningClass, true, snippet);
101 abstract Snippet snippet(); method in class:ComponentGenerator.MemberSelect
110 Snippet snippet = getSnippetFor(usingClass); local
    [all...]
MembersInjectorGenerator.java 38 import dagger.internal.codegen.writer.Snippet;
66 import static dagger.internal.codegen.writer.Snippet.makeParametersSnippet;
247 * Returns a snippet that directly injects the instance's field or method.
249 private Snippet directInjectMemberSnippet(
253 return Snippet.format(
263 * Returns a snippet that injects the instance's field or method by calling a static method on the
266 private Snippet delegateInjectMemberSnippet(
268 return Snippet.format(
274 new ImmutableList.Builder<Snippet>()
275 .add(Snippet.format("instance")
    [all...]
SubcomponentWriter.java 28 import dagger.internal.codegen.writer.Snippet;
83 protected Optional<Snippet> getOrCreateComponentContributionFieldSnippet(
163 ImmutableList.Builder<Snippet> subcomponentConstructorParameters = ImmutableList.builder();
185 MemberSelect.instanceSelect(name, Snippet.format(actualModuleName));
187 subcomponentConstructorParameters.add(Snippet.format("%s", moduleVariable.getSimpleName()));
203 MemberSelect.instanceSelect(name, Snippet.format(actualModuleName));
208 name, Snippet.makeParametersSnippet(subcomponentConstructorParameters.build()));
SourceFiles.java 28 import dagger.internal.codegen.writer.Snippet;
169 static Snippet frameworkTypeUsageStatement(Snippet frameworkTypeMemberSelect,
173 return Snippet.format("%s.create(%s)", ClassName.fromClass(DoubleCheckLazy.class),
177 return Snippet.format("%s.get()", frameworkTypeMemberSelect);
181 return Snippet.format("%s", frameworkTypeMemberSelect);
FactoryGenerator.java 35 import dagger.internal.codegen.writer.Snippet;
60 import static dagger.internal.codegen.writer.Snippet.makeParametersSnippet;
224 List<Snippet> parameters = Lists.newArrayList();
227 Snippet.format(fields.get(dependency.bindingKey()).name()), dependency.kind()));
229 Snippet parametersSnippet = makeParametersSnippet(parameters);
232 Snippet providesMethodInvocation = Snippet.format("%s.%s(%s)",
255 getMethodWriter.body().addSnippet(Snippet.format(Joiner.on('\n').join(
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();
142 parameters.add(Snippet.format("%s", parameterName));
  /external/dagger2/compiler/src/main/java/dagger/internal/codegen/writer/
Snippet.java 30 public abstract class Snippet implements HasClassReferences, Writable {
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...]
BlockWriter.java 26 private final List<Snippet> snippets;
32 public BlockWriter addSnippet(String snippet, Object... args) {
33 snippets.add(Snippet.format(snippet, args));
37 public BlockWriter addSnippet(Snippet snippet) {
38 snippets.add(snippet);
48 for (Snippet snippet : snippets) {
50 snippet.write(appendable, context)
    [all...]
FieldWriter.java 27 private Optional<Snippet> initializer;
34 public void setInitializer(Snippet initializer) {
39 this.initializer = Optional.of(Snippet.format(initializer, args));
AnnotationWriter.java 51 Snippet snippet = Snippet.format("%s.%s", ClassName.fromClass(value.getClass()), value); local
52 memberMap.put(name, snippet);
53 memberReferences.add(snippet);
EnumWriter.java 139 private final List<Snippet> constructorSnippets;
146 ConstantWriter addArgument(Snippet snippet) {
147 constructorSnippets.add(snippet);
154 Iterator<Snippet> snippetIterator = constructorSnippets.iterator();
  /prebuilts/go/darwin-x86/test/fixedbugs/issue15470.dir/
a.go 18 // Snippet from x/tools/godoc/analysis/analysis.go.
  /prebuilts/go/linux-x86/test/fixedbugs/issue15470.dir/
a.go 18 // Snippet from x/tools/godoc/analysis/analysis.go.
  /external/llvm/tools/llvm-cov/
SourceCoverageViewHTML.cpp 294 // snippet starts from Col=1 and ends at the start of the first segment.
295 // The last snippet starts at the last mapped column in the line and ends
302 assert(Start + Len <= Line.size() && "Snippet extends past the EOL");
310 assert(LCol == Segments[I - 1]->Col && "Snippet start position is wrong");
316 assert(LCol == Line.size() + 1 && "Final snippet doesn't reach the EOL");
324 // segment 1 to set the highlight for snippet 2, segment 2 to set the
325 // highlight for snippet 3, and so on.
328 auto Highlight = [&](const std::string &Snippet) {
329 return tag("span", Snippet, Color.getValue());
383 for (const auto &Snippet : Snippets
    [all...]
  /external/tensorflow/tensorflow/java/src/gen/cc/
java_defs.h 255 class Snippet {
257 static Snippet Create(const string& fname, Env* env = Env::Default()) {
258 return Snippet(fname, env);
265 Snippet(const string& fname, Env* env) {
  /external/chromium-trace/catapult/common/py_utils/py_utils/refactor/
snippet.py 14 class Snippet(object):
40 """Return a tuple of the tokens this Snippet contains."""
59 for snippet in child.FindAll(snippet_type):
60 yield snippet
90 class TokenSnippet(Snippet):
91 """A Snippet containing a list of tokens.
152 class Symbol(Snippet):
153 """A Snippet containing sub-Snippets.
208 snippet = _SnippetizeNode(syntax_tree, tokens)
210 return snippet
    [all...]
  /prebuilts/tools/common/m2/repository/com/google/dagger/dagger-compiler/2.0/
dagger-compiler-2.0.jar 
  /external/clang/lib/StaticAnalyzer/Core/
BugReporter.cpp     [all...]
  /prebuilts/tools/common/m2/repository/com/google/errorprone/javac/9-dev-r3297-4/
javac-9-dev-r3297-4.jar 

Completed in 725 milliseconds