Lines Matching full:program

4 """Generate code for an RPC program's procedures"""
13 environment: Environment, program: str, version: _RpcVersion
17 print(template.render(program=program.upper()))
34 environment: Environment, program: str, version: _RpcVersion
45 print(template.render(program=program, argument=argument))
55 print(template.render(program=program, result=result))
59 environment: Environment, program: str, version: _RpcVersion
69 print(template.render(program=program, argument=argument))
73 environment: Environment, program: str, version: _RpcVersion
83 print(template.render(program=program, result=result))
87 environment: Environment, program: str, version: _RpcVersion
97 print(template.render(program=program, argument=argument))
101 environment: Environment, program: str, version: _RpcVersion
111 print(template.render(program=program, result=result))
115 """Generate source code for an RPC program's procedures"""
119 self.environment = create_jinja2_environment(language, "program")
125 program = raw_name.lower().removesuffix("_program").removesuffix("_prog")
128 emit_version_definitions(self.environment, program, version)
133 program = raw_name.lower().removesuffix("_program").removesuffix("_prog")
136 emit_version_declarations(self.environment, program, version)
139 """Emit all decoder functions for an RPC program's procedures"""
141 program = raw_name.lower().removesuffix("_program").removesuffix("_prog")
146 self.environment, program, version,
151 self.environment, program, version,
155 """Emit all encoder functions for an RPC program's procedures"""
157 program = raw_name.lower().removesuffix("_program").removesuffix("_prog")
162 self.environment, program, version,
167 self.environment, program, version,