(mut self)
| 164 | } |
| 165 | |
| 166 | pub(crate) fn into_ident(mut self) -> Option<Ident<'heap>> { |
| 167 | if !self.is_ident() { |
| 168 | return None; |
| 169 | } |
| 170 | |
| 171 | let segment = self.segments.pop().unwrap_or_else(|| unreachable!()); |
| 172 | Some(segment.name) |
| 173 | } |
| 174 | |
| 175 | /// Tries to turn this path into a generic identifier. |
| 176 | /// |
no test coverage detected