Lines Matching refs:path
6 use crate::path::{Path, PathSegment};
54 /// if meta.path.is_ident("kind") {
57 /// } else if meta.path.is_ident("hot") {
60 /// } else if meta.path.is_ident("with") {
62 /// with.push(meta.path);
122 /// if meta.path.is_ident("kind") {
164 pub path: Path,
185 /// if attr.path().is_ident("tea") { // this parses the `tea`
187 /// if meta.path.is_ident("kind") { // this parses the `kind`
219 /// if attr.path().is_ident("tea") {
221 /// if meta.path.is_ident("with") {
223 /// if meta.path.is_ident("sugar") {
226 /// } else if meta.path.is_ident("milk") {
256 /// if attr.path().is_ident("repr") {
258 /// if meta.path.is_ident("align") {
281 /// The span of the resulting error will cover `meta.path` *and* everything
284 /// There are 2 ways you might call this. First, if `meta.path` is not
292 /// if meta.path.is_ident("kind") {
304 /// `syn::Error::new_spanned(&meta.path, "message...")`.
324 /// if meta.path.is_ident("kind") {
333 /// _ => Err(meta.error("tea kind must be a string literal, path, or macro")),
344 /// error: tea kind must be a string literal, path, or macro
378 let start_span = self.path.segments[0].ident.span();
389 let path = input.call(parse_meta_path)?;
390 logic(ParseNestedMeta { path, input })?;
401 // Like Path::parse_mod_style, but accepts keywords in the path.