Home
last modified time | relevance | path

Searched refs:CodeWriter (Results 1 – 25 of 37) sorted by relevance

12

/external/rust/crates/protobuf-codegen/src/
Dcode_writer.rs14 pub struct CodeWriter<'a> { struct
19 impl<'a> CodeWriter<'a> { implementation
20 pub fn new(writer: &'a mut dyn Write) -> CodeWriter<'a> { in new()
21 CodeWriter { in new()
84 F: Fn(&mut CodeWriter), in indented() argument
86 cb(&mut CodeWriter { in indented()
95 F: Fn(&mut CodeWriter), in commented() argument
97 cb(&mut CodeWriter { in commented()
119 F: Fn(&mut CodeWriter), in lazy_static_decl_get() argument
140 F: Fn(&mut CodeWriter), in block() argument
[all …]
Dmessage.rs131 fn write_match_each_oneof_variant<F>(&self, w: &mut CodeWriter, cb: F) in write_match_each_oneof_variant() argument
133 F: Fn(&mut CodeWriter, &OneofVariantGen, &str, &RustType), in write_match_each_oneof_variant() argument
158 fn write_write_to_with_cached_sizes(&self, w: &mut CodeWriter) { in write_write_to_with_cached_sizes() argument
177 fn write_get_cached_size(&self, w: &mut CodeWriter) { in write_get_cached_size() argument
183 fn write_default_instance(&self, w: &mut CodeWriter) { in write_default_instance() argument
197 fn write_compute_size(&self, w: &mut CodeWriter) { in write_compute_size() argument
222 fn write_field_accessors(&self, w: &mut CodeWriter) { in write_field_accessors() argument
232 fn write_impl_self(&self, w: &mut CodeWriter) { in write_impl_self() argument
243 fn write_unknown_fields(&self, w: &mut CodeWriter) { in write_unknown_fields() argument
265 fn write_merge_from(&self, w: &mut CodeWriter) { in write_merge_from() argument
[all …]
Denums.rs141 pub fn write(&self, w: &mut CodeWriter) { in write() argument
159 fn write_struct(&self, w: &mut CodeWriter) { in write_struct() argument
198 fn write_fn_value(&self, w: &mut CodeWriter) { in write_fn_value() argument
212 fn write_impl_enum(&self, w: &mut CodeWriter) { in write_impl_enum() argument
287 fn write_impl_value(&self, w: &mut CodeWriter) { in write_impl_value() argument
312 fn write_impl_copy(&self, w: &mut CodeWriter) { in write_impl_copy() argument
316 fn write_impl_eq(&self, w: &mut CodeWriter) { in write_impl_eq() argument
333 fn write_impl_hash(&self, w: &mut CodeWriter) { in write_impl_hash() argument
345 fn write_impl_default(&self, w: &mut CodeWriter) { in write_impl_default() argument
Dserde.rs1 use code_writer::CodeWriter;
5 pub fn write_serde_attr(w: &mut CodeWriter, customize: &Customize, attr: &str) { in write_serde_attr() argument
Dextensions.rs1 use super::code_writer::CodeWriter;
59 fn write(&self, w: &mut CodeWriter) { in write() argument
90 w: &mut CodeWriter, in write_extensions() argument
Dlib.rs60 use self::code_writer::CodeWriter;
99 w: &mut CodeWriter, in write_file_descriptor_data() argument
193 let mut w = CodeWriter::new(&mut v); in gen_file()
241 let mut w = CodeWriter::new(&mut v); in gen_mod_rs()
Doneof.rs3 use code_writer::CodeWriter;
181 pub fn write_enum(&self, w: &mut CodeWriter) { in write_enum() argument
/external/tflite-support/tensorflow_lite_support/codegen/
Dutils.cc49 CodeWriter::CodeWriter(ErrorReporter* err) : indent_(0), err_(err) {} in CodeWriter() function in tflite::support::codegen::CodeWriter
51 void CodeWriter::SetTokenValue(const std::string& token, in SetTokenValue()
56 const std::string CodeWriter::GetTokenValue(const std::string& token) const { in GetTokenValue()
68 void CodeWriter::SetIndentString(const std::string& indent_str) { in SetIndentString()
72 void CodeWriter::Indent() { indent_++; } in Indent()
74 void CodeWriter::Outdent() { indent_--; } in Outdent()
76 std::string CodeWriter::GenerateIndent() const { in GenerateIndent()
85 void CodeWriter::Append(const std::string& text) { AppendInternal(text, true); } in Append()
87 void CodeWriter::AppendNoNewLine(const std::string& text) { in AppendNoNewLine()
91 void CodeWriter::AppendInternal(const std::string& text, bool newline) { in AppendInternal()
[all …]
Dandroid_java_generator.cc66 AsBlock(CodeWriter* code_writer, const std::string& before, in AsBlock()
82 CodeWriter* code_writer_;
88 bool GenerateWrapperClass(CodeWriter*, const ModelInfo&, ErrorReporter*);
89 bool GenerateWrapperImports(CodeWriter*, const ModelInfo&, ErrorReporter*);
90 bool GenerateWrapperInputs(CodeWriter*, const ModelInfo&, ErrorReporter*);
91 bool GenerateWrapperOutputs(CodeWriter*, const ModelInfo&, ErrorReporter*);
92 bool GenerateWrapperMetadata(CodeWriter*, const ModelInfo&, ErrorReporter*);
93 bool GenerateWrapperAPI(CodeWriter*, const ModelInfo&, ErrorReporter*);
214 void SetCodeWriterWithTensorInfo(CodeWriter* code_writer, in SetCodeWriterWithTensorInfo()
234 void SetCodeWriterWithModelInfo(CodeWriter* code_writer, in SetCodeWriterWithModelInfo()
[all …]
Dutils_test.cc34 CodeWriter writer(&err); in TEST()
48 CodeWriter writer(&err); in TEST()
58 CodeWriter writer(&err); in TEST()
68 CodeWriter writer(&err); in TEST()
Dutils.h54 class CodeWriter {
56 explicit CodeWriter(ErrorReporter* err);
/external/rust/crates/grpcio-compiler/src/
Dcodegen.rs31 struct CodeWriter<'a> { struct
36 impl<'a> CodeWriter<'a> { argument
37 pub fn new(writer: &'a mut dyn Write) -> CodeWriter<'a> { in new()
38 CodeWriter { in new()
82 F: Fn(&mut CodeWriter), in indented() argument
84 cb(&mut CodeWriter { in indented()
93 F: Fn(&mut CodeWriter), in commented() argument
95 cb(&mut CodeWriter { in commented()
103 F: Fn(&mut CodeWriter), in block() argument
112 F: Fn(&mut CodeWriter), in expr_block() argument
[all …]
/external/javapoet/src/main/java/com/squareup/javapoet/
DArrayTypeName.java50 @Override CodeWriter emit(CodeWriter out) throws IOException { in emit()
54 CodeWriter emit(CodeWriter out, boolean varargs) throws IOException { in emit()
59 private CodeWriter emitLeafType(CodeWriter out) throws IOException { in emitLeafType()
66 private CodeWriter emitBrackets(CodeWriter out, boolean varargs) throws IOException { in emitBrackets()
DCodeWriter.java43 final class CodeWriter { class
71 CodeWriter(Appendable out) { in CodeWriter() method in CodeWriter
75 CodeWriter(Appendable out, String indent, Set<String> staticImports, Set<String> alwaysQualify) { in CodeWriter() method in CodeWriter
79 CodeWriter(Appendable out, in CodeWriter() method in CodeWriter
99 public CodeWriter indent() { in indent()
103 public CodeWriter indent(int levels) { in indent()
108 public CodeWriter unindent() { in unindent()
112 public CodeWriter unindent(int levels) { in unindent()
118 public CodeWriter pushPackage(String packageName) { in pushPackage()
124 public CodeWriter popPackage() { in popPackage()
[all …]
DTypeName.java211 CodeWriter codeWriter = new CodeWriter(resultBuilder); in toString()
222 CodeWriter emit(CodeWriter out) throws IOException { in emit()
232 CodeWriter emitAnnotations(CodeWriter out) throws IOException { in emitAnnotations()
DJavaFile.java89 CodeWriter importsCollector = new CodeWriter( in writeTo()
99 CodeWriter codeWriter in writeTo()
100 = new CodeWriter(out, indent, suggestedImports, staticImports, alwaysQualify); in writeTo()
182 private void emit(CodeWriter codeWriter) throws IOException { in emit()
DFieldSpec.java55 void emit(CodeWriter codeWriter, Set<Modifier> implicitModifiers) throws IOException { in emit()
81 CodeWriter codeWriter = new CodeWriter(out); in toString()
DParameterSpec.java53 void emit(CodeWriter codeWriter, boolean varargs) throws IOException { in emit()
78 CodeWriter codeWriter = new CodeWriter(out); in toString()
DAnnotationSpec.java53 void emit(CodeWriter codeWriter, boolean inline) throws IOException { in emit()
87 private void emitAnnotationValues(CodeWriter codeWriter, String whitespace, in emitAnnotationValues()
185 CodeWriter codeWriter = new CodeWriter(out); in toString()
DWildcardTypeName.java64 @Override CodeWriter emit(CodeWriter out) throws IOException { in emit()
DParameterizedTypeName.java67 @Override CodeWriter emit(CodeWriter out) throws IOException { in emit()
DTypeVariableName.java82 @Override CodeWriter emit(CodeWriter out) throws IOException { in emit()
/external/flatbuffers/src/
Didl_gen_kotlin.cpp72 CodeWriter enumWriter(ident_pad); in generate()
87 CodeWriter structWriter(ident_pad); in generate()
227 void GenEnum(EnumDef &enum_def, CodeWriter &writer) const { in GenEnum()
352 static void GenStructArgs(const StructDef &struct_def, CodeWriter &writer, in GenStructArgs()
375 static void GenStructBody(const StructDef &struct_def, CodeWriter &writer, in GenStructBody()
420 void GenStruct(StructDef &struct_def, CodeWriter &writer) const { in GenStruct()
511 CodeWriter &writer) const { in GenerateLookupByKey()
572 CodeWriter &writer) const { in GenerateFinishSizePrefixed()
582 CodeWriter &writer) const { in GenerateFinishStructBuffer()
591 CodeWriter &writer) const { in GenerateEndStructMethod()
[all …]
/external/rust/crates/protobuf-codegen/src/field/
Dmod.rs7 use super::code_writer::CodeWriter;
926 pub fn write_clear(&self, w: &mut CodeWriter) { in write_clear() argument
1000 pub fn write_write_element(&self, w: &mut CodeWriter, os: &str, var: &str, ty: &RustType) { in write_write_element() argument
1080 fn write_if_let_self_field_is_some<F>(&self, w: &mut CodeWriter, cb: F) in write_if_let_self_field_is_some() argument
1082 F: Fn(&str, &RustType, &mut CodeWriter), in write_if_let_self_field_is_some() argument
1132 fn write_if_self_field_is_not_empty<F>(&self, w: &mut CodeWriter, cb: F) in write_if_self_field_is_not_empty() argument
1134 F: Fn(&mut CodeWriter), in write_if_self_field_is_not_empty() argument
1141 pub fn write_if_self_field_is_none<F>(&self, w: &mut CodeWriter, cb: F) in write_if_self_field_is_none() argument
1143 F: Fn(&mut CodeWriter), in write_if_self_field_is_none() argument
1150 pub fn write_for_self_field<F>(&self, w: &mut CodeWriter, varn: &str, cb: F) in write_for_self_field() argument
[all …]
/external/javapoet/src/test/java/com/squareup/javapoet/
DCodeWriterTest.java15 new CodeWriter(out).emitJavadoc(javadocCodeBlock); in emptyLineInJavaDocDosEndings()

12