/external/flatbuffers/grpc/src/compiler/ |
D | go_generator.cc | 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() 87 printer->Print(vars, "$context$ \"context\"\n"); in GenerateImports() 88 printer->Print(vars, "$grpc$ \"google.golang.org/grpc\"\n"); in GenerateImports() 90 printer->Print(")\n\n"); in GenerateImports() [all …]
|
D | cpp_generator.cc | 102 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 …]
|
/external/tensorflow/tensorflow/tools/proto_text/ |
D | gen_proto_text_functions_lib.cc | 100 Generator& Print(Args... args) { in Print() function in tensorflow::__anon8c2281b60111::Generator 261 Print("o->", omit_default ? "AppendNumericIfNotZero" : "AppendNumeric", in AppendFieldValueAppend() 265 Print("o->", omit_default ? "AppendBoolIfTrue" : "AppendBool", "(\"", in AppendFieldValueAppend() 273 Print("o->", omit_default ? "AppendStringIfNotEmpty" : "AppendString", in AppendFieldValueAppend() 280 Print("if (", field_expr, " != 0) {").Nest(); in AppendFieldValueAppend() 282 Print("const char* enum_name = ", in AppendFieldValueAppend() 284 Print("if (enum_name[0]) {").Nest(); in AppendFieldValueAppend() 285 Print("o->AppendEnumName(\"", field.name(), "\", enum_name);"); in AppendFieldValueAppend() 286 Unnest().Print("} else {").Nest(); in AppendFieldValueAppend() 287 Print("o->AppendNumeric(\"", field.name(), "\", ", field_expr, ");"); in AppendFieldValueAppend() [all …]
|
/external/rust/crates/grpcio-sys/grpc/src/compiler/ |
D | cpp_generator.cc | 82 printer->Print(vars, "#include $l$$h$$r$\n"); in PrintIncludes() 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() 110 printer->Print(vars, "#ifndef GRPC_$filename_identifier$__INCLUDED\n"); in GetHeaderPrologue() 111 printer->Print(vars, "#define GRPC_$filename_identifier$__INCLUDED\n"); in GetHeaderPrologue() 112 printer->Print(vars, "\n"); in GetHeaderPrologue() 113 printer->Print(vars, "#include \"$filename_base$$message_header_ext$\"\n"); in GetHeaderPrologue() 114 printer->Print(vars, file->additional_headers().c_str()); in GetHeaderPrologue() [all …]
|
D | csharp_generator.cc | 75 printer->Print("/// <summary>\n"); in GenerateDocCommentBodyImpl() 91 printer->Print("///\n"); in GenerateDocCommentBodyImpl() 94 printer->Print("///$line$\n", "line", *it); in GenerateDocCommentBodyImpl() 97 printer->Print("/// </summary>\n"); in GenerateDocCommentBodyImpl() 115 printer->Print( in GenerateDocCommentServerMethod() 119 printer->Print( in GenerateDocCommentServerMethod() 124 printer->Print( in GenerateDocCommentServerMethod() 128 printer->Print( in GenerateDocCommentServerMethod() 132 printer->Print( in GenerateDocCommentServerMethod() 136 printer->Print( in GenerateDocCommentServerMethod() [all …]
|
D | objective_c_generator.cc | 46 printer->Print(vars, in PrintProtoRpcDeclarationAsPragma() 64 printer->Print("/**\n"); in PrintAllComments() 66 printer->Print(" * "); 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() 88 printer->Print(vars, "- ($return_type$)$method_name$With"); in PrintMethodSignature() 90 printer->Print("RequestsWriter:(GRXWriter *)requestWriter"); in PrintMethodSignature() 92 printer->Print(vars, "Request:($request_class$ *)request"); in PrintMethodSignature() [all …]
|
/external/grpc-grpc/src/compiler/ |
D | cpp_generator.cc | 82 printer->Print(vars, "#include $l$$h$$r$\n"); in PrintIncludes() 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() 108 printer->Print(vars, "#ifndef GRPC_$filename_identifier$__INCLUDED\n"); in GetHeaderPrologue() 109 printer->Print(vars, "#define GRPC_$filename_identifier$__INCLUDED\n"); in GetHeaderPrologue() 110 printer->Print(vars, "\n"); in GetHeaderPrologue() 111 printer->Print(vars, "#include \"$filename_base$$message_header_ext$\"\n"); in GetHeaderPrologue() 112 printer->Print(vars, file->additional_headers().c_str()); in GetHeaderPrologue() [all …]
|
D | csharp_generator.cc | 75 printer->Print("/// <summary>\n"); in GenerateDocCommentBodyImpl() 91 printer->Print("///\n"); in GenerateDocCommentBodyImpl() 94 printer->Print("///$line$\n", "line", *it); in GenerateDocCommentBodyImpl() 97 printer->Print("/// </summary>\n"); in GenerateDocCommentBodyImpl() 115 printer->Print( in GenerateDocCommentServerMethod() 119 printer->Print( in GenerateDocCommentServerMethod() 124 printer->Print( in GenerateDocCommentServerMethod() 128 printer->Print( in GenerateDocCommentServerMethod() 132 printer->Print( in GenerateDocCommentServerMethod() 136 printer->Print( in GenerateDocCommentServerMethod() [all …]
|
/external/protobuf/src/google/protobuf/compiler/java/ |
D | java_string_field.cc | 194 printer->Print(variables_, in GenerateInterfaceMembers() 198 printer->Print(variables_, in GenerateInterfaceMembers() 201 printer->Print(variables_, in GenerateInterfaceMembers() 208 printer->Print(variables_, "private volatile java.lang.Object $name$_;\n"); in GenerateMembers() 213 printer->Print( in GenerateMembers() 222 printer->Print( in GenerateMembers() 234 printer->Print(variables_, " $name$_ = s;\n"); in GenerateMembers() 236 printer->Print(variables_, in GenerateMembers() 241 printer->Print(variables_, in GenerateMembers() 246 printer->Print(variables_, in GenerateMembers() [all …]
|
D | java_message.cc | 128 printer->Print( in GenerateStaticVariables() 161 printer->Print(vars, in GenerateStaticVariableInitializers() 166 printer->Print( in GenerateStaticVariableInitializers() 203 printer->Print( in GenerateFieldAccessorTable() 217 printer->Print( in GenerateFieldAccessorTableInitializer() 228 printer->Print("\"$field_name$\", ", "field_name", info->capitalized_name); in GenerateFieldAccessorTableInitializer() 234 printer->Print("\"$oneof_name$\", ", "oneof_name", info->capitalized_name); in GenerateFieldAccessorTableInitializer() 236 printer->Print("});\n"); in GenerateFieldAccessorTableInitializer() 246 printer->Print( in GenerateInterface() 257 printer->Print( in GenerateInterface() [all …]
|
D | java_primitive_field.cc | 210 printer->Print(variables_, in GenerateInterfaceMembers() 214 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers() 219 printer->Print(variables_, "private $field_type$ $name$_;\n"); in GenerateMembers() 223 printer->Print( in GenerateMembers() 232 printer->Print(variables_, in GenerateMembers() 241 printer->Print(variables_, "private $field_type$ $name$_ $default_init$;\n"); in GenerateBuilderMembers() 245 printer->Print( in GenerateBuilderMembers() 254 printer->Print(variables_, in GenerateBuilderMembers() 261 printer->Print(variables_, in GenerateBuilderMembers() 273 printer->Print( in GenerateBuilderMembers() [all …]
|
D | java_enum_field.cc | 160 printer->Print(variables_, in GenerateInterfaceMembers() 165 printer->Print(variables_, in GenerateInterfaceMembers() 169 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers() 173 printer->Print(variables_, "private int $name$_;\n"); in GenerateMembers() 177 printer->Print( in GenerateMembers() 186 printer->Print( in GenerateMembers() 194 printer->Print(variables_, in GenerateMembers() 205 printer->Print(variables_, "private int $name$_ = $default_number$;\n"); in GenerateBuilderMembers() 208 printer->Print( in GenerateBuilderMembers() 217 printer->Print( in GenerateBuilderMembers() [all …]
|
D | java_message_field.cc | 148 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() 172 printer->Print( in GenerateMembers() 180 printer->Print( in GenerateMembers() 189 printer->Print( in GenerateMembers() 196 printer->Print( in GenerateMembers() 204 printer->Print(variables_, in GenerateMembers() [all …]
|
D | java_message_field_lite.cc | 125 printer->Print(variables_, "$deprecation$boolean has$capitalized_name$();\n"); in GenerateInterfaceMembers() 127 printer->Print(variables_, "$deprecation$$type$ get$capitalized_name$();\n"); in GenerateInterfaceMembers() 133 printer->Print(variables_, "private $type$ $name$_;\n"); in GenerateMembers() 138 printer->Print( in GenerateMembers() 146 printer->Print( in GenerateMembers() 155 printer->Print( in GenerateMembers() 163 printer->Print( in GenerateMembers() 174 printer->Print(variables_, in GenerateMembers() 185 printer->Print(variables_, in GenerateMembers() 194 printer->Print( in GenerateMembers() [all …]
|
D | java_message_builder.cc | 88 printer->Print( in Generate() 98 printer->Print( in Generate() 128 printer->Print(vars, in Generate() 132 printer->Print(vars, in Generate() 142 printer->Print(" onChanged();\n"); in Generate() 143 printer->Print( in Generate() 157 printer->Print("private int $bit_field_name$;\n", "bit_field_name", in Generate() 162 printer->Print("\n"); in Generate() 172 printer->Print( in Generate() 186 printer->Print( in Generate() [all …]
|
/external/perfetto/src/protozero/protoc_plugin/ |
D | cppgen_plugin.cc | 139 h_printer.Print(kHeader); in Generate() 140 h_printer.Print("#ifndef $g$\n#define $g$\n\n", "g", include_guard); in Generate() 141 h_printer.Print("#include <stdint.h>\n"); in Generate() 142 h_printer.Print("#include <bitset>\n"); in Generate() 143 h_printer.Print("#include <vector>\n"); in Generate() 144 h_printer.Print("#include <string>\n"); in Generate() 145 h_printer.Print("#include <type_traits>\n\n"); in Generate() 146 h_printer.Print("#include \"perfetto/protozero/cpp_message_obj.h\"\n"); in Generate() 147 h_printer.Print("#include \"perfetto/protozero/copyable_ptr.h\"\n"); in Generate() 148 h_printer.Print("#include \"perfetto/base/export.h\"\n\n"); in Generate() [all …]
|
/external/protobuf/src/google/protobuf/compiler/csharp/ |
D | csharp_primitive_field.cc | 70 printer->Print( in GenerateMembers() 75 printer->Print( in GenerateMembers() 83 printer->Print( in GenerateMembers() 89 printer->Print( in GenerateMembers() 96 printer->Print( in GenerateMembers() 103 printer->Print( in GenerateMembers() 108 printer->Print( in GenerateMembers() 112 printer->Print( in GenerateMembers() 116 printer->Print( in GenerateMembers() 120 …printer->Print(variables_, "/// <summary>Gets whether the \"$descriptor_name$\" field is set</summ… in GenerateMembers() [all …]
|
D | csharp_reflection_class.cc | 72 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 …]
|
D | csharp_message.cc | 106 printer->Print("[global::System.ObsoleteAttribute]\n"); in AddDeprecatedFlag() 112 printer->Print("[global::System.SerializableAttribute]\n"); in AddSerializableAttribute() 125 printer->Print( in Generate() 130 printer->Print(vars, "pb::IExtendableMessage<$class_name$>"); in Generate() 133 printer->Print(vars, "pb::IMessage<$class_name$>"); in Generate() 135 printer->Print(" {\n"); in Generate() 139 printer->Print( in Generate() 143 printer->Print( in Generate() 148 …printer->Print(vars, "internal pb::ExtensionSet<$class_name$> _extensions;\n"); // CustomOptions c… in Generate() 150 printer->Print(vars, "private pb::ExtensionSet<$class_name$> _extensions;\n"); in Generate() [all …]
|
D | csharp_message_field.cc | 67 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 …]
|
/external/protobuf/src/google/protobuf/compiler/javanano/ |
D | javanano_primitive_field.cc | 251 printer->Print(variables_, in GenerateInitSavedDefaultCode() 261 printer->Print(variables_, in GenerateMembers() 264 printer->Print(variables_, in GenerateMembers() 270 printer->Print(variables_, in GenerateMembers() 274 printer->Print(variables_, in GenerateMembers() 281 printer->Print(variables_, in GenerateClearCode() 285 printer->Print(variables_, in GenerateClearCode() 292 printer->Print(variables_, in GenerateMergingCode() 296 printer->Print(variables_, in GenerateMergingCode() 306 printer->Print(variables_, in GenerateSerializationConditional() [all …]
|
D | javanano_enum_field.cc | 102 printer->Print( in PrintCaseLabels() 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() 136 printer->Print(variables_, in GenerateClearCode() 140 printer->Print(variables_, in GenerateClearCode() 147 printer->Print(variables_, in GenerateMergingCode() 151 printer->Print(variables_, in GenerateMergingCode() 154 printer->Print(variables_, in GenerateMergingCode() 157 printer->Print( in GenerateMergingCode() [all …]
|
D | javanano_message.cc | 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() 149 printer->Print( in Generate() 153 printer->Print(" implements java.lang.Cloneable {\n"); in Generate() 155 printer->Print(" {\n"); in Generate() 160 printer->Print( in Generate() 198 printer->Print(vars, in Generate() [all …]
|
/external/rust/crates/quiche/deps/boringssl/src/third_party/googletest/test/ |
D | googletest-printers-test.cc | 233 std::string Print(const T& value) { in Print() function 235 UniversalPrinter<T>::Print(value, &ss); in Print() 245 UniversalPrinter<T&>::Print(value, &ss); in PrintByRef() 252 EXPECT_EQ("-1", Print(kAE1)); in TEST() 253 EXPECT_EQ("1", Print(kAE2)); in TEST() 257 EXPECT_EQ("-2", Print(kEWP1)); in TEST() 258 EXPECT_EQ("42", Print(kEWP2)); in TEST() 262 EXPECT_EQ("kEWS1", Print(kEWS1)); in TEST() 263 EXPECT_EQ("invalid", Print(static_cast<EnumWithStreaming>(0))); in TEST() 267 EXPECT_EQ("kEWPT1", Print(kEWPT1)); in TEST() [all …]
|
/external/googletest/googletest/test/ |
D | googletest-printers-test.cc | 250 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 …]
|