Lines Matching refs:ident
7 use crate::ident::Ident;
65 pub fn is_ident<I>(&self, ident: &I) -> bool in is_ident()
71 Some(id) => id == ident, in is_ident()
89 Some(&self.segments[0].ident) in get_ident()
101 self.segments.first().unwrap().ident.span(), in require_ident()
102 self.segments.last().unwrap().ident.span(), in require_ident()
113 pub ident: Ident,
122 fn from(ident: T) -> Self { in from()
124 ident: ident.into(), in from()
215 pub ident: Ident,
227 pub ident: Ident,
238 pub ident: Ident,
294 use crate::ident::Ident;
342 let ident = segment.ident; in parse() localVariable
350 ident, in parse()
357 ident, in parse()
369 ident: segment.ident, in parse()
420 let ident: Ident = input.parse()?; in const_argument() localVariable
424 path: Path::from(ident), in const_argument()
523 let ident = input.call(Ident::parse_any)?; in parse_helper() localVariable
524 return Ok(PathSegment::from(ident)); in parse_helper()
527 let ident = if input.peek(Token![Self]) { in parse_helper() localVariable
540 ident, in parse_helper()
544 Ok(PathSegment::from(ident)) in parse_helper()
595 let ident = Ident::parse_any(input)?; in parse_mod_style() localVariable
596 segments.push_value(PathSegment::from(ident)); in parse_mod_style()
754 segment.ident.to_tokens(tokens); in print_path_segment()
852 self.ident.to_tokens(tokens); in to_tokens()
862 self.ident.to_tokens(tokens); in to_tokens()
872 self.ident.to_tokens(tokens); in to_tokens()