Use when we don't know what to do.
(&self, v: &T, _debug: &str)
| 23 | impl Pretty { |
| 24 | // Use when we don't know what to do. |
| 25 | pub(crate) fn doc_display<'a, T: AstDisplay>(&self, v: &T, _debug: &str) -> RcDoc<'a, ()> { |
| 26 | #[cfg(test)] |
| 27 | eprintln!( |
| 28 | "UNKNOWN PRETTY TYPE in {}: {}, {}", |
| 29 | _debug, |
| 30 | std::any::type_name::<T>(), |
| 31 | v.to_ast_string_simple() |
| 32 | ); |
| 33 | self.doc_display_pass(v) |
| 34 | } |
| 35 | |
| 36 | // Use when the AstDisplay trait is what we want. |
| 37 | fn doc_display_pass<'a, T: AstDisplay>(&self, v: &T) -> RcDoc<'a, ()> { |
no test coverage detected