Home
last modified time | relevance | path

Searched refs:printer (Results 1 – 25 of 704) sorted by relevance

12345678910>>...29

/external/protobuf/src/google/protobuf/compiler/java/
Djava_message_field.cc144 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers()
151 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
152 printer->Print(variables_, in GenerateInterfaceMembers()
155 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
156 printer->Print(variables_, in GenerateInterfaceMembers()
159 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
160 printer->Print(variables_, in GenerateInterfaceMembers()
165 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
166 printer->Print(variables_, in GenerateMembers()
168 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
[all …]
Djava_lazy_message_field.cc59 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
60 printer->Print(variables_, in GenerateMembers()
64 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
65 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
66 printer->Print(variables_, in GenerateMembers()
70 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
72 printer->Print(variables_, in GenerateMembers()
76 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
77 printer->Print(variables_, in GenerateMembers()
84 GenerateBuilderMembers(io::Printer* printer) const { in GenerateBuilderMembers()
[all …]
Djava_lazy_message_field_lite.cc60 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
61 printer->Print(variables_, in GenerateMembers()
65 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
66 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
67 printer->Print(variables_, in GenerateMembers()
72 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
73 printer->Print(variables_, in GenerateMembers()
79 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
80 printer->Print(variables_, in GenerateMembers()
90 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
[all …]
Djava_message_field_lite.cc130 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers()
137 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
138 printer->Print(variables_, in GenerateInterfaceMembers()
141 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
142 printer->Print(variables_, in GenerateInterfaceMembers()
147 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
148 printer->Print(variables_, in GenerateMembers()
150 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
153 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
154 printer->Print(variables_, in GenerateMembers()
[all …]
Djava_enum_field_lite.cc142 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers()
144 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
145 printer->Print(variables_, in GenerateInterfaceMembers()
149 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
150 printer->Print(variables_, in GenerateInterfaceMembers()
153 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
154 printer->Print(variables_, in GenerateInterfaceMembers()
159 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
160 printer->Print(variables_, in GenerateMembers()
162 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
[all …]
Djava_string_field.cc193 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers()
195 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
196 printer->Print(variables_, in GenerateInterfaceMembers()
199 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
200 printer->Print(variables_, in GenerateInterfaceMembers()
202 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
203 printer->Print(variables_, in GenerateInterfaceMembers()
209 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
210 printer->Print(variables_, in GenerateMembers()
212 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
[all …]
Djava_string_field_lite.cc169 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers()
171 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
172 printer->Print(variables_, in GenerateInterfaceMembers()
175 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
176 printer->Print(variables_, in GenerateInterfaceMembers()
178 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
179 printer->Print(variables_, in GenerateInterfaceMembers()
185 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
186 printer->Print(variables_, in GenerateMembers()
188 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
[all …]
Djava_enum_field.cc156 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers()
158 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
159 printer->Print(variables_, in GenerateInterfaceMembers()
163 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
164 printer->Print(variables_, in GenerateInterfaceMembers()
167 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
168 printer->Print(variables_, in GenerateInterfaceMembers()
173 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
174 printer->Print(variables_, in GenerateMembers()
176 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
[all …]
Djava_service.cc62 void ImmutableServiceGenerator::Generate(io::Printer* printer) { in Generate() argument
65 WriteServiceDocComment(printer, descriptor_); in Generate()
66 printer->Print( in Generate()
71 printer->Indent(); in Generate()
73 printer->Print( in Generate()
77 GenerateInterface(printer); in Generate()
79 GenerateNewReflectiveServiceMethod(printer); in Generate()
80 GenerateNewReflectiveBlockingServiceMethod(printer); in Generate()
82 GenerateAbstractMethods(printer); in Generate()
85 printer->Print( in Generate()
[all …]
Djava_primitive_field_lite.cc194 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers()
196 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
197 printer->Print(variables_, in GenerateInterfaceMembers()
200 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
201 printer->Print(variables_, in GenerateInterfaceMembers()
206 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
207 printer->Print(variables_, in GenerateMembers()
209 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
211 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
212 printer->Print(variables_, in GenerateMembers()
[all …]
Djava_message_lite.cc98 io::Printer* printer, int* bytecode_estimate) { in GenerateStaticVariables() argument
103 .GenerateStaticVariables(printer, bytecode_estimate); in GenerateStaticVariables()
108 io::Printer* printer) { in GenerateStaticVariableInitializers() argument
115 .GenerateStaticVariableInitializers(printer); in GenerateStaticVariableInitializers()
122 void ImmutableMessageLiteGenerator::GenerateInterface(io::Printer* printer) { in GenerateInterface() argument
124 printer->Print( in GenerateInterface()
133 printer->Print( in GenerateInterface()
141 printer->Indent(); in GenerateInterface()
143 printer->Print("\n"); in GenerateInterface()
145 .GenerateInterfaceMembers(printer); in GenerateInterface()
[all …]
Djava_primitive_field.cc173 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers()
175 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
176 printer->Print(variables_, in GenerateInterfaceMembers()
179 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
180 printer->Print(variables_, in GenerateInterfaceMembers()
185 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
186 printer->Print(variables_, in GenerateMembers()
188 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
190 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
191 printer->Print(variables_, in GenerateMembers()
[all …]
Djava_message.cc105 io::Printer* printer, int* bytecode_estimate) { in GenerateStaticVariables() argument
135 printer->Print(vars, in GenerateStaticVariables()
144 GenerateFieldAccessorTable(printer, bytecode_estimate); in GenerateStaticVariables()
150 .GenerateStaticVariables(printer, bytecode_estimate); in GenerateStaticVariables()
155 io::Printer* printer) { in GenerateStaticVariableInitializers() argument
168 printer->Print(vars, in GenerateStaticVariableInitializers()
173 printer->Print(vars, in GenerateStaticVariableInitializers()
180 bytecode_estimate += GenerateFieldAccessorTableInitializer(printer); in GenerateStaticVariableInitializers()
187 .GenerateStaticVariableInitializers(printer); in GenerateStaticVariableInitializers()
193 GenerateFieldAccessorTable(io::Printer* printer, int* bytecode_estimate) { in GenerateFieldAccessorTable() argument
[all …]
/external/flatbuffers/grpc/src/compiler/
Dgo_generator.cc74 void GenerateImports(grpc_generator::File *file, grpc_generator::Printer *printer, in GenerateImports() argument
77 printer->Print("//Generated by gRPC Go plugin\n"); in GenerateImports()
78 printer->Print("//If you make any local changes, they will be lost\n"); in GenerateImports()
79 printer->Print(vars, "//source: $filename$\n\n"); in GenerateImports()
80 printer->Print(vars, "package $Package$\n\n"); in GenerateImports()
82 printer->Print(file->additional_headers().c_str()); in GenerateImports()
83 printer->Print("\n\n"); in GenerateImports()
85 printer->Print("import (\n"); in GenerateImports()
86 printer->Indent(); in GenerateImports()
87 printer->Print(vars, "$context$ \"context\"\n"); in GenerateImports()
[all …]
Dcpp_generator.cc84 void PrintIncludes(grpc_generator::Printer *printer, in PrintIncludes() argument
102 printer->Print(vars, "#include $l$$h$$r$\n"); in PrintIncludes()
111 auto printer = file->CreatePrinter(&output); in GetHeaderPrologue() local
119 printer->Print(vars, "// Generated by the gRPC C++ plugin.\n"); in GetHeaderPrologue()
120 printer->Print(vars, in GetHeaderPrologue()
122 printer->Print(vars, "// source: $filename$\n"); in GetHeaderPrologue()
125 printer->Print(vars, "// Original file comments:\n"); in GetHeaderPrologue()
126 printer->Print(leading_comments.c_str()); in GetHeaderPrologue()
128 printer->Print(vars, "#ifndef GRPC_$filename_identifier$__INCLUDED\n"); in GetHeaderPrologue()
129 printer->Print(vars, "#define GRPC_$filename_identifier$__INCLUDED\n"); in GetHeaderPrologue()
[all …]
/external/python/apitools/apitools/gen/
Dcommand_registry.py294 def __PrintFlagDeclarations(self, printer): argument
298 printer()
299 printer()
300 printer('def %s():', function_name)
301 with printer.Indent():
302 printer('"""Declare global flags in an idempotent way."""')
303 printer("if 'api_endpoint' in flags.FLAGS:")
304 with printer.Indent():
305 printer('return')
306 printer('flags.DEFINE_string(')
[all …]
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_message.cc89 void MessageGenerator::GenerateStaticVariables(io::Printer* printer) { in GenerateStaticVariables() argument
95 .GenerateStaticVariables(printer); in GenerateStaticVariables()
100 io::Printer* printer) { in GenerateStaticVariableInitializers() argument
106 .GenerateStaticVariableInitializers(printer); in GenerateStaticVariableInitializers()
110 void MessageGenerator::Generate(io::Printer* printer) { in Generate() argument
126 printer->Print( in Generate()
132 printer->Print( in Generate()
138 printer->Print( in Generate()
142 printer->Print( in Generate()
146 printer->Print( in Generate()
[all …]
Djavanano_enum_field.cc100 io::Printer* printer, const vector<string>& canonical_values) { in PrintCaseLabels() argument
102 printer->Print( in PrintCaseLabels()
122 GenerateMembers(io::Printer* printer, bool /* unused lazy_init */) const { in GenerateMembers() argument
124 printer->Print(variables_, "$message_type_intdef$\n"); in GenerateMembers()
126 printer->Print(variables_, "public $type$ $name$;\n"); in GenerateMembers()
129 printer->Print(variables_, in GenerateMembers()
135 GenerateClearCode(io::Printer* printer) const { in GenerateClearCode()
136 printer->Print(variables_, in GenerateClearCode()
140 printer->Print(variables_, in GenerateClearCode()
146 GenerateMergingCode(io::Printer* printer) const { in GenerateMergingCode()
[all …]
/external/grpc-grpc/src/compiler/
Dcpp_generator.cc65 void PrintIncludes(grpc_generator::Printer* printer, in PrintIncludes() argument
82 printer->Print(vars, "#include $l$$h$$r$\n"); in PrintIncludes()
91 auto printer = file->CreatePrinter(&output); in GetHeaderPrologue() local
99 printer->Print(vars, "// Generated by the gRPC C++ plugin.\n"); in GetHeaderPrologue()
100 printer->Print(vars, in GetHeaderPrologue()
102 printer->Print(vars, "// source: $filename$\n"); in GetHeaderPrologue()
105 printer->Print(vars, "// Original file comments:\n"); in GetHeaderPrologue()
106 printer->PrintRaw(leading_comments.c_str()); in GetHeaderPrologue()
108 printer->Print(vars, "#ifndef GRPC_$filename_identifier$__INCLUDED\n"); in GetHeaderPrologue()
109 printer->Print(vars, "#define GRPC_$filename_identifier$__INCLUDED\n"); in GetHeaderPrologue()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_file.cc97 void FileGenerator::GenerateProtoHeader(io::Printer* printer, in GenerateProtoHeader() argument
104 GenerateTopHeaderGuard(printer, filename_identifier); in GenerateProtoHeader()
107 GenerateLibraryIncludes(printer); in GenerateProtoHeader()
113 printer->Print( in GenerateProtoHeader()
118 GenerateMetadataPragma(printer, info_path); in GenerateProtoHeader()
120 printer->Print( in GenerateProtoHeader()
124 GenerateForwardDeclarations(printer); in GenerateProtoHeader()
127 GenerateNamespaceOpeners(printer); in GenerateProtoHeader()
129 GenerateGlobalStateFunctionDeclarations(printer); in GenerateProtoHeader()
131 printer->Print("\n"); in GenerateProtoHeader()
[all …]
Dcpp_message.cc67 void PrintFieldComment(io::Printer* printer, const T* field) { in PrintFieldComment() argument
75 printer->Print("// $def$\n", in PrintFieldComment()
294 bool EmitFieldNonDefaultCondition(io::Printer* printer, in EmitFieldNonDefaultCondition() argument
301 printer->Print( in EmitFieldNonDefaultCondition()
307 printer->Print( in EmitFieldNonDefaultCondition()
312 printer->Print( in EmitFieldNonDefaultCondition()
317 printer->Indent(); in EmitFieldNonDefaultCondition()
320 printer->Print( in EmitFieldNonDefaultCondition()
323 printer->Indent(); in EmitFieldNonDefaultCondition()
448 GenerateEnumDefinitions(io::Printer* printer) { in GenerateEnumDefinitions() argument
[all …]
Dcpp_enum_field.cc71 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers()
72 printer->Print(variables_, "int $name$_;\n"); in GeneratePrivateMembers()
76 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations()
77 printer->Print(variables_, in GenerateAccessorDeclarations()
83 GenerateInlineAccessorDefinitions(io::Printer* printer, in GenerateInlineAccessorDefinitions() argument
87 printer->Print(variables, in GenerateInlineAccessorDefinitions()
94 printer->Print(variables, in GenerateInlineAccessorDefinitions()
97 printer->Print(variables, in GenerateInlineAccessorDefinitions()
105 GenerateClearingCode(io::Printer* printer) const { in GenerateClearingCode()
106 printer->Print(variables_, "$name$_ = $default$;\n"); in GenerateClearingCode()
[all …]
Dcpp_string_field.cc88 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers()
101 printer->Print(variables_, "::google::protobuf::internal::ArenaStringPtr $name$_;\n"); in GeneratePrivateMembers()
105 GenerateStaticMembers(io::Printer* printer) const { in GenerateStaticMembers()
107 printer->Print(variables_, "static ::std::string* $default_variable$;\n"); in GenerateStaticMembers()
112 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations()
134 printer->Outdent(); in GenerateAccessorDeclarations()
135 printer->Print( in GenerateAccessorDeclarations()
138 printer->Indent(); in GenerateAccessorDeclarations()
141 printer->Print(variables_, in GenerateAccessorDeclarations()
151 printer->Print(variables_, in GenerateAccessorDeclarations()
[all …]
Dcpp_message_field.cc92 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers()
93 printer->Print(variables_, "$type$* $name$_;\n"); in GeneratePrivateMembers()
97 GenerateGetterDeclaration(io::Printer* printer) const { in GenerateGetterDeclaration()
98 printer->Print(variables_, in GenerateGetterDeclaration()
103 GenerateDependentAccessorDeclarations(io::Printer* printer) const { in GenerateDependentAccessorDeclarations()
108 printer->Print(variables_, in GenerateDependentAccessorDeclarations()
115 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations()
117 printer->Print(variables_, in GenerateAccessorDeclarations()
121 printer->Print(variables_, in GenerateAccessorDeclarations()
125 printer->Print(variables_, in GenerateAccessorDeclarations()
[all …]
/external/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_reflection_class.cc65 void ReflectionClassGenerator::Generate(io::Printer* printer) { in Generate() argument
66 WriteIntroduction(printer); in Generate()
68 WriteDescriptor(printer); in Generate()
70 printer->Outdent(); in Generate()
71 printer->Print("}\n"); in Generate()
75 printer->Print("#region Enums\n"); in Generate()
78 enumGenerator.Generate(printer); in Generate()
80 printer->Print("#endregion\n"); in Generate()
81 printer->Print("\n"); in Generate()
86 printer->Print("#region Messages\n"); in Generate()
[all …]

12345678910>>...29