Lines Matching refs:CodeWriter
31 struct CodeWriter<'a> { struct
36 impl<'a> CodeWriter<'a> { argument
37 pub fn new(writer: &'a mut dyn Write) -> CodeWriter<'a> { in new()
38 CodeWriter { in new()
82 F: Fn(&mut CodeWriter), in indented() argument
84 cb(&mut CodeWriter { in indented()
93 F: Fn(&mut CodeWriter), in commented() argument
95 cb(&mut CodeWriter { in commented()
103 F: Fn(&mut CodeWriter), in block() argument
112 F: Fn(&mut CodeWriter), in expr_block() argument
119 F: Fn(&mut CodeWriter), in impl_self_block() argument
126 F: Fn(&mut CodeWriter), in pub_struct() argument
133 F: Fn(&mut CodeWriter), in pub_trait() argument
156 F: Fn(&mut CodeWriter), in fn_block() argument
167 F: Fn(&mut CodeWriter), in pub_fn() argument
253 fn write_definition(&self, w: &mut CodeWriter) { in write_definition() argument
394 fn write_client(&self, w: &mut CodeWriter) { in write_client() argument
492 fn write_service(&self, w: &mut CodeWriter) { in write_service() argument
514 fn write_bind(&self, w: &mut CodeWriter) { in write_bind() argument
575 fn write_client(&self, w: &mut CodeWriter) { in write_client() argument
603 fn write_server(&self, w: &mut CodeWriter) { in write_server() argument
632 fn write_method_definitions(&self, w: &mut CodeWriter) { in write_method_definitions() argument
642 fn write(&self, w: &mut CodeWriter) { in write() argument
663 let mut w = CodeWriter::new(&mut v); in gen_file()