Home
last modified time | relevance | path

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

12345678910>>...17

/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_message_field.cc142 io::Printer* printer) const { in GenerateInterfaceMembers()
147 WriteFieldAccessorDocComment(printer, descriptor_, HAZZER); in GenerateInterfaceMembers()
148 printer->Print(variables_, "$deprecation$boolean has$capitalized_name$();\n"); in GenerateInterfaceMembers()
149 WriteFieldAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
150 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers()
152 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
153 printer->Print( in GenerateInterfaceMembers()
159 io::Printer* printer) const { in GenerateMembers()
160 printer->Print(variables_, "private $type$ $name$_;\n"); in GenerateMembers()
161 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
[all …]
Djava_message_field_lite.cc127 io::Printer* printer) const { in GenerateInterfaceMembers()
128 WriteFieldAccessorDocComment(printer, descriptor_, HAZZER); in GenerateInterfaceMembers()
129 printer->Print(variables_, "$deprecation$boolean has$capitalized_name$();\n"); in GenerateInterfaceMembers()
130 WriteFieldAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
131 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers()
135 io::Printer* printer) const { in GenerateMembers()
137 printer->Print(variables_, "private $type$ $name$_;\n"); in GenerateMembers()
138 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
141 WriteFieldDocComment(printer, descriptor_); in GenerateMembers()
142 printer->Print( in GenerateMembers()
[all …]
Djava_string_field.cc190 io::Printer* printer) const { in GenerateInterfaceMembers()
192 WriteFieldAccessorDocComment(printer, descriptor_, HAZZER); in GenerateInterfaceMembers()
193 printer->Print(variables_, in GenerateInterfaceMembers()
196 WriteFieldAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
197 printer->Print(variables_, in GenerateInterfaceMembers()
199 WriteFieldStringBytesAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
200 printer->Print(variables_, in GenerateInterfaceMembers()
206 io::Printer* printer) const { in GenerateMembers()
207 printer->Print(variables_, "private volatile java.lang.Object $name$_;\n"); in GenerateMembers()
208 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
[all …]
Djava_enum_field.cc156 io::Printer* printer) const { in GenerateInterfaceMembers()
158 WriteFieldAccessorDocComment(printer, descriptor_, HAZZER); in GenerateInterfaceMembers()
159 printer->Print(variables_, in GenerateInterfaceMembers()
163 WriteFieldEnumValueAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
164 printer->Print(variables_, in GenerateInterfaceMembers()
167 WriteFieldAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
168 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers()
171 void ImmutableEnumFieldGenerator::GenerateMembers(io::Printer* printer) const { in GenerateMembers()
172 printer->Print(variables_, "private int $name$_;\n"); in GenerateMembers()
173 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
[all …]
Djava_string_field_lite.cc159 io::Printer* printer) const { in GenerateInterfaceMembers()
161 WriteFieldAccessorDocComment(printer, descriptor_, HAZZER); in GenerateInterfaceMembers()
162 printer->Print(variables_, in GenerateInterfaceMembers()
165 WriteFieldAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
166 printer->Print(variables_, in GenerateInterfaceMembers()
168 WriteFieldStringBytesAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
169 printer->Print(variables_, in GenerateInterfaceMembers()
175 io::Printer* printer) const { in GenerateMembers()
176 printer->Print(variables_, "private java.lang.String $name$_;\n"); in GenerateMembers()
177 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
[all …]
Djava_map_field_lite.cc156 io::Printer* printer) const { in GenerateInterfaceMembers()
157 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
158 printer->Print(variables_, in GenerateInterfaceMembers()
160 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers()
161 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
162 printer->Print(variables_, in GenerateInterfaceMembers()
165 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers()
167 printer->Print(variables_, in GenerateInterfaceMembers()
174 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers()
175 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
[all …]
Djava_enum_field_lite.cc144 io::Printer* printer) const { in GenerateInterfaceMembers()
146 WriteFieldAccessorDocComment(printer, descriptor_, HAZZER); in GenerateInterfaceMembers()
147 printer->Print(variables_, in GenerateInterfaceMembers()
151 WriteFieldEnumValueAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
152 printer->Print(variables_, in GenerateInterfaceMembers()
155 WriteFieldAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
156 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers()
160 io::Printer* printer) const { in GenerateMembers()
161 printer->Print(variables_, "private int $name$_;\n"); in GenerateMembers()
162 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
[all …]
Djava_service.cc63 void ImmutableServiceGenerator::Generate(io::Printer* printer) { in Generate() argument
65 WriteServiceDocComment(printer, descriptor_); in Generate()
66 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, in Generate()
68 printer->Print( in Generate()
72 printer->Indent(); in Generate()
74 printer->Print("protected $classname$() {}\n\n", "classname", in Generate()
77 GenerateInterface(printer); in Generate()
79 GenerateNewReflectiveServiceMethod(printer); in Generate()
80 GenerateNewReflectiveBlockingServiceMethod(printer); in Generate()
82 GenerateAbstractMethods(printer); in Generate()
[all …]
Djava_primitive_field.cc206 io::Printer* printer) const { in GenerateInterfaceMembers()
208 WriteFieldAccessorDocComment(printer, descriptor_, HAZZER); in GenerateInterfaceMembers()
209 printer->Print(variables_, in GenerateInterfaceMembers()
212 WriteFieldAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
213 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers()
217 io::Printer* printer) const { in GenerateMembers()
218 printer->Print(variables_, "private $field_type$ $name$_;\n"); in GenerateMembers()
219 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
221 WriteFieldAccessorDocComment(printer, descriptor_, HAZZER); in GenerateMembers()
222 printer->Print( in GenerateMembers()
[all …]
Djava_map_field.cc175 io::Printer* printer) const { in GenerateInterfaceMembers()
176 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
177 printer->Print(variables_, in GenerateInterfaceMembers()
179 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers()
180 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
181 printer->Print(variables_, in GenerateInterfaceMembers()
184 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers()
186 printer->Print(variables_, in GenerateInterfaceMembers()
193 printer->Annotate("{", "}", descriptor_); in GenerateInterfaceMembers()
194 WriteFieldDocComment(printer, descriptor_); in GenerateInterfaceMembers()
[all …]
Djava_message.cc103 io::Printer* printer, int* bytecode_estimate) { in GenerateStaticVariables() argument
132 printer->Print( in GenerateStaticVariables()
142 GenerateFieldAccessorTable(printer, bytecode_estimate); in GenerateStaticVariables()
148 .GenerateStaticVariables(printer, bytecode_estimate); in GenerateStaticVariables()
153 io::Printer* printer) { in GenerateStaticVariableInitializers() argument
165 printer->Print(vars, in GenerateStaticVariableInitializers()
170 printer->Print( in GenerateStaticVariableInitializers()
178 bytecode_estimate += GenerateFieldAccessorTableInitializer(printer); in GenerateStaticVariableInitializers()
185 .GenerateStaticVariableInitializers(printer); in GenerateStaticVariableInitializers()
191 io::Printer* printer, int* bytecode_estimate) { in GenerateFieldAccessorTable() argument
[all …]
Djava_primitive_field_lite.cc195 io::Printer* printer) const { in GenerateInterfaceMembers()
197 WriteFieldAccessorDocComment(printer, descriptor_, HAZZER); in GenerateInterfaceMembers()
198 printer->Print(variables_, in GenerateInterfaceMembers()
201 WriteFieldAccessorDocComment(printer, descriptor_, GETTER); in GenerateInterfaceMembers()
202 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers()
206 io::Printer* printer) const { in GenerateMembers()
210 printer->Print( in GenerateMembers()
214 printer->Print(variables_, "private $field_type$ $name$_;\n"); in GenerateMembers()
215 PrintExtraFieldInfo(variables_, printer); in GenerateMembers()
217 WriteFieldAccessorDocComment(printer, descriptor_, HAZZER); in GenerateMembers()
[all …]
Djava_message_builder.cc88 void MessageBuilderGenerator::Generate(io::Printer* printer) { in Generate() argument
89 WriteMessageDocComment(printer, descriptor_); in Generate()
91 printer->Print( in Generate()
101 printer->Print( in Generate()
111 printer->Indent(); in Generate()
113 GenerateDescriptorMethods(printer); in Generate()
114 GenerateCommonBuilderMethods(printer); in Generate()
117 GenerateIsInitialized(printer); in Generate()
118 GenerateBuilderParsingMethods(printer); in Generate()
129 printer->Print(vars, in Generate()
[all …]
Djava_doc_comment.cc105 static void WriteDocCommentBodyForLocation(io::Printer* printer, in WriteDocCommentBodyForLocation() argument
124 printer->Print(" * <pre>\n"); in WriteDocCommentBodyForLocation()
130 printer->Print(" * $line$\n", "line", lines[i]); in WriteDocCommentBodyForLocation()
132 printer->Print(" *$line$\n", "line", lines[i]); in WriteDocCommentBodyForLocation()
135 printer->Print( in WriteDocCommentBodyForLocation()
142 static void WriteDocCommentBody(io::Printer* printer, in WriteDocCommentBody() argument
146 WriteDocCommentBodyForLocation(printer, location); in WriteDocCommentBody()
166 void WriteMessageDocComment(io::Printer* printer, const Descriptor* message) { in WriteMessageDocComment() argument
167 printer->Print("/**\n"); in WriteMessageDocComment()
168 WriteDocCommentBody(printer, message); in WriteMessageDocComment()
[all …]
Djava_message_lite.cc86 io::Printer* printer, int* bytecode_estimate) { in GenerateStaticVariables() argument
91 .GenerateStaticVariables(printer, bytecode_estimate); in GenerateStaticVariables()
96 io::Printer* printer) { in GenerateStaticVariableInitializers() argument
103 .GenerateStaticVariableInitializers(printer); in GenerateStaticVariableInitializers()
110 void ImmutableMessageLiteGenerator::GenerateInterface(io::Printer* printer) { in GenerateInterface() argument
111 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, in GenerateInterface()
114 printer->Print( in GenerateInterface()
125 printer->Print( in GenerateInterface()
134 printer->Annotate("{", "}", descriptor_); in GenerateInterface()
136 printer->Indent(); in GenerateInterface()
[all …]
Djava_enum.cc76 void EnumGenerator::Generate(io::Printer* printer) { in Generate() argument
77 WriteEnumDocComment(printer, descriptor_); in Generate()
78 MaybePrintGeneratedAnnotation(context_, printer, descriptor_, immutable_api_); in Generate()
79 printer->Print( in Generate()
83 printer->Annotate("classname", descriptor_); in Generate()
84 printer->Indent(); in Generate()
101 WriteEnumValueDocComment(printer, canonical_values_[i]); in Generate()
103 printer->Print("@java.lang.Deprecated\n"); in Generate()
106 printer->Print(vars, "$name$($number$),\n"); in Generate()
108 printer->Print(vars, "$name$($index$, $number$),\n"); in Generate()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_message.cc102 void MessageGenerator::AddDeprecatedFlag(io::Printer* printer) { in AddDeprecatedFlag() argument
104 printer->Print("[global::System.ObsoleteAttribute]\n"); in AddDeprecatedFlag()
108 void MessageGenerator::AddSerializableAttribute(io::Printer* printer) { in AddSerializableAttribute() argument
110 printer->Print("[global::System.SerializableAttribute]\n"); in AddSerializableAttribute()
114 void MessageGenerator::Generate(io::Printer* printer) { in Generate() argument
119 WriteMessageDocComment(printer, descriptor_); in Generate()
120 AddDeprecatedFlag(printer); in Generate()
121 AddSerializableAttribute(printer); in Generate()
123 printer->Print( in Generate()
128 printer->Print(vars, "pb::IExtendableMessage<$class_name$>\n"); in Generate()
[all …]
Dcsharp_primitive_field.cc65 void PrimitiveFieldGenerator::GenerateMembers(io::Printer* printer) { in GenerateMembers() argument
81 printer->Print( in GenerateMembers()
91 printer->Print( in GenerateMembers()
95 WritePropertyDocComment(printer, descriptor_); in GenerateMembers()
96 AddPublicMemberAttributes(printer); in GenerateMembers()
100 printer->Print(variables_, "$access_level$ $type_name$ $property_name$ {\n"); in GenerateMembers()
105 printer->Print( in GenerateMembers()
109 printer->Print( in GenerateMembers()
117 printer->Print( in GenerateMembers()
124 printer->Print(" set {\n"); in GenerateMembers()
[all …]
Dcsharp_message_field.cc66 void MessageFieldGenerator::GenerateMembers(io::Printer* printer) { in GenerateMembers() argument
67 printer->Print( in GenerateMembers()
70 WritePropertyDocComment(printer, descriptor_); in GenerateMembers()
71 AddPublicMemberAttributes(printer); in GenerateMembers()
72 printer->Print( in GenerateMembers()
81 printer->Print( in GenerateMembers()
84 AddPublicMemberAttributes(printer); in GenerateMembers()
85 printer->Print( in GenerateMembers()
90 printer->Print( in GenerateMembers()
93 AddPublicMemberAttributes(printer); in GenerateMembers()
[all …]
Dcsharp_wrapper_field.cc65 void WrapperFieldGenerator::GenerateMembers(io::Printer* printer) { in GenerateMembers() argument
66 printer->Print( in GenerateMembers()
69 GenerateCodecCode(printer); in GenerateMembers()
70 printer->Print( in GenerateMembers()
74 WritePropertyDocComment(printer, descriptor_); in GenerateMembers()
75 AddPublicMemberAttributes(printer); in GenerateMembers()
76 printer->Print( in GenerateMembers()
85 printer->Print( in GenerateMembers()
88 AddPublicMemberAttributes(printer); in GenerateMembers()
89 printer->Print( in GenerateMembers()
[all …]
Dcsharp_reflection_class.cc66 void ReflectionClassGenerator::Generate(io::Printer* printer) { in Generate() argument
67 WriteIntroduction(printer); in Generate()
69 WriteDescriptor(printer); in Generate()
71 printer->Outdent(); in Generate()
72 printer->Print("}\n"); in Generate()
75 printer->Print( in Generate()
81 printer->Indent(); in Generate()
85 generator->GenerateExtensionCode(printer); in Generate()
87 printer->Outdent(); in Generate()
88 printer->Print( in Generate()
[all …]
Dcsharp_repeated_message_field.cc59 void RepeatedMessageFieldGenerator::GenerateMembers(io::Printer* printer) { in GenerateMembers() argument
60 printer->Print( in GenerateMembers()
70 single_generator->GenerateCodecCode(printer); in GenerateMembers()
74 single_generator->GenerateCodecCode(printer); in GenerateMembers()
76 printer->Print(";\n"); in GenerateMembers()
77 printer->Print( in GenerateMembers()
80 WritePropertyDocComment(printer, descriptor_); in GenerateMembers()
81 AddPublicMemberAttributes(printer); in GenerateMembers()
82 printer->Print( in GenerateMembers()
89 void RepeatedMessageFieldGenerator::GenerateMergingCode(io::Printer* printer) { in GenerateMergingCode() argument
[all …]
/third_party/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
101 printer->Print(vars, "// Generated by the gRPC C++ plugin.\n"); in GetHeaderPrologue()
102 printer->Print(vars, in GetHeaderPrologue()
104 printer->Print(vars, "// source: $filename$\n"); in GetHeaderPrologue()
107 printer->Print(vars, "// Original file comments:\n"); in GetHeaderPrologue()
108 printer->PrintRaw(leading_comments.c_str()); in GetHeaderPrologue()
110 printer->Print(vars, "#ifndef GRPC_$filename_identifier$__INCLUDED\n"); in GetHeaderPrologue()
111 printer->Print(vars, "#define GRPC_$filename_identifier$__INCLUDED\n"); in GetHeaderPrologue()
[all …]
Dobjective_c_generator.cc40 void PrintProtoRpcDeclarationAsPragma(Printer* printer, in PrintProtoRpcDeclarationAsPragma() argument
46 printer->Print(vars, in PrintProtoRpcDeclarationAsPragma()
52 static void PrintAllComments(const DescriptorType* desc, Printer* printer, in PrintAllComments() argument
64 printer->Print("/**\n"); in PrintAllComments()
66 printer->Print(" * "); in PrintAllComments()
69 printer->PrintRaw(it->c_str() + start_pos); in PrintAllComments()
71 printer->Print("\n"); in PrintAllComments()
74 printer->Print(" *\n"); in PrintAllComments()
75 printer->Print( in PrintAllComments()
80 printer->Print(" */\n"); in PrintAllComments()
[all …]
/third_party/protobuf/src/google/protobuf/io/
Dprinter_unittest.cc58 Printer printer(&output, '\0'); in TEST() local
59 EXPECT_TRUE(!printer.failed()); in TEST()
69 Printer printer(&output, '\0'); in TEST() local
71 printer.Print("Hello World!"); in TEST()
72 printer.Print(" This is the same line.\n"); in TEST()
73 printer.Print("But this is a new one.\nAnd this is another one."); in TEST()
75 EXPECT_FALSE(printer.failed()); in TEST()
96 Printer printer(&output, '$'); in TEST() local
97 printer.WriteRaw("Hello World!", 12); in TEST()
98 printer.PrintRaw(" This is the same line.\n"); in TEST()
[all …]

12345678910>>...17