(&self, f: &mut std::fmt::Formatter<'_>)
| 123 | for<'ast> &'ast T: TryFrom<AnyRootNodeRef<'ast>>, |
| 124 | { |
| 125 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 126 | cfg_select! { |
| 127 | debug_assertions => f |
| 128 | .debug_struct("AstNodeRef") |
| 129 | .field("kind", &self.kind) |
| 130 | .field("range", &self.range) |
| 131 | .finish(), |
| 132 | _ => { |
| 133 | // Unfortunately we have no access to the AST here. |
| 134 | f.debug_tuple("AstNodeRef").finish_non_exhaustive() |
| 135 | } |
| 136 | } |
| 137 | } |
| 138 | } |
| 139 | |
| 140 | #[cfg(all(test, debug_assertions))] |
nothing calls this directly
no outgoing calls
no test coverage detected