MCPcopy Create free account
hub / github.com/hashintel/hash / into_ident

Method into_ident

libs/@local/hashql/ast/src/node/path.rs:166–173  ·  view source on GitHub ↗
(mut self)

Source from the content-addressed store, hash-verified

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 ///

Callers 5

lower_use_importsMethod · 0.80

Calls 2

is_identMethod · 0.80
popMethod · 0.65

Tested by

no test coverage detected