/third_party/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 …]
|
D | python_generator.cc | 101 out->Print( in PrintAllComments() 106 out->Print("\"\"\""); in PrintAllComments() 113 out->Print("\n"); in PrintAllComments() 115 out->Print("\"\"\"\n"); in PrintAllComments() 122 out->Print("\n\n"); in PrintBetaServicer() 123 out->Print(service_dict, "class Beta$Service$Servicer(object):\n"); in PrintBetaServicer() 126 out->Print( in PrintBetaServicer() 142 out->Print(method_dict, "def $Method$(self, $ArgName$, context):\n"); in PrintBetaServicer() 147 out->Print("context.code(beta_interfaces.StatusCode.UNIMPLEMENTED)\n"); in PrintBetaServicer() 158 out->Print("\n\n"); in PrintBetaStub() [all …]
|
/third_party/protobuf/src/google/protobuf/compiler/java/ |
D | java_string_field.cc | 193 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 …]
|
D | java_doc_comment.cc | 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() 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 …]
|
D | java_message.cc | 132 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 …]
|
D | java_primitive_field.cc | 209 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 …]
|
D | java_enum_field.cc | 159 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 …]
|
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() 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 …]
|
D | java_message_builder.cc | 91 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 …]
|
D | java_message_field_lite.cc | 129 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 …]
|
D | java_enum.cc | 79 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 …]
|
D | java_string_field_lite.cc | 162 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 …]
|
D | java_service.cc | 68 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 …]
|
D | java_map_field_lite.cc | 158 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 …]
|
D | java_enum_field_lite.cc | 147 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 …]
|
D | java_map_field.cc | 177 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/ |
D | csharp_message.cc | 104 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 …]
|
D | csharp_primitive_field.cc | 81 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 …]
|
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_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 …]
|
D | csharp_wrapper_field.cc | 66 printer->Print( in GenerateMembers() 70 printer->Print( in GenerateMembers() 76 printer->Print( in GenerateMembers() 85 printer->Print( in GenerateMembers() 89 printer->Print( in GenerateMembers() 94 printer->Print( in GenerateMembers() 98 printer->Print( in GenerateMembers() 107 printer->Print( in GenerateMergingCode() 121 printer->Print( in GenerateParsingCode() 139 printer->Print( in GenerateSerializationCode() [all …]
|
/third_party/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 …]
|
/third_party/googletest/googletest/test/ |
D | googletest-printers-test.cc | 238 std::string Print(const T& value) { in Print() function 240 UniversalPrinter<T>::Print(value, &ss); in Print() 250 UniversalPrinter<T&>::Print(value, &ss); in PrintByRef() 257 EXPECT_EQ("-1", Print(kAE1)); in TEST() 258 EXPECT_EQ("1", Print(kAE2)); in TEST() 262 EXPECT_EQ("-2", Print(kEWP1)); in TEST() 263 EXPECT_EQ("42", Print(kEWP2)); in TEST() 267 EXPECT_EQ("kEWS1", Print(kEWS1)); in TEST() 268 EXPECT_EQ("invalid", Print(static_cast<EnumWithStreaming>(0))); in TEST() 272 EXPECT_EQ("kEWPT1", Print(kEWPT1)); in TEST() [all …]
|