Home
last modified time | relevance | path

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

12345678910>>...15

/external/protobuf/src/google/protobuf/compiler/java/
Djava_message_field.cc145 GenerateInterfaceMembers(io::Printer* printer) const { in GenerateInterfaceMembers()
152 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
153 printer->Print(variables_, in GenerateInterfaceMembers()
156 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
157 printer->Print(variables_, in GenerateInterfaceMembers()
161 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
162 printer->Print(variables_, in GenerateInterfaceMembers()
168 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
169 printer->Print(variables_, in GenerateMembers()
171 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()
77 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
78 printer->Print(variables_, in GenerateMembers()
86 GenerateBuilderMembers(io::Printer* printer) const { in GenerateBuilderMembers()
[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_enum_field.cc147 GenerateInterfaceMembers(io::Printer* printer) const { 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()
164 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
165 printer->Print(variables_, in GenerateMembers()
[all …]
Djava_service.cc63 void ImmutableServiceGenerator::Generate(io::Printer* printer) { in Generate() argument
66 WriteServiceDocComment(printer, descriptor_); in Generate()
67 printer->Print( in Generate()
72 printer->Indent(); in Generate()
74 printer->Print( in Generate()
78 GenerateInterface(printer); in Generate()
80 GenerateNewReflectiveServiceMethod(printer); in Generate()
81 GenerateNewReflectiveBlockingServiceMethod(printer); in Generate()
83 GenerateAbstractMethods(printer); in Generate()
86 printer->Print( in Generate()
[all …]
Djava_message.cc90 void ImmutableMessageGenerator::GenerateStaticVariables(io::Printer* printer) { in GenerateStaticVariables() argument
116 printer->Print(vars, in GenerateStaticVariables()
121 GenerateFieldAccessorTable(printer); in GenerateStaticVariables()
128 .GenerateStaticVariables(printer); in GenerateStaticVariables()
133 io::Printer* printer) { in GenerateStaticVariableInitializers() argument
146 printer->Print(vars, in GenerateStaticVariableInitializers()
150 printer->Print(vars, in GenerateStaticVariableInitializers()
156 GenerateFieldAccessorTableInitializer(printer); in GenerateStaticVariableInitializers()
163 .GenerateStaticVariableInitializers(printer); in GenerateStaticVariableInitializers()
168 GenerateFieldAccessorTable(io::Printer* printer) { in GenerateFieldAccessorTable() argument
[all …]
Djava_primitive_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()
205 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
206 printer->Print(variables_, in GenerateMembers()
208 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
210 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
211 printer->Print(variables_, in GenerateMembers()
[all …]
Djava_message_field.h66 void GenerateInterfaceMembers(io::Printer* printer) const;
67 void GenerateMembers(io::Printer* printer) const;
68 void GenerateBuilderMembers(io::Printer* printer) const;
69 void GenerateInitializationCode(io::Printer* printer) const;
70 void GenerateBuilderClearCode(io::Printer* printer) const;
71 void GenerateMergingCode(io::Printer* printer) const;
72 void GenerateBuildingCode(io::Printer* printer) const;
73 void GenerateParsingCode(io::Printer* printer) const;
74 void GenerateParsingDoneCode(io::Printer* printer) const;
75 void GenerateSerializationCode(io::Printer* printer) const;
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/gen/
Dcommand_registry.py278 def __PrintFlagDeclarations(self, printer): argument
281 printer()
282 printer()
283 printer('def %s():', function_name)
284 with printer.Indent():
285 printer('"""Declare global flags in an idempotent way."""')
286 printer("if 'api_endpoint' in flags.FLAGS:")
287 with printer.Indent():
288 printer('return')
289 printer('flags.DEFINE_string(')
[all …]
Dgen_client_lib.py147 printer = util.SimplePrettyPrinter(out)
148 return printer
152 printer = self._GetPrinter(out)
153 printer('"""Common imports for generated %s client library."""',
155 printer('# pylint:disable=wildcard-import')
156 printer()
157 printer('import pkgutil')
158 printer()
159 printer('from %s import *', self.__base_files_package)
165 printer('from %s%s import *',
[all …]
Dservice_registry.py50 def __PrintDocstring(self, printer, method_info, method_name, name): argument
61 with printer.CommentContext():
62 printer('"""%s' % description)
63 printer()
64 printer('Args:')
65 printer(' request: (%s) input message', method_info.request_type_name)
66 printer(' global_params: (StandardQueryParameters, default: None) '
69 printer(' upload: (Upload, default: None) If present, upload')
70 printer(' this stream with the request.')
72 printer(
[all …]
/external/protobuf/src/google/protobuf/compiler/javanano/
Djavanano_message.cc89 void MessageGenerator::GenerateStaticVariables(io::Printer* printer) { in GenerateStaticVariables() argument
94 .GenerateStaticVariables(printer); in GenerateStaticVariables()
99 io::Printer* printer) { in GenerateStaticVariableInitializers() argument
104 .GenerateStaticVariableInitializers(printer); in GenerateStaticVariableInitializers()
108 void MessageGenerator::Generate(io::Printer* printer) { in Generate() argument
124 printer->Print( in Generate()
130 printer->Print( in Generate()
136 printer->Print( in Generate()
140 printer->Print( in Generate()
144 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 …]
Djavanano_primitive_field.cc270 void PrimitiveFieldGenerator::GenerateInitSavedDefaultCode(io::Printer* printer) const { in GenerateInitSavedDefaultCode()
272 printer->Print(variables_, in GenerateInitSavedDefaultCode()
278 GenerateMembers(io::Printer* printer, bool lazy_init) const { in GenerateMembers() argument
282 printer->Print(variables_, in GenerateMembers()
285 printer->Print(variables_, in GenerateMembers()
293 printer->Print(variables_, in GenerateMembers()
298 printer->Print(variables_, in GenerateMembers()
303 printer->Print(variables_, in GenerateMembers()
309 GenerateClearCode(io::Printer* printer) const { in GenerateClearCode()
312 printer->Print(variables_, in GenerateClearCode()
[all …]
Djavanano_message_field.cc85 GenerateMembers(io::Printer* printer, bool /* unused lazy_init */) const { in GenerateMembers() argument
86 printer->Print(variables_, in GenerateMembers()
91 GenerateClearCode(io::Printer* printer) const { in GenerateClearCode()
92 printer->Print(variables_, in GenerateClearCode()
97 GenerateMergingCode(io::Printer* printer) const { in GenerateMergingCode()
98 printer->Print(variables_, in GenerateMergingCode()
104 printer->Print(variables_, in GenerateMergingCode()
107 printer->Print(variables_, in GenerateMergingCode()
113 GenerateSerializationCode(io::Printer* printer) const { in GenerateSerializationCode()
114 printer->Print(variables_, in GenerateSerializationCode()
[all …]
/external/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_message.cc64 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) { in PrintFieldComment() argument
68 printer->Print("// $def$\n", in PrintFieldComment()
320 GenerateForwardDeclaration(io::Printer* printer) { in GenerateForwardDeclaration() argument
321 printer->Print("class $classname$;\n", in GenerateForwardDeclaration()
325 nested_generators_[i]->GenerateForwardDeclaration(printer); in GenerateForwardDeclaration()
330 GenerateEnumDefinitions(io::Printer* printer) { in GenerateEnumDefinitions() argument
332 nested_generators_[i]->GenerateEnumDefinitions(printer); in GenerateEnumDefinitions()
336 enum_generators_[i]->GenerateDefinition(printer); in GenerateEnumDefinitions()
341 GenerateGetEnumDescriptorSpecializations(io::Printer* printer) { in GenerateGetEnumDescriptorSpecializations() argument
343 nested_generators_[i]->GenerateGetEnumDescriptorSpecializations(printer); in GenerateGetEnumDescriptorSpecializations()
[all …]
Dcpp_file.cc93 void FileGenerator::GenerateHeader(io::Printer* printer) { in GenerateHeader() argument
97 printer->Print( in GenerateHeader()
110 printer->Print( in GenerateHeader()
116 printer->Print( in GenerateHeader()
133 printer->Print( in GenerateHeader()
137 printer->Print( in GenerateHeader()
140 printer->Print( in GenerateHeader()
144 printer->Print( in GenerateHeader()
149 printer->Print( in GenerateHeader()
154 printer->Print( in GenerateHeader()
[all …]
Dcpp_string_field.cc82 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers()
83 printer->Print(variables_, "::std::string* $name$_;\n"); in GeneratePrivateMembers()
87 GenerateStaticMembers(io::Printer* printer) const { in GenerateStaticMembers()
89 printer->Print(variables_, "static ::std::string* $default_variable$;\n"); in GenerateStaticMembers()
94 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations()
112 printer->Outdent(); in GenerateAccessorDeclarations()
113 printer->Print( in GenerateAccessorDeclarations()
116 printer->Indent(); in GenerateAccessorDeclarations()
119 printer->Print(variables_, in GenerateAccessorDeclarations()
131 printer->Outdent(); in GenerateAccessorDeclarations()
[all …]
Dcpp_enum_field.cc72 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers()
73 printer->Print(variables_, "int $name$_;\n"); in GeneratePrivateMembers()
77 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations()
78 printer->Print(variables_, in GenerateAccessorDeclarations()
84 GenerateInlineAccessorDefinitions(io::Printer* printer) const { in GenerateInlineAccessorDefinitions()
85 printer->Print(variables_, in GenerateInlineAccessorDefinitions()
99 GenerateClearingCode(io::Printer* printer) const { in GenerateClearingCode()
100 printer->Print(variables_, "$name$_ = $default$;\n"); in GenerateClearingCode()
104 GenerateMergingCode(io::Printer* printer) const { in GenerateMergingCode()
105 printer->Print(variables_, "set_$name$(from.$name$());\n"); in GenerateMergingCode()
[all …]
Dcpp_primitive_field.cc113 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers()
114 printer->Print(variables_, "$type$ $name$_;\n"); in GeneratePrivateMembers()
118 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations()
119 printer->Print(variables_, in GenerateAccessorDeclarations()
125 GenerateInlineAccessorDefinitions(io::Printer* printer) const { in GenerateInlineAccessorDefinitions()
126 printer->Print(variables_, in GenerateInlineAccessorDefinitions()
139 GenerateClearingCode(io::Printer* printer) const { in GenerateClearingCode()
140 printer->Print(variables_, "$name$_ = $default$;\n"); in GenerateClearingCode()
144 GenerateMergingCode(io::Printer* printer) const { in GenerateMergingCode()
145 printer->Print(variables_, "set_$name$(from.$name$());\n"); in GenerateMergingCode()
[all …]
Dcpp_message_field.cc78 GeneratePrivateMembers(io::Printer* printer) const { in GeneratePrivateMembers()
79 printer->Print(variables_, "$type$* $name$_;\n"); in GeneratePrivateMembers()
83 GenerateAccessorDeclarations(io::Printer* printer) const { in GenerateAccessorDeclarations()
84 printer->Print(variables_, in GenerateAccessorDeclarations()
92 GenerateInlineAccessorDefinitions(io::Printer* printer) const { in GenerateInlineAccessorDefinitions()
93 printer->Print(variables_, in GenerateInlineAccessorDefinitions()
98 variables_, descriptor_->file(), printer, in GenerateInlineAccessorDefinitions()
104 printer->Print(variables_, in GenerateInlineAccessorDefinitions()
131 GenerateClearingCode(io::Printer* printer) const { in GenerateClearingCode()
132 printer->Print(variables_, in GenerateClearingCode()
[all …]
Dcpp_service.cc59 void ServiceGenerator::GenerateDeclarations(io::Printer* printer) { in GenerateDeclarations() argument
61 printer->Print(vars_, in GenerateDeclarations()
65 GenerateInterface(printer); in GenerateDeclarations()
66 GenerateStubDefinition(printer); in GenerateDeclarations()
69 void ServiceGenerator::GenerateInterface(io::Printer* printer) { in GenerateInterface() argument
70 printer->Print(vars_, in GenerateInterface()
77 printer->Indent(); in GenerateInterface()
79 printer->Print(vars_, in GenerateInterface()
86 GenerateMethodSignatures(VIRTUAL, printer); in GenerateInterface()
88 printer->Print( in GenerateInterface()
[all …]
/external/protobuf/src/google/protobuf/io/
Dprinter_unittest.cc57 Printer printer(&output, '\0'); in TEST() local
58 EXPECT_TRUE(!printer.failed()); in TEST()
68 Printer printer(&output, '\0'); in TEST() local
70 printer.Print("Hello World!"); in TEST()
71 printer.Print(" This is the same line.\n"); in TEST()
72 printer.Print("But this is a new one.\nAnd this is another one."); in TEST()
74 EXPECT_FALSE(printer.failed()); in TEST()
94 Printer printer(&output, '$'); in TEST() local
95 printer.WriteRaw("Hello World!", 12); in TEST()
96 printer.PrintRaw(" This is the same line.\n"); in TEST()
[all …]
/external/protobuf/src/google/protobuf/compiler/javamicro/
Djavamicro_message.cc56 void PrintFieldComment(io::Printer* printer, const FieldDescriptor* field) { in PrintFieldComment() argument
60 printer->Print("// $def$\n", in PrintFieldComment()
149 void MessageGenerator::GenerateStaticVariables(io::Printer* printer) { in GenerateStaticVariables() argument
154 .GenerateStaticVariables(printer); in GenerateStaticVariables()
159 io::Printer* printer) { in GenerateStaticVariableInitializers() argument
164 .GenerateStaticVariableInitializers(printer); in GenerateStaticVariableInitializers()
172 void MessageGenerator::Generate(io::Printer* printer) { in Generate() argument
186 printer->Print( in Generate()
192 printer->Indent(); in Generate()
193 printer->Print( in Generate()
[all …]
Djavamicro_enum_field.cc82 GenerateMembers(io::Printer* printer) const { in GenerateMembers()
83 printer->Print(variables_, in GenerateMembers()
101 GenerateMergingCode(io::Printer* printer) const { in GenerateMergingCode()
102 printer->Print(variables_, in GenerateMergingCode()
110 GenerateParsingCode(io::Printer* printer) const { in GenerateParsingCode()
111 printer->Print(variables_, in GenerateParsingCode()
116 GenerateSerializationCode(io::Printer* printer) const { in GenerateSerializationCode()
117 printer->Print(variables_, in GenerateSerializationCode()
124 GenerateSerializedSizeCode(io::Printer* printer) const { in GenerateSerializedSizeCode()
125 printer->Print(variables_, in GenerateSerializedSizeCode()
[all …]

12345678910>>...15