Lines Matching refs:path
7 use std::path::{Path, PathBuf};
135 syn::Type::Path(TypePath { qself: None, path }) => {
136 let last = path.segments.last().unwrap();
185 if mac.path.segments.last().unwrap().ident == "Token" =>
200 if !attr.path().is_ident("cfg") {
228 if attr.path().is_ident("non_exhaustive") {
237 if attr.path().is_ident("doc") && attr.parse_args::<parsing::kw::hidden>().is_ok() {
357 let path: Path = content.parse()?;
358 Some(path)
423 let path: Path = expansion.parse()?;
424 let ty = path.segments.last().unwrap().ident.to_string();
470 if attr.path().is_ident("path") {
490 if attr.path().is_ident("cfg") {
499 #[error("{path}:{line}:{column}: {error}")]
501 path: PathBuf,
521 path: relative_to_workspace_root.as_ref().to_owned(),
534 let parent = relative_to_workspace_root.parent().expect("no parent path");
575 let path = parent.join(filename);
576 load_file(path, &features, lookup)?;
585 let mut found = if item.mac.path.is_ident("ast_struct") {
587 } else if item.mac.path.is_ident("ast_enum") {
589 } else if item.mac.path.is_ident("ast_enum_of_structs") {
651 let path = workspace_path::get(relative_to_workspace_root);
652 let src = fs::read_to_string(path)?;