Home
last modified time | relevance | path

Searched refs:Print (Results 1 – 25 of 740) sorted by relevance

12345678910>>...30

/third_party/flatbuffers/grpc/src/compiler/
Dgo_generator.cc76 printer->Print(vars, "if $Error_Check$ {\n"); in GenerateError()
79 printer->Print(vars, "return $Return$\n"); in GenerateError()
81 printer->Print("}\n"); in GenerateError()
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()
91 printer->Print(vars, "package $Package$\n\n"); in GenerateImports()
92 printer->Print("import (\n"); in GenerateImports()
94 printer->Print(vars, "$context$ \"context\"\n"); in GenerateImports()
95 printer->Print("flatbuffers \"github.com/google/flatbuffers/go\"\n"); in GenerateImports()
[all …]
Dcpp_generator.cc102 printer->Print(vars, "#include $l$$h$$r$\n"); in PrintIncludes()
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()
130 printer->Print(vars, "\n"); in GetHeaderPrologue()
131 printer->Print(vars, "#include \"$filename_base$$message_header_ext$\"\n"); in GetHeaderPrologue()
[all …]
Dswift_generator.cc52 printer->Print(vars, in GenerateClientFuncName()
61 printer->Print(vars, in GenerateClientFuncName()
71 printer->Print(vars, in GenerateClientFuncName()
78 printer->Print(vars, in GenerateClientFuncName()
92 printer->Print( in GenerateClientFuncBody()
104 printer->Print( in GenerateClientFuncBody()
117 printer->Print( in GenerateClientFuncBody()
126 printer->Print(vars, in GenerateClientFuncBody()
139 printer->Print( in GenerateClientProtocol()
142 printer->Print("\n\n"); in GenerateClientProtocol()
[all …]
Dpython_generator.cc53 printer->Print(vars, "class $ServiceName$Stub(object):\n"); 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()
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()
62 printer->Print("\"\"\"\n\n"); in GenerateStub()
68 printer->Print(vars, "self.$MethodName$ = channel.$MethodType$(\n"); in GenerateStub()
70 printer->Print(vars, "\"/$PATH$$ServiceName$/$MethodName$\"\n"); in GenerateStub()
[all …]
Djava_generator.cc54 printer->Print( in GenerateImports()
57 printer->Print("//If you make any local changes, they will be lost\n"); in GenerateImports()
58 printer->Print(vars, "//source: $filename$.fbs\n\n"); in GenerateImports()
59 printer->Print(vars, "package $Package$;\n\n"); in GenerateImports()
62 printer->Print(file->additional_headers().c_str()); in GenerateImports()
63 printer->Print("\n\n"); in GenerateImports()
265 printer->Print(" * <pre>\n"); in GrpcWriteDocCommentBody()
274 printer->Print(vars, " * $line$\n"); in GrpcWriteDocCommentBody()
276 printer->Print(vars, " *$line$\n"); in GrpcWriteDocCommentBody()
281 printer->Print(" * </pre>\n"); in GrpcWriteDocCommentBody()
[all …]
Dts_generator.cc72 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()
124 printer->Print(vars, "requestStream: $ClientStreaming$,\n"); in GetStreamType()
125 printer->Print(vars, "responseStream: $ServerStreaming$,\n"); in GetStreamType()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_string_field.cc193 printer->Print(variables_, in GenerateInterfaceMembers()
197 printer->Print(variables_, in GenerateInterfaceMembers()
200 printer->Print(variables_, in GenerateInterfaceMembers()
207 printer->Print(variables_, "private volatile java.lang.Object $name$_;\n"); in GenerateMembers()
212 printer->Print( in GenerateMembers()
222 printer->Print( in GenerateMembers()
235 printer->Print(variables_, " $name$_ = s;\n"); in GenerateMembers()
237 printer->Print(variables_, in GenerateMembers()
242 printer->Print(variables_, in GenerateMembers()
247 printer->Print(variables_, in GenerateMembers()
[all …]
Djava_doc_comment.cc124 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()
167 printer->Print("/**\n"); in WriteMessageDocComment()
169 printer->Print( in WriteMessageDocComment()
182 printer->Print("/**\n"); in WriteFieldDocComment()
184 printer->Print(" * <code>$def$</code>\n", "def", in WriteFieldDocComment()
186 printer->Print(" */\n"); in WriteFieldDocComment()
193 printer->Print("/**\n"); in WriteFieldAccessorDocComment()
[all …]
Djava_message.cc132 printer->Print( in GenerateStaticVariables()
165 printer->Print(vars, in GenerateStaticVariableInitializers()
170 printer->Print( in GenerateStaticVariableInitializers()
207 printer->Print( in GenerateFieldAccessorTable()
221 printer->Print( in GenerateFieldAccessorTableInitializer()
232 printer->Print("\"$field_name$\", ", "field_name", info->capitalized_name); in GenerateFieldAccessorTableInitializer()
239 printer->Print("\"$oneof_name$\", ", "oneof_name", info->capitalized_name); in GenerateFieldAccessorTableInitializer()
241 printer->Print("});\n"); in GenerateFieldAccessorTableInitializer()
251 printer->Print( in GenerateInterface()
262 printer->Print( in GenerateInterface()
[all …]
Djava_primitive_field.cc209 printer->Print(variables_, in GenerateInterfaceMembers()
213 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers()
218 printer->Print(variables_, "private $field_type$ $name$_;\n"); in GenerateMembers()
222 printer->Print( in GenerateMembers()
232 printer->Print(variables_, in GenerateMembers()
242 printer->Print(variables_, "private $field_type$ $name$_ $default_init$;\n"); in GenerateBuilderMembers()
246 printer->Print( in GenerateBuilderMembers()
256 printer->Print(variables_, in GenerateBuilderMembers()
265 printer->Print(variables_, in GenerateBuilderMembers()
278 printer->Print( in GenerateBuilderMembers()
[all …]
Djava_enum_field.cc159 printer->Print(variables_, in GenerateInterfaceMembers()
164 printer->Print(variables_, in GenerateInterfaceMembers()
168 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers()
172 printer->Print(variables_, "private int $name$_;\n"); in GenerateMembers()
176 printer->Print(variables_, in GenerateMembers()
185 printer->Print(variables_, in GenerateMembers()
193 printer->Print(variables_, in GenerateMembers()
205 printer->Print(variables_, "private int $name$_ = $default_number$;\n"); in GenerateBuilderMembers()
208 printer->Print(variables_, in GenerateBuilderMembers()
217 printer->Print(variables_, in GenerateBuilderMembers()
[all …]
Djava_message_field.cc148 printer->Print(variables_, "$deprecation$boolean has$capitalized_name$();\n"); in GenerateInterfaceMembers()
150 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers()
153 printer->Print( in GenerateInterfaceMembers()
160 printer->Print(variables_, "private $type$ $name$_;\n"); in GenerateMembers()
165 printer->Print( in GenerateMembers()
173 printer->Print( in GenerateMembers()
182 printer->Print( in GenerateMembers()
192 printer->Print( in GenerateMembers()
200 printer->Print( in GenerateMembers()
209 printer->Print(variables_, in GenerateMembers()
[all …]
Djava_message_builder.cc91 printer->Print( in Generate()
101 printer->Print( in Generate()
129 printer->Print(vars, in Generate()
133 printer->Print(vars, in Generate()
143 printer->Print(" onChanged();\n"); in Generate()
144 printer->Print( in Generate()
158 printer->Print("private int $bit_field_name$;\n", "bit_field_name", in Generate()
163 printer->Print("\n"); in Generate()
173 printer->Print( in Generate()
187 printer->Print( in Generate()
[all …]
Djava_message_field_lite.cc129 printer->Print(variables_, "$deprecation$boolean has$capitalized_name$();\n"); in GenerateInterfaceMembers()
131 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers()
137 printer->Print(variables_, "private $type$ $name$_;\n"); in GenerateMembers()
142 printer->Print( in GenerateMembers()
150 printer->Print( in GenerateMembers()
159 printer->Print( in GenerateMembers()
167 printer->Print( in GenerateMembers()
178 printer->Print(variables_, in GenerateMembers()
187 printer->Print( in GenerateMembers()
204 printer->Print(variables_, in GenerateMembers()
[all …]
Djava_string_field_lite.cc162 printer->Print(variables_, in GenerateInterfaceMembers()
166 printer->Print(variables_, in GenerateInterfaceMembers()
169 printer->Print(variables_, in GenerateInterfaceMembers()
176 printer->Print(variables_, "private java.lang.String $name$_;\n"); in GenerateMembers()
181 printer->Print( in GenerateMembers()
191 printer->Print( in GenerateMembers()
199 printer->Print( in GenerateMembers()
209 printer->Print(variables_, in GenerateMembers()
217 printer->Print(variables_, in GenerateMembers()
227 printer->Print(variables_, in GenerateMembers()
[all …]
Djava_enum.cc79 printer->Print( 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()
115 printer->Print("${$UNRECOGNIZED$}$(-1),\n", "{", "", "}", ""); in Generate()
117 printer->Print("${$UNRECOGNIZED$}$(-1, -1),\n", "{", "", "}", ""); in Generate()
122 printer->Print( in Generate()
134 printer->Print( in Generate()
149 printer->Print(vars, in Generate()
154 printer->Print("\n"); in Generate()
[all …]
Djava_service.cc68 printer->Print( in Generate()
74 printer->Print("protected $classname$() {}\n\n", "classname", in Generate()
85 printer->Print( in Generate()
103 printer->Print( in Generate()
109 printer->Print("}\n\n"); in Generate()
114 printer->Print( in GenerateGetDescriptorForType()
122 printer->Print("public interface Interface {\n"); in GenerateInterface()
126 printer->Print("}\n\n"); in GenerateInterface()
131 printer->Print( in GenerateNewReflectiveServiceMethod()
141 printer->Print("@java.lang.Override\n"); in GenerateNewReflectiveServiceMethod()
[all …]
Djava_map_field_lite.cc158 printer->Print(variables_, in GenerateInterfaceMembers()
162 printer->Print(variables_, in GenerateInterfaceMembers()
167 printer->Print(variables_, in GenerateInterfaceMembers()
176 printer->Print( in GenerateInterfaceMembers()
182 printer->Print( in GenerateInterfaceMembers()
189 printer->Print( in GenerateInterfaceMembers()
195 printer->Print( in GenerateInterfaceMembers()
205 printer->Print(variables_, in GenerateInterfaceMembers()
210 printer->Print(variables_, in GenerateInterfaceMembers()
217 printer->Print(variables_, in GenerateInterfaceMembers()
[all …]
Djava_enum_field_lite.cc147 printer->Print(variables_, in GenerateInterfaceMembers()
152 printer->Print(variables_, in GenerateInterfaceMembers()
156 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers()
161 printer->Print(variables_, "private int $name$_;\n"); in GenerateMembers()
165 printer->Print( in GenerateMembers()
175 printer->Print( in GenerateMembers()
184 printer->Print(variables_, in GenerateMembers()
195 printer->Print(variables_, in GenerateMembers()
202 printer->Print(variables_, in GenerateMembers()
208 printer->Print(variables_, in GenerateMembers()
[all …]
Djava_map_field.cc177 printer->Print(variables_, in GenerateInterfaceMembers()
181 printer->Print(variables_, in GenerateInterfaceMembers()
186 printer->Print(variables_, in GenerateInterfaceMembers()
195 printer->Print( in GenerateInterfaceMembers()
201 printer->Print( in GenerateInterfaceMembers()
208 printer->Print( in GenerateInterfaceMembers()
214 printer->Print( in GenerateInterfaceMembers()
224 printer->Print(variables_, in GenerateInterfaceMembers()
229 printer->Print(variables_, in GenerateInterfaceMembers()
236 printer->Print(variables_, in GenerateInterfaceMembers()
[all …]
/third_party/protobuf/src/google/protobuf/compiler/csharp/
Dcsharp_message.cc104 printer->Print("[global::System.ObsoleteAttribute]\n"); in AddDeprecatedFlag()
110 printer->Print("[global::System.SerializableAttribute]\n"); in AddSerializableAttribute()
123 printer->Print( in Generate()
128 printer->Print(vars, "pb::IExtendableMessage<$class_name$>\n"); in Generate()
131 printer->Print(vars, "pb::IMessage<$class_name$>\n"); in Generate()
133 printer->Print("#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE\n"); in Generate()
134 printer->Print(" , pb::IBufferMessage\n"); in Generate()
135 printer->Print("#endif\n"); in Generate()
136 printer->Print("{\n"); in Generate()
140 printer->Print( in Generate()
[all …]
Dcsharp_primitive_field.cc81 printer->Print( in GenerateMembers()
91 printer->Print( 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()
126 printer->Print( in GenerateMembers()
131 printer->Print( in GenerateMembers()
135 printer->Print( in GenerateMembers()
[all …]
Dcsharp_reflection_class.cc72 printer->Print("}\n"); in Generate()
75 printer->Print( in Generate()
88 printer->Print( in Generate()
95 printer->Print("#region Enums\n"); in Generate()
100 printer->Print("#endregion\n"); in Generate()
101 printer->Print("\n"); in Generate()
106 printer->Print("#region Messages\n"); in Generate()
111 printer->Print("#endregion\n"); in Generate()
112 printer->Print("\n"); in Generate()
119 printer->Print("}\n"); in Generate()
[all …]
Dcsharp_message_field.cc67 printer->Print( in GenerateMembers()
72 printer->Print( in GenerateMembers()
81 printer->Print( in GenerateMembers()
85 printer->Print( in GenerateMembers()
90 printer->Print( in GenerateMembers()
94 printer->Print( in GenerateMembers()
103 printer->Print( in GenerateMergingCode()
114 printer->Print( in GenerateParsingCode()
120 printer->Print(variables_, "input.ReadMessage($property_name$);\n"); in GenerateParsingCode()
122 printer->Print(variables_, "input.ReadGroup($property_name$);\n"); in GenerateParsingCode()
[all …]
/third_party/googletest/googletest/test/
Dgoogletest-printers-test.cc250 static void Print(const Wrapper<T>& w, ::std::ostream* os) { in Print() function in testing::internal::UniversalPrinter
284 std::string Print(const T& value) { in Print() function
286 UniversalPrinter<T>::Print(value, &ss); in Print()
296 UniversalPrinter<T&>::Print(value, &ss); in PrintByRef()
303 EXPECT_EQ("-1", Print(kAE1)); in TEST()
304 EXPECT_EQ("1", Print(kAE2)); in TEST()
308 EXPECT_EQ("-2", Print(kEWP1)); in TEST()
309 EXPECT_EQ("42", Print(kEWP2)); in TEST()
313 EXPECT_EQ("kEWS1", Print(kEWS1)); in TEST()
314 EXPECT_EQ("invalid", Print(static_cast<EnumWithStreaming>(0))); in TEST()
[all …]

12345678910>>...30