Lines Matching refs:path
13 use crate::path::Path;
188 pub fn path(&self) -> &Path { in path() method
189 self.meta.path() in path()
249 Meta::Path(path) => Err(crate::error::new2( in parse_args_with()
250 path.segments.first().unwrap().ident.span(), in parse_args_with()
251 path.segments.last().unwrap().ident.span(), in parse_args_with()
255 parsing::DisplayPath(path), in parse_args_with()
263 parsing::DisplayPath(&meta.path), in parse_args_with()
490 pub path: Path,
500 pub path: Path,
511 pub fn path(&self) -> &Path { in path() method
513 Meta::Path(path) => path, in path()
514 Meta::List(meta) => &meta.path, in path()
515 Meta::NameValue(meta) => &meta.path, in path()
524 Meta::Path(path) => return Ok(path), in require_path_only()
537 Meta::Path(path) => Err(crate::error::new2( in require_list()
538 path.segments.first().unwrap().ident.span(), in require_list()
539 path.segments.last().unwrap().ident.span(), in require_list()
542 parsing::DisplayPath(path), in require_list()
555 Meta::Path(path) => Err(crate::error::new2( in require_name_value()
556 path.segments.first().unwrap().ident.span(), in require_name_value()
557 path.segments.last().unwrap().ident.span(), in require_name_value()
560 parsing::DisplayPath(path), in require_name_value()
656 use crate::path::Path;
691 let path = parse_outermost_meta_path(input)?; in parse() localVariable
692 parse_meta_after_path(path, input) in parse()
699 let path = parse_outermost_meta_path(input)?; in parse() localVariable
700 parse_meta_list_after_path(path, input) in parse()
707 let path = parse_outermost_meta_path(input)?; in parse() localVariable
708 parse_meta_name_value_after_path(path, input) in parse()
723 pub(crate) fn parse_meta_after_path(path: Path, input: ParseStream) -> Result<Meta> { in parse_meta_after_path()
725 parse_meta_list_after_path(path, input).map(Meta::List) in parse_meta_after_path()
727 parse_meta_name_value_after_path(path, input).map(Meta::NameValue) in parse_meta_after_path()
729 Ok(Meta::Path(path)) in parse_meta_after_path()
733 fn parse_meta_list_after_path(path: Path, input: ParseStream) -> Result<MetaList> { in parse_meta_list_after_path()
736 path, in parse_meta_list_after_path()
742 fn parse_meta_name_value_after_path(path: Path, input: ParseStream) -> Result<MetaNameValue> { in parse_meta_name_value_after_path()
758 path, in parse_meta_name_value_after_path()
793 use crate::path;
794 use crate::path::printing::PathStyle;
815 Meta::Path(path) => path::printing::print_path(tokens, path, PathStyle::Mod), in to_tokens()
825 path::printing::print_path(tokens, &self.path, PathStyle::Mod); in to_tokens()
833 path::printing::print_path(tokens, &self.path, PathStyle::Mod); in to_tokens()