Lines Matching full:environment
6 from jinja2 import Environment
18 def emit_struct_declaration(environment: Environment, node: _XdrStruct) -> None: argument
21 template = get_jinja2_template(environment, "declaration", "close")
26 environment: Environment, field: _XdrDeclaration argument
30 template = get_jinja2_template(environment, "definition", field.template)
39 template = get_jinja2_template(environment, "definition", field.template)
47 template = get_jinja2_template(environment, "definition", field.template)
50 template = get_jinja2_template(environment, "definition", field.template)
53 template = get_jinja2_template(environment, "definition", field.template)
62 template = get_jinja2_template(environment, "definition", field.template)
71 template = get_jinja2_template(environment, "definition", field.template)
81 def emit_struct_definition(environment: Environment, node: _XdrStruct) -> None: argument
83 template = get_jinja2_template(environment, "definition", "open")
87 emit_struct_member_definition(environment, field)
89 template = get_jinja2_template(environment, "definition", "close")
94 environment: Environment, field: _XdrDeclaration argument
98 template = get_jinja2_template(environment, "decoder", field.template)
107 template = get_jinja2_template(environment, "decoder", field.template)
115 template = get_jinja2_template(environment, "decoder", field.template)
123 template = get_jinja2_template(environment, "decoder", field.template)
131 template = get_jinja2_template(environment, "decoder", field.template)
141 template = get_jinja2_template(environment, "decoder", field.template)
151 template = get_jinja2_template(environment, "decoder", field.template)
161 def emit_struct_decoder(environment: Environment, node: _XdrStruct) -> None: argument
163 template = get_jinja2_template(environment, "decoder", "open")
167 emit_struct_member_decoder(environment, field)
169 template = get_jinja2_template(environment, "decoder", "close")
174 environment: Environment, field: _XdrDeclaration argument
178 template = get_jinja2_template(environment, "encoder", field.template)
186 template = get_jinja2_template(environment, "encoder", field.template)
194 template = get_jinja2_template(environment, "encoder", field.template)
202 template = get_jinja2_template(environment, "encoder", field.template)
210 template = get_jinja2_template(environment, "encoder", field.template)
219 template = get_jinja2_template(environment, "encoder", field.template)
228 template = get_jinja2_template(environment, "encoder", field.template)
238 def emit_struct_encoder(environment: Environment, node: _XdrStruct) -> None: argument
240 template = get_jinja2_template(environment, "encoder", "open")
244 emit_struct_member_encoder(environment, field)
246 template = get_jinja2_template(environment, "encoder", "close")
255 self.environment = create_jinja2_environment(language, "struct")
260 emit_struct_declaration(self.environment, node)
264 emit_struct_definition(self.environment, node)
268 emit_struct_decoder(self.environment, node)
272 emit_struct_encoder(self.environment, node)