Home
last modified time | relevance | path

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

12345678910>>...16

/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_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_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_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_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_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_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_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_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 …]
/third_party/flatbuffers/grpc/src/compiler/
Dgo_generator.cc73 void GenerateError(grpc_generator::Printer *printer, in GenerateError() argument
76 printer->Print(vars, "if $Error_Check$ {\n"); in GenerateError()
77 printer->Indent(); in GenerateError()
79 printer->Print(vars, "return $Return$\n"); in GenerateError()
80 printer->Outdent(); in GenerateError()
81 printer->Print("}\n"); in GenerateError()
85 void GenerateImports(grpc_generator::File *file, grpc_generator::Printer *printer, in GenerateImports() argument
88 printer->Print("//Generated by gRPC Go plugin\n"); in GenerateImports()
89 printer->Print("//If you make any local changes, they will be lost\n"); in GenerateImports()
90 printer->Print(vars, "//source: $filename$\n\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 …]
Dpython_generator.cc50 grpc_generator::Printer *printer, in GenerateStub() argument
53 printer->Print(vars, "class $ServiceName$Stub(object):\n"); in GenerateStub()
54 printer->Indent(); in GenerateStub()
55 printer->Print("\"\"\" Interface exported by the server. \"\"\""); in GenerateStub()
56 printer->Print("\n\n"); in GenerateStub()
57 printer->Print("def __init__(self, channel):\n"); in GenerateStub()
58 printer->Indent(); in GenerateStub()
59 printer->Print("\"\"\" Constructor. \n\n"); in GenerateStub()
60 printer->Print("Args: \n"); in GenerateStub()
61 printer->Print("channel: A grpc.Channel. \n"); in GenerateStub()
[all …]
Dts_generator.cc68 grpc_generator::Printer *printer, in GenerateImports() argument
72 printer->Print( in GenerateImports()
74 printer->Print("import * as flatbuffers from 'flatbuffers';\n"); in GenerateImports()
93 printer->Print( in GenerateImports()
102 printer->Print( in GenerateImports()
106 printer->Print("\n"); in GenerateImports()
108 printer->Print("var grpc = require('grpc');\n"); in GenerateImports()
110 printer->Print("import * as grpc from 'grpc';\n"); in GenerateImports()
111 printer->Print("\n"); in GenerateImports()
116 void GetStreamType(grpc_generator::Printer *printer, in GetStreamType() argument
[all …]
Dswift_generator.cc48 grpc_generator::Printer *printer, in GenerateClientFuncName() argument
52 printer->Print(vars, in GenerateClientFuncName()
61 printer->Print(vars, in GenerateClientFuncName()
71 printer->Print(vars, in GenerateClientFuncName()
78 printer->Print(vars, in GenerateClientFuncName()
86 grpc_generator::Printer *printer, in GenerateClientFuncBody() argument
92 printer->Print( in GenerateClientFuncBody()
104 printer->Print( in GenerateClientFuncBody()
117 printer->Print( in GenerateClientFuncBody()
126 printer->Print(vars, in GenerateClientFuncBody()
[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_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_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 …]

12345678910>>...16