Method
annotate_gen
(
&mut self,
f: F,
annot: &Annot,
annot_writer: FAnnot,
)
Source from the content-addressed store, hash-verified
| 109 | } |
| 110 | |
| 111 | pub fn annotate_gen< |
| 112 | F: FnOnce(&mut AstWriter), |
| 113 | Annot, |
| 114 | FAnnot: FnOnce(&mut AstWriter, &Annot), |
| 115 | >( |
| 116 | &mut self, |
| 117 | f: F, |
| 118 | annot: &Annot, |
| 119 | annot_writer: FAnnot, |
| 120 | ) { |
| 121 | if self.verbose { |
| 122 | self.write("("); |
| 123 | } |
| 124 | f(self); |
| 125 | if self.verbose { |
| 126 | self.write(": "); |
| 127 | annot_writer(self, annot); |
| 128 | self.write(")"); |
| 129 | } |
| 130 | } |
| 131 | |
| 132 | pub fn list<T, F: FnMut(&mut AstWriter, T) -> bool>( |
| 133 | &mut self, |
Tested by
no test coverage detected