/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 | EnumWriter.java | 139 private final List<Snippet> constructorSnippets; 146 ConstantWriter addArgument(Snippet snippet) { in addArgument() 154 Iterator<Snippet> snippetIterator = constructorSnippets.iterator(); in write()
|
D | AnnotationWriter.java | 51 Snippet snippet = Snippet.format("%s.%s", ClassName.fromClass(value.getClass()), value); in setMember()
|
/external/swiftshader/third_party/llvm-7.0/llvm/unittests/tools/llvm-exegesis/X86/ |
D | SnippetGeneratorTest.cpp | 86 ASSERT_THAT(Proto.Snippet, SizeIs(1)); in TEST_F() 87 const InstructionInstance &II = Proto.Snippet[0]; in TEST_F() 104 ASSERT_THAT(Proto.Snippet, SizeIs(1)); in TEST_F() 105 const InstructionInstance &II = Proto.Snippet[0]; in TEST_F() 121 ASSERT_THAT(Proto.Snippet, SizeIs(2)); in TEST_F() 122 const InstructionInstance &II = Proto.Snippet[0]; in TEST_F() 127 EXPECT_THAT(Proto.Snippet[1].getOpcode(), Not(Opcode)); in TEST_F() 135 ASSERT_THAT(Proto.Snippet, SizeIs(2)); in TEST_F() 136 const InstructionInstance &II = Proto.Snippet[0]; in TEST_F() 150 ASSERT_THAT(Proto.Snippet, SizeIs(1)); in TEST_F() [all …]
|
/external/swiftshader/third_party/llvm-7.0/llvm/tools/llvm-exegesis/lib/ |
D | BenchmarkRunner.cpp | 73 const std::vector<llvm::MCInst> &Snippet = Configuration.Snippet; in runOne() local 74 if (Snippet.empty()) { in runOne() 79 InstrBenchmark.Key.Instructions = Snippet; in runOne() 85 std::vector<llvm::MCInst> Code = Configuration.Snippet; in runOne() 87 Code.push_back(Configuration.Snippet[I % Configuration.Snippet.size()]); in runOne() 134 for (InstructionInstance &II : Prototype.Snippet) { in generateConfigurations() 136 Configuration.Snippet.push_back(II.build()); in generateConfigurations() 138 Configuration.SnippetSetup.RegsToDef = computeRegsToDef(Prototype.Snippet); in generateConfigurations() 145 const std::vector<InstructionInstance> &Snippet) const { in computeRegsToDef() 151 for (const InstructionInstance &II : Snippet) { in computeRegsToDef() [all …]
|
D | BenchmarkRunner.h | 48 std::vector<llvm::MCInst> Snippet; member 67 computeRegsToDef(const std::vector<InstructionInstance> &Snippet) const;
|
D | Uops.cpp | 162 Prototype.Snippet.emplace_back(Instr); in generatePrototype() 163 Prototype.Snippet.back().getValueFor(*Var) = in generatePrototype() 196 Prototype.Snippet.push_back(std::move(II)); in generatePrototype()
|
D | Latency.cpp | 75 Prototype.Snippet.push_back(std::move(ThisII)); in generateTwoInstructionPrototype() 76 Prototype.Snippet.push_back(std::move(OtherII)); in generateTwoInstructionPrototype()
|
D | MCInstrDescView.h | 128 std::vector<InstructionInstance> Snippet; member
|
/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/llvm-7.0/llvm/tools/llvm-cov/ |
D | SourceCoverageViewHTML.cpp | 534 auto Highlight = [&](const std::string &Snippet, unsigned LC, unsigned RC) { in renderLine() argument 537 return tag("span", Snippet, Color.getValue()); in renderLine() 604 for (const auto &Snippet : Snippets) in renderLine() local 605 OS << Snippet; in renderLine()
|
/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/swiftshader/third_party/llvm-7.0/llvm/docs/CommandGuide/ |
D | llvm-exegesis.rst | 60 Snippet:
|