Home
last modified time | relevance | path

Searched refs:addCode (Results 1 – 25 of 31) sorted by relevance

12

/external/dagger2/java/dagger/internal/codegen/writing/
DOptionalFactories.java146 .addCode("$L // safe covariant cast\n", AnnotationSpecs.suppressWarnings(UNCHECKED)) in absentOptionalProviderMethod()
147 .addCode( in absentOptionalProviderMethod()
157 .addCode("return provider;") in absentOptionalProviderMethod()
331 .addCode(
344 .addCode(
362 .addCode(
377 .addCode(
388 .addCode(
398 .addCode(
438 .addCode("return $L;", optionalKind.presentExpression(CodeBlock.of("input")))
DMembersInjectorGenerator.java155 createMethodBuilder.addCode( in write()
193 createMethodBuilder.addCode( in write()
195 createMethodBuilder.addCode(");"); in write()
202 injectMembersBuilder.addCode( in write()
DSwitchingProviders.java184 .addCode(getOnlyElement(switchCodeBlockPartitions)) in getMethods()
203 .addCode(switchCodeBlockPartitions.get(i)) in getMethods()
DPrivateMethodBindingExpression.java86 .addCode(methodBody()) in addMethod()
DHjarSourceFileGenerator.java103 skeleton.addCode(completeMethod.code); in skeletonMethod()
DMembersInjectionMethods.java108 methodBuilder.addCode( in membersInjectionMethod()
DProducerFactoryGenerator.java184 constructorBuilder.addCode(CodeBlock.join(frameworkFieldAssignments, "\n")); in write()
214 .addCode( in write()
DFactoryGenerator.java265 .addCode( in getMethod()
/external/javapoet/src/test/java/com/squareup/javapoet/
DTypeSpecTest.java66 .addCode("return $S;\n", "taco") in basic()
132 .addCode("/* code snippets */\n") in anonymousInnerClass()
142 .addCode("return $L;\n", aSimpleThung) in anonymousInnerClass()
191 .addCode("/* code snippets */\n") in annotatedParameters()
361 .addCode("return $S;\n", "paper airplane!") in enumWithSubclassing()
369 .addCode("this.handPosition = handPosition;\n") in enumWithSubclassing()
372 .addCode("this($S);\n", "fist") in enumWithSubclassing()
464 .addCode("return $S;\n", "west side") in enumWithMembersButNoConstructorCall()
562 .addCode("return 0;\n") in typeVariables()
572 .addCode("throw new $T($S);\n", UnsupportedOperationException.class, "TODO") in typeVariables()
[all …]
DMethodSpecTest.java425 .addCode("codeWithNoNewline();") in ensureTrailingNewline()
437 .addCode("codeWithNoNewline();\n") // Have a newline already, so ensure we're not adding one in ensureTrailingNewlineWithExistingNewline()
DFileWritingTest.java176 .addCode("$T.out.println($S);\n", System.class, "Hello World!") in filerClassesWithTabIndent()
/external/dagger2/java/dagger/grpc/server/processor/
DProxyModuleGenerator.java91 .addCode( in provideServiceDefinitionContribution()
96 method.addCode( in provideServiceDefinitionContribution()
101 method.addCode(".build();"); in provideServiceDefinitionContribution()
/external/grpc-grpc-java/okhttp/third_party/okhttp/main/java/io/grpc/okhttp/internal/framed/
DHuffman.java170 addCode(i, CODES[i], CODE_LENGTHS[i]); in buildTree()
175 private void addCode(int sym, int code, byte len) { in addCode() method in Huffman
/external/okhttp/repackaged/okhttp/src/main/java/com/android/okhttp/internal/framed/
DHuffman.java167 addCode(i, CODES[i], CODE_LENGTHS[i]); in buildTree()
171 private void addCode(int sym, int code, byte len) { in addCode() method in Huffman
/external/okhttp/okhttp/src/main/java/com/squareup/okhttp/internal/framed/
DHuffman.java166 addCode(i, CODES[i], CODE_LENGTHS[i]); in buildTree()
170 private void addCode(int sym, int code, byte len) { in addCode() method in Huffman
/external/connectedappssdk/processor/src/main/java/com/google/android/enterprise/connectedapps/processor/
DBundlerGenerator.java133 .addCode(methodCode.build()) in addWriteToParcelMethod()
190 .addCode(methodCode.build()) in addReadFromParcelMethod()
245 .addCode(methodCode.build()) in addCreateArrayMethod()
DInternalCrossProfileClassGenerator.java236 .addCode(methodCode.build()) in addBlockingCrossProfileTypeMethod()
286 .addCode(methodCode.build()) in addCrossProfileCallbackCrossProfileTypeMethod()
336 .addCode(methodCode.build()) in addFutureCrossProfileTypeMethod()
DInternalProviderClassGenerator.java155 .addCode(methodCode.build()) in addCallMethod()
DDispatcherGenerator.java207 .addCode(methodCode.build()) in addCallMethod()
/external/dagger2/java/dagger/internal/codegen/componentgenerator/
DComponentImplementationBuilder.java218 methodBuilder.addCode(CodeBlocks.concat(cancellationStatements)).build(); in addCancellationListenerImplementation()
232 cancelParentStatement().ifPresent(methodBuilder::addCode); in addCancellationListenerImplementation()
334 initializationMethod.addCode( in implementInitializationMethod()
391 .addCode(CodeBlocks.concat(partition)) in createPartitionedMethods()
/external/dagger2/java/dagger/internal/codegen/javapoet/
DCodeBlocks.java109 .addCode(body) in anonymousProvider()
/external/dagger2/java/dagger/hilt/android/processor/internal/androidentrypoint/
DApplicationGenerator.java143 .addCode(injectCodeBlock()) in onCreateMethod()
DGenerators.java135 .addCode(body); in copyConstructor()
/external/python/cpython2/Lib/compiler/
Dpyassem.py510 lnotab.addCode(self.opnum[opname])
518 lnotab.addCode(self.opnum[opname], lo, hi)
610 def addCode(self, *args): member in LineAddrTable
/external/javapoet/src/main/java/com/squareup/javapoet/
DMethodSpec.java438 public Builder addCode(String format, Object... args) { in addCode() method in MethodSpec.Builder
448 public Builder addCode(CodeBlock codeBlock) { in addCode() method in MethodSpec.Builder

12