Lines Matching refs:vars
42 map< ::std::string, ::std::string> vars) { in PrintProtoRpcDeclarationAsPragma() argument
43 vars["client_stream"] = method->client_streaming() ? "stream " : ""; in PrintProtoRpcDeclarationAsPragma()
44 vars["server_stream"] = method->server_streaming() ? "stream " : ""; in PrintProtoRpcDeclarationAsPragma()
46 printer->Print(vars, in PrintProtoRpcDeclarationAsPragma()
84 const map< ::std::string, ::std::string>& vars) { in PrintMethodSignature() argument
88 printer->Print(vars, "- ($return_type$)$method_name$With"); in PrintMethodSignature()
92 printer->Print(vars, "Request:($request_class$ *)request"); in PrintMethodSignature()
97 printer->Print(vars, in PrintMethodSignature()
102 printer->Print(vars, in PrintMethodSignature()
109 map< ::std::string, ::std::string> vars) { in PrintSimpleSignature() argument
110 vars["method_name"] = in PrintSimpleSignature()
111 grpc_generator::LowercaseFirstLetter(vars["method_name"]); in PrintSimpleSignature()
112 vars["return_type"] = "void"; in PrintSimpleSignature()
113 PrintMethodSignature(printer, method, vars); in PrintSimpleSignature()
117 map< ::std::string, ::std::string> vars) { in PrintAdvancedSignature() argument
118 vars["method_name"] = "RPCTo" + vars["method_name"]; in PrintAdvancedSignature()
119 vars["return_type"] = "GRPCProtoCall *"; in PrintAdvancedSignature()
120 PrintMethodSignature(printer, method, vars); in PrintAdvancedSignature()
124 map< ::std::string, ::std::string> vars) { in PrintV2Signature() argument
126 vars["return_type"] = "GRPCStreamingProtoCall *"; in PrintV2Signature()
128 vars["return_type"] = "GRPCUnaryProtoCall *"; in PrintV2Signature()
130 vars["method_name"] = in PrintV2Signature()
131 grpc_generator::LowercaseFirstLetter(vars["method_name"]); in PrintV2Signature()
135 printer->Print(vars, "- ($return_type$)$method_name$With"); in PrintV2Signature()
139 printer->Print(vars, in PrintV2Signature()
158 map< ::std::string, ::std::string> vars = GetMethodVars(method); in PrintMethodDeclarations() local
160 PrintProtoRpcDeclarationAsPragma(printer, method, vars); in PrintMethodDeclarations()
162 PrintSimpleSignature(printer, method, vars); in PrintMethodDeclarations()
164 PrintAdvancedSignature(printer, method, vars); in PrintMethodDeclarations()
170 map< ::std::string, ::std::string> vars = GetMethodVars(method); in PrintV2MethodDeclarations() local
172 PrintProtoRpcDeclarationAsPragma(printer, method, vars); in PrintV2MethodDeclarations()
174 PrintV2Signature(printer, method, vars); in PrintV2MethodDeclarations()
179 map< ::std::string, ::std::string> vars) { in PrintSimpleImplementation() argument
181 printer->Print(vars, " [[self RPCTo$method_name$With"); in PrintSimpleImplementation()
197 map< ::std::string, ::std::string> vars) { in PrintAdvancedImplementation() argument
199 printer->Print(vars, " return [self RPCToMethod:@\"$method_name$\"\n"); in PrintAdvancedImplementation()
208 printer->Print(vars, " responseClass:[$response_class$ class]\n"); in PrintAdvancedImplementation()
221 map< ::std::string, ::std::string> vars) { in PrintV2Implementation() argument
224 printer->Print(vars, " return [self RPCToMethod:@\"$method_name$\"\n"); in PrintV2Implementation()
228 vars, " responseClass:[$response_class$ class]];\n}\n\n"); in PrintV2Implementation()
230 printer->Print(vars, " return [self RPCToMethod:@\"$method_name$\"\n"); in PrintV2Implementation()
235 vars, " responseClass:[$response_class$ class]];\n}\n\n"); in PrintV2Implementation()
242 map< ::std::string, ::std::string> vars = GetMethodVars(method); in PrintMethodImplementations() local
244 PrintProtoRpcDeclarationAsPragma(printer, method, vars); in PrintMethodImplementations()
248 PrintSimpleSignature(printer, method, vars); in PrintMethodImplementations()
249 PrintSimpleImplementation(printer, method, vars); in PrintMethodImplementations()
252 PrintAdvancedSignature(printer, method, vars); in PrintMethodImplementations()
253 PrintAdvancedImplementation(printer, method, vars); in PrintMethodImplementations()
256 PrintV2Signature(printer, method, vars); in PrintMethodImplementations()
257 PrintV2Implementation(printer, method, vars); in PrintMethodImplementations()
290 map< ::std::string, ::std::string> vars = { in GetProtocol() local
293 printer.Print(vars, in GetProtocol()
300 printer.Print(vars, "@protocol $service_class$ <NSObject>\n\n"); in GetProtocol()
316 map< ::std::string, ::std::string> vars = { in GetV2Protocol() local
319 printer.Print(vars, "@protocol $service_class$ <NSObject>\n\n"); in GetV2Protocol()
336 map< ::std::string, ::std::string> vars = { in GetInterface() local
339 printer.Print(vars, in GetInterface()
344 printer.Print(vars, in GetInterface()
348 printer.Print(vars, ", $service_class$"); in GetInterface()
379 map< ::std::string, ::std::string> vars = { in GetSource() local
384 printer.Print(vars, in GetSource()
398 printer.Print(vars, in GetSource()