Use when the AstDisplay trait is what we want.
(&self, v: &T)
| 35 | |
| 36 | // Use when the AstDisplay trait is what we want. |
| 37 | fn doc_display_pass<'a, T: AstDisplay>(&self, v: &T) -> RcDoc<'a, ()> { |
| 38 | RcDoc::text(v.to_ast_string(self.config.format_mode)) |
| 39 | } |
| 40 | |
| 41 | pub(crate) fn doc_create_source<'a, T: AstInfo>( |
| 42 | &'a self, |
no test coverage detected