Lines Matching refs:printer

84 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()
130 printer->Print(vars, "\n"); in GetHeaderPrologue()
131 printer->Print(vars, "#include \"$filename_base$$message_header_ext$\"\n"); in GetHeaderPrologue()
132 printer->Print(vars, file->additional_headers().c_str()); in GetHeaderPrologue()
133 printer->Print(vars, "\n"); in GetHeaderPrologue()
143 auto printer = file->CreatePrinter(&output); in GetHeaderIncludes() local
157 PrintIncludes(printer.get(), headers, params); in GetHeaderIncludes()
158 printer->Print(vars, "\n"); in GetHeaderIncludes()
159 printer->Print(vars, "namespace grpc {\n"); in GetHeaderIncludes()
160 printer->Print(vars, "class CompletionQueue;\n"); in GetHeaderIncludes()
161 printer->Print(vars, "class Channel;\n"); in GetHeaderIncludes()
162 printer->Print(vars, "class ServerCompletionQueue;\n"); in GetHeaderIncludes()
163 printer->Print(vars, "class ServerContext;\n"); in GetHeaderIncludes()
164 printer->Print(vars, "} // namespace grpc\n\n"); in GetHeaderIncludes()
171 printer->Print(vars, "namespace $part$ {\n"); in GetHeaderIncludes()
173 printer->Print(vars, "\n"); in GetHeaderIncludes()
180 grpc_generator::Printer *printer, const grpc_generator::Method *method, in PrintHeaderClientMethodInterfaces() argument
195 printer->Print( in PrintHeaderClientMethodInterfaces()
202 printer->Print( in PrintHeaderClientMethodInterfaces()
209 printer->Indent(); in PrintHeaderClientMethodInterfaces()
210 printer->Print( in PrintHeaderClientMethodInterfaces()
215 printer->Outdent(); in PrintHeaderClientMethodInterfaces()
216 printer->Print("}\n"); in PrintHeaderClientMethodInterfaces()
219 printer->Print( in PrintHeaderClientMethodInterfaces()
224 printer->Indent(); in PrintHeaderClientMethodInterfaces()
225 printer->Print( in PrintHeaderClientMethodInterfaces()
229 printer->Outdent(); in PrintHeaderClientMethodInterfaces()
230 printer->Print("}\n"); in PrintHeaderClientMethodInterfaces()
236 printer->Print( in PrintHeaderClientMethodInterfaces()
243 printer->Indent(); in PrintHeaderClientMethodInterfaces()
244 printer->Print(*vars, in PrintHeaderClientMethodInterfaces()
249 printer->Outdent(); in PrintHeaderClientMethodInterfaces()
250 printer->Print("}\n"); in PrintHeaderClientMethodInterfaces()
253 printer->Print( in PrintHeaderClientMethodInterfaces()
258 printer->Indent(); in PrintHeaderClientMethodInterfaces()
259 printer->Print( in PrintHeaderClientMethodInterfaces()
263 printer->Outdent(); in PrintHeaderClientMethodInterfaces()
264 printer->Print("}\n"); in PrintHeaderClientMethodInterfaces()
270 printer->Print( in PrintHeaderClientMethodInterfaces()
276 printer->Indent(); in PrintHeaderClientMethodInterfaces()
277 printer->Print( in PrintHeaderClientMethodInterfaces()
282 printer->Outdent(); in PrintHeaderClientMethodInterfaces()
283 printer->Print("}\n"); in PrintHeaderClientMethodInterfaces()
286 printer->Print(*vars, in PrintHeaderClientMethodInterfaces()
290 printer->Indent(); in PrintHeaderClientMethodInterfaces()
291 printer->Print( in PrintHeaderClientMethodInterfaces()
296 printer->Outdent(); in PrintHeaderClientMethodInterfaces()
297 printer->Print("}\n"); in PrintHeaderClientMethodInterfaces()
303 printer->Print( in PrintHeaderClientMethodInterfaces()
309 printer->Indent(); in PrintHeaderClientMethodInterfaces()
310 printer->Print( in PrintHeaderClientMethodInterfaces()
315 printer->Outdent(); in PrintHeaderClientMethodInterfaces()
316 printer->Print("}\n"); in PrintHeaderClientMethodInterfaces()
324 printer->Print( in PrintHeaderClientMethodInterfaces()
332 printer->Print( in PrintHeaderClientMethodInterfaces()
341 printer->Print( in PrintHeaderClientMethodInterfaces()
349 printer->Print( in PrintHeaderClientMethodInterfaces()
358 printer->Print( in PrintHeaderClientMethodInterfaces()
366 printer->Print(*vars, in PrintHeaderClientMethodInterfaces()
374 printer->Print( in PrintHeaderClientMethodInterfaces()
385 void PrintHeaderClientMethod(grpc_generator::Printer *printer, in PrintHeaderClientMethod() argument
401 printer->Print( in PrintHeaderClientMethod()
408 printer->Print( in PrintHeaderClientMethod()
414 printer->Indent(); in PrintHeaderClientMethod()
415 printer->Print(*vars, in PrintHeaderClientMethod()
419 printer->Outdent(); in PrintHeaderClientMethod()
420 printer->Print("}\n"); in PrintHeaderClientMethod()
423 printer->Print( in PrintHeaderClientMethod()
428 printer->Indent(); in PrintHeaderClientMethod()
429 printer->Print(*vars, in PrintHeaderClientMethod()
432 printer->Outdent(); in PrintHeaderClientMethod()
433 printer->Print("}\n"); in PrintHeaderClientMethod()
439 printer->Print(*vars, in PrintHeaderClientMethod()
444 printer->Indent(); in PrintHeaderClientMethod()
445 printer->Print( in PrintHeaderClientMethod()
450 printer->Outdent(); in PrintHeaderClientMethod()
451 printer->Print("}\n"); in PrintHeaderClientMethod()
454 printer->Print( in PrintHeaderClientMethod()
459 printer->Indent(); in PrintHeaderClientMethod()
460 printer->Print( in PrintHeaderClientMethod()
464 printer->Outdent(); in PrintHeaderClientMethod()
465 printer->Print("}\n"); in PrintHeaderClientMethod()
471 printer->Print( in PrintHeaderClientMethod()
477 printer->Indent(); in PrintHeaderClientMethod()
478 printer->Print( in PrintHeaderClientMethod()
482 printer->Outdent(); in PrintHeaderClientMethod()
483 printer->Print("}\n"); in PrintHeaderClientMethod()
486 printer->Print( in PrintHeaderClientMethod()
490 printer->Indent(); in PrintHeaderClientMethod()
491 printer->Print(*vars, in PrintHeaderClientMethod()
495 printer->Outdent(); in PrintHeaderClientMethod()
496 printer->Print("}\n"); in PrintHeaderClientMethod()
502 printer->Print(*vars, in PrintHeaderClientMethod()
507 printer->Indent(); in PrintHeaderClientMethod()
508 printer->Print( in PrintHeaderClientMethod()
513 printer->Outdent(); in PrintHeaderClientMethod()
514 printer->Print("}\n"); in PrintHeaderClientMethod()
522 printer->Print( in PrintHeaderClientMethod()
530 printer->Print(*vars, in PrintHeaderClientMethod()
539 printer->Print( in PrintHeaderClientMethod()
546 printer->Print(*vars, in PrintHeaderClientMethod()
555 printer->Print( in PrintHeaderClientMethod()
562 printer->Print(*vars, in PrintHeaderClientMethod()
570 printer->Print( in PrintHeaderClientMethod()
580 void PrintHeaderClientMethodData(grpc_generator::Printer *printer, in PrintHeaderClientMethodData() argument
584 printer->Print(*vars, in PrintHeaderClientMethodData()
588 void PrintHeaderServerMethodSync(grpc_generator::Printer *printer, in PrintHeaderServerMethodSync() argument
594 printer->Print(method->GetLeadingComments("//").c_str()); in PrintHeaderServerMethodSync()
596 printer->Print(*vars, in PrintHeaderServerMethodSync()
601 printer->Print(*vars, in PrintHeaderServerMethodSync()
607 printer->Print(*vars, in PrintHeaderServerMethodSync()
612 printer->Print( in PrintHeaderServerMethodSync()
619 printer->Print(method->GetTrailingComments("//").c_str()); in PrintHeaderServerMethodSync()
622 void PrintHeaderServerMethodAsync(grpc_generator::Printer *printer, in PrintHeaderServerMethodAsync() argument
628 printer->Print(*vars, "template <class BaseClass>\n"); in PrintHeaderServerMethodAsync()
629 printer->Print(*vars, in PrintHeaderServerMethodAsync()
631 printer->Print( in PrintHeaderServerMethodAsync()
634 printer->Print(" public:\n"); in PrintHeaderServerMethodAsync()
635 printer->Indent(); in PrintHeaderServerMethodAsync()
636 printer->Print(*vars, in PrintHeaderServerMethodAsync()
640 printer->Print(*vars, in PrintHeaderServerMethodAsync()
645 printer->Print( in PrintHeaderServerMethodAsync()
654 printer->Print( in PrintHeaderServerMethodAsync()
661 printer->Print(*vars, in PrintHeaderServerMethodAsync()
664 printer->Print("}\n"); in PrintHeaderServerMethodAsync()
666 printer->Print( in PrintHeaderServerMethodAsync()
676 printer->Print( in PrintHeaderServerMethodAsync()
683 printer->Print(*vars, in PrintHeaderServerMethodAsync()
686 printer->Print("}\n"); in PrintHeaderServerMethodAsync()
688 printer->Print( in PrintHeaderServerMethodAsync()
698 printer->Print( in PrintHeaderServerMethodAsync()
705 printer->Print( in PrintHeaderServerMethodAsync()
709 printer->Print("}\n"); in PrintHeaderServerMethodAsync()
711 printer->Print( in PrintHeaderServerMethodAsync()
721 printer->Print( in PrintHeaderServerMethodAsync()
728 printer->Print(*vars, in PrintHeaderServerMethodAsync()
731 printer->Print("}\n"); in PrintHeaderServerMethodAsync()
733 printer->Outdent(); in PrintHeaderServerMethodAsync()
734 printer->Print(*vars, "};\n"); in PrintHeaderServerMethodAsync()
738 grpc_generator::Printer *printer, const grpc_generator::Method *method, in PrintHeaderServerMethodStreamedUnary() argument
744 printer->Print(*vars, "template <class BaseClass>\n"); in PrintHeaderServerMethodStreamedUnary()
745 printer->Print(*vars, in PrintHeaderServerMethodStreamedUnary()
748 printer->Print( in PrintHeaderServerMethodStreamedUnary()
752 printer->Print(" public:\n"); in PrintHeaderServerMethodStreamedUnary()
753 printer->Indent(); in PrintHeaderServerMethodStreamedUnary()
754 printer->Print(*vars, in PrintHeaderServerMethodStreamedUnary()
763 printer->Print(*vars, in PrintHeaderServerMethodStreamedUnary()
767 printer->Print( in PrintHeaderServerMethodStreamedUnary()
776 printer->Print(*vars, in PrintHeaderServerMethodStreamedUnary()
783 printer->Outdent(); in PrintHeaderServerMethodStreamedUnary()
784 printer->Print(*vars, "};\n"); in PrintHeaderServerMethodStreamedUnary()
789 grpc_generator::Printer *printer, const grpc_generator::Method *method, in PrintHeaderServerMethodSplitStreaming() argument
795 printer->Print(*vars, "template <class BaseClass>\n"); in PrintHeaderServerMethodSplitStreaming()
796 printer->Print(*vars, in PrintHeaderServerMethodSplitStreaming()
799 printer->Print( in PrintHeaderServerMethodSplitStreaming()
803 printer->Print(" public:\n"); in PrintHeaderServerMethodSplitStreaming()
804 printer->Indent(); in PrintHeaderServerMethodSplitStreaming()
805 printer->Print( in PrintHeaderServerMethodSplitStreaming()
815 printer->Print(*vars, in PrintHeaderServerMethodSplitStreaming()
819 printer->Print( in PrintHeaderServerMethodSplitStreaming()
829 printer->Print(*vars, in PrintHeaderServerMethodSplitStreaming()
836 printer->Outdent(); in PrintHeaderServerMethodSplitStreaming()
837 printer->Print(*vars, "};\n"); in PrintHeaderServerMethodSplitStreaming()
842 grpc_generator::Printer *printer, const grpc_generator::Method *method, in PrintHeaderServerMethodGeneric() argument
847 printer->Print(*vars, "template <class BaseClass>\n"); in PrintHeaderServerMethodGeneric()
848 printer->Print(*vars, in PrintHeaderServerMethodGeneric()
850 printer->Print( in PrintHeaderServerMethodGeneric()
853 printer->Print(" public:\n"); in PrintHeaderServerMethodGeneric()
854 printer->Indent(); in PrintHeaderServerMethodGeneric()
855 printer->Print(*vars, in PrintHeaderServerMethodGeneric()
859 printer->Print(*vars, in PrintHeaderServerMethodGeneric()
864 printer->Print( in PrintHeaderServerMethodGeneric()
874 printer->Print( in PrintHeaderServerMethodGeneric()
885 printer->Print( in PrintHeaderServerMethodGeneric()
896 printer->Print( in PrintHeaderServerMethodGeneric()
907 printer->Outdent(); in PrintHeaderServerMethodGeneric()
908 printer->Print(*vars, "};\n"); in PrintHeaderServerMethodGeneric()
911 void PrintHeaderService(grpc_generator::Printer *printer, in PrintHeaderService() argument
916 printer->Print(service->GetLeadingComments("//").c_str()); in PrintHeaderService()
917 printer->Print(*vars, in PrintHeaderService()
920 printer->Indent(); in PrintHeaderService()
923 printer->Print(*vars, in PrintHeaderService()
929 printer->Print( in PrintHeaderService()
932 printer->Indent(); in PrintHeaderService()
933 printer->Print("virtual ~StubInterface() {}\n"); in PrintHeaderService()
935 printer->Print(service->method(i)->GetLeadingComments("//").c_str()); in PrintHeaderService()
936 PrintHeaderClientMethodInterfaces(printer, service->method(i).get(), vars, in PrintHeaderService()
938 printer->Print(service->method(i)->GetTrailingComments("//").c_str()); in PrintHeaderService()
940 printer->Outdent(); in PrintHeaderService()
941 printer->Print("private:\n"); in PrintHeaderService()
942 printer->Indent(); in PrintHeaderService()
944 PrintHeaderClientMethodInterfaces(printer, service->method(i).get(), vars, in PrintHeaderService()
947 printer->Outdent(); in PrintHeaderService()
948 printer->Print("};\n"); in PrintHeaderService()
949 printer->Print( in PrintHeaderService()
952 printer->Indent(); in PrintHeaderService()
953 printer->Print( in PrintHeaderService()
957 PrintHeaderClientMethod(printer, service->method(i).get(), vars, true); in PrintHeaderService()
959 printer->Outdent(); in PrintHeaderService()
960 printer->Print("\n private:\n"); in PrintHeaderService()
961 printer->Indent(); in PrintHeaderService()
962 printer->Print("std::shared_ptr< ::grpc::ChannelInterface> channel_;\n"); in PrintHeaderService()
964 PrintHeaderClientMethod(printer, service->method(i).get(), vars, false); in PrintHeaderService()
967 PrintHeaderClientMethodData(printer, service->method(i).get(), vars); in PrintHeaderService()
969 printer->Outdent(); in PrintHeaderService()
970 printer->Print("};\n"); in PrintHeaderService()
971 printer->Print( in PrintHeaderService()
976 printer->Print("\n"); in PrintHeaderService()
979 printer->Print( in PrintHeaderService()
982 printer->Indent(); in PrintHeaderService()
983 printer->Print("Service();\n"); in PrintHeaderService()
984 printer->Print("virtual ~Service();\n"); in PrintHeaderService()
986 PrintHeaderServerMethodSync(printer, service->method(i).get(), vars); in PrintHeaderService()
988 printer->Outdent(); in PrintHeaderService()
989 printer->Print("};\n"); in PrintHeaderService()
994 PrintHeaderServerMethodAsync(printer, service->method(i).get(), vars); in PrintHeaderService()
997 printer->Print("typedef "); in PrintHeaderService()
1001 printer->Print(*vars, "WithAsyncMethod_$method_name$<"); in PrintHeaderService()
1003 printer->Print("Service"); in PrintHeaderService()
1005 printer->Print(" >"); in PrintHeaderService()
1007 printer->Print(" AsyncService;\n"); in PrintHeaderService()
1012 PrintHeaderServerMethodGeneric(printer, service->method(i).get(), vars); in PrintHeaderService()
1018 PrintHeaderServerMethodStreamedUnary(printer, service->method(i).get(), in PrintHeaderService()
1022 printer->Print("typedef "); in PrintHeaderService()
1026 printer->Print(*vars, "WithStreamedUnaryMethod_$method_name$<"); in PrintHeaderService()
1029 printer->Print("Service"); in PrintHeaderService()
1032 printer->Print(" >"); in PrintHeaderService()
1035 printer->Print(" StreamedUnaryService;\n"); in PrintHeaderService()
1040 PrintHeaderServerMethodSplitStreaming(printer, service->method(i).get(), in PrintHeaderService()
1044 printer->Print("typedef "); in PrintHeaderService()
1049 printer->Print(*vars, "WithSplitStreamingMethod_$method_name$<"); in PrintHeaderService()
1052 printer->Print("Service"); in PrintHeaderService()
1056 printer->Print(" >"); in PrintHeaderService()
1059 printer->Print(" SplitStreamedService;\n"); in PrintHeaderService()
1062 printer->Print("typedef "); in PrintHeaderService()
1067 printer->Print(*vars, "WithSplitStreamingMethod_$method_name$<"); in PrintHeaderService()
1070 printer->Print(*vars, "WithStreamedUnaryMethod_$method_name$<"); in PrintHeaderService()
1073 printer->Print("Service"); in PrintHeaderService()
1078 printer->Print(" >"); in PrintHeaderService()
1081 printer->Print(" StreamedService;\n"); in PrintHeaderService()
1083 printer->Outdent(); in PrintHeaderService()
1084 printer->Print("};\n"); in PrintHeaderService()
1085 printer->Print(service->GetTrailingComments("//").c_str()); in PrintHeaderService()
1093 auto printer = file->CreatePrinter(&output); in GetHeaderServices() local
1104 printer->Print(vars, "\nnamespace $services_namespace$ {\n\n"); in GetHeaderServices()
1108 PrintHeaderService(printer.get(), file->service(i).get(), &vars); in GetHeaderServices()
1109 printer->Print("\n"); in GetHeaderServices()
1113 printer->Print(vars, "} // namespace $services_namespace$\n\n"); in GetHeaderServices()
1124 auto printer = file->CreatePrinter(&output); in GetHeaderEpilogue() local
1135 printer->Print(vars, "} // namespace $part$\n"); in GetHeaderEpilogue()
1137 printer->Print(vars, "\n"); in GetHeaderEpilogue()
1140 printer->Print(vars, "\n"); in GetHeaderEpilogue()
1141 printer->Print(vars, "#endif // GRPC_$filename_identifier$__INCLUDED\n"); in GetHeaderEpilogue()
1143 printer->Print(file->GetTrailingComments("//").c_str()); in GetHeaderEpilogue()
1153 auto printer = file->CreatePrinter(&output); in GetSourcePrologue() local
1161 printer->Print(vars, "// Generated by the gRPC C++ plugin.\n"); in GetSourcePrologue()
1162 printer->Print(vars, in GetSourcePrologue()
1164 printer->Print(vars, "// source: $filename$\n\n"); in GetSourcePrologue()
1166 printer->Print(vars, "#include \"$filename_base$$message_header_ext$\"\n"); in GetSourcePrologue()
1167 printer->Print(vars, "#include \"$filename_base$$service_header_ext$\"\n"); in GetSourcePrologue()
1168 printer->Print(vars, "\n"); in GetSourcePrologue()
1178 auto printer = file->CreatePrinter(&output); in GetSourceIncludes() local
1191 PrintIncludes(printer.get(), headers, params); in GetSourceIncludes()
1198 printer->Print(vars, "namespace $part$ {\n"); in GetSourceIncludes()
1202 printer->Print(vars, "\n"); in GetSourceIncludes()
1207 void PrintSourceClientMethod(grpc_generator::Printer *printer, in PrintSourceClientMethod() argument
1221 printer->Print(*vars, in PrintSourceClientMethod()
1225 printer->Print(*vars, in PrintSourceClientMethod()
1233 printer->Print(*vars, in PrintSourceClientMethod()
1239 printer->Print( in PrintSourceClientMethod()
1249 printer->Print(*vars, in PrintSourceClientMethod()
1253 printer->Print( in PrintSourceClientMethod()
1266 printer->Print(*vars, in PrintSourceClientMethod()
1271 printer->Print( in PrintSourceClientMethod()
1280 printer->Print( in PrintSourceClientMethod()
1285 printer->Print( in PrintSourceClientMethod()
1298 printer->Print( in PrintSourceClientMethod()
1304 printer->Print( in PrintSourceClientMethod()
1313 printer->Print( in PrintSourceClientMethod()
1317 printer->Print(*vars, in PrintSourceClientMethod()
1330 printer->Print(*vars, in PrintSourceClientMethod()
1335 printer->Print(*vars, in PrintSourceClientMethod()
1347 void PrintSourceServerMethod(grpc_generator::Printer *printer, in PrintSourceServerMethod() argument
1354 printer->Print(*vars, in PrintSourceServerMethod()
1358 printer->Print(" (void) context;\n"); in PrintSourceServerMethod()
1359 printer->Print(" (void) request;\n"); in PrintSourceServerMethod()
1360 printer->Print(" (void) response;\n"); in PrintSourceServerMethod()
1361 printer->Print( in PrintSourceServerMethod()
1364 printer->Print("}\n\n"); in PrintSourceServerMethod()
1366 printer->Print(*vars, in PrintSourceServerMethod()
1371 printer->Print(" (void) context;\n"); in PrintSourceServerMethod()
1372 printer->Print(" (void) reader;\n"); in PrintSourceServerMethod()
1373 printer->Print(" (void) response;\n"); in PrintSourceServerMethod()
1374 printer->Print( in PrintSourceServerMethod()
1377 printer->Print("}\n\n"); in PrintSourceServerMethod()
1379 printer->Print(*vars, in PrintSourceServerMethod()
1384 printer->Print(" (void) context;\n"); in PrintSourceServerMethod()
1385 printer->Print(" (void) request;\n"); in PrintSourceServerMethod()
1386 printer->Print(" (void) writer;\n"); in PrintSourceServerMethod()
1387 printer->Print( in PrintSourceServerMethod()
1390 printer->Print("}\n\n"); in PrintSourceServerMethod()
1392 printer->Print(*vars, in PrintSourceServerMethod()
1397 printer->Print(" (void) context;\n"); in PrintSourceServerMethod()
1398 printer->Print(" (void) stream;\n"); in PrintSourceServerMethod()
1399 printer->Print( in PrintSourceServerMethod()
1402 printer->Print("}\n\n"); in PrintSourceServerMethod()
1406 void PrintSourceService(grpc_generator::Printer *printer, in PrintSourceService() argument
1412 printer->Print(*vars, in PrintSourceService()
1416 printer->Print(*vars, " \"/$Package$$Service$/$Method$\",\n"); in PrintSourceService()
1418 printer->Print(*vars, "};\n\n"); in PrintSourceService()
1421 printer->Print(*vars, in PrintSourceService()
1429 printer->Print(*vars, in PrintSourceService()
1432 printer->Indent(); in PrintSourceService()
1433 printer->Print(": channel_(channel)"); in PrintSourceService()
1450 printer->Print(*vars, in PrintSourceService()
1457 printer->Print("{}\n\n"); in PrintSourceService()
1458 printer->Outdent(); in PrintSourceService()
1462 PrintSourceClientMethod(printer, service->method(i).get(), vars); in PrintSourceService()
1465 printer->Print(*vars, "$ns$$Service$::Service::Service() {\n"); in PrintSourceService()
1466 printer->Indent(); in PrintSourceService()
1474 printer->Print( in PrintSourceService()
1484 printer->Print( in PrintSourceService()
1493 printer->Print( in PrintSourceService()
1502 printer->Print( in PrintSourceService()
1512 printer->Outdent(); in PrintSourceService()
1513 printer->Print(*vars, "}\n\n"); in PrintSourceService()
1514 printer->Print(*vars, in PrintSourceService()
1519 PrintSourceServerMethod(printer, service->method(i).get(), vars); in PrintSourceService()
1528 auto printer = file->CreatePrinter(&output); in GetSourceServices() local
1545 PrintSourceService(printer.get(), file->service(i).get(), &vars); in GetSourceServices()
1546 printer->Print("\n"); in GetSourceServices()
1576 auto printer = file->CreatePrinter(&output); in GetMockPrologue() local
1584 printer->Print(vars, "// Generated by the gRPC C++ plugin.\n"); in GetMockPrologue()
1585 printer->Print(vars, in GetMockPrologue()
1587 printer->Print(vars, "// source: $filename$\n\n"); in GetMockPrologue()
1589 printer->Print(vars, "#include \"$filename_base$$message_header_ext$\"\n"); in GetMockPrologue()
1590 printer->Print(vars, "#include \"$filename_base$$service_header_ext$\"\n"); in GetMockPrologue()
1591 printer->Print(vars, file->additional_headers().c_str()); in GetMockPrologue()
1592 printer->Print(vars, "\n"); in GetMockPrologue()
1603 auto printer = file->CreatePrinter(&output); in GetMockIncludes() local
1612 PrintIncludes(printer.get(), headers, params); in GetMockIncludes()
1619 printer->Print(vars, "namespace $part$ {\n"); in GetMockIncludes()
1623 printer->Print(vars, "\n"); in GetMockIncludes()
1628 void PrintMockClientMethods(grpc_generator::Printer *printer, in PrintMockClientMethods() argument
1642 printer->Print( in PrintMockClientMethods()
1649 printer->Print( in PrintMockClientMethods()
1657 printer->Print( in PrintMockClientMethods()
1668 printer->Print(*vars, in PrintMockClientMethods()
1675 printer->Print( in PrintMockClientMethods()
1686 printer->Print( in PrintMockClientMethods()
1694 printer->Print( in PrintMockClientMethods()
1705 printer->Print( in PrintMockClientMethods()
1715 void PrintMockService(grpc_generator::Printer *printer, in PrintMockService() argument
1720 printer->Print(*vars, in PrintMockService()
1723 printer->Indent(); in PrintMockService()
1725 PrintMockClientMethods(printer, service->method(i).get(), vars); in PrintMockService()
1727 printer->Outdent(); in PrintMockService()
1728 printer->Print("};\n"); in PrintMockService()
1736 auto printer = file->CreatePrinter(&output); in GetMockServices() local
1747 printer->Print(vars, "\nnamespace $services_namespace$ {\n\n"); in GetMockServices()
1751 PrintMockService(printer.get(), file->service(i).get(), &vars); in GetMockServices()
1752 printer->Print("\n"); in GetMockServices()
1756 printer->Print(vars, "} // namespace $services_namespace$\n\n"); in GetMockServices()