• Home
  • Raw
  • Download

Lines Matching +full:path +full:- +full:parse

5 use syn::parse::{Error, Parse, ParseStream, Result};
9 Generics, Ident, Path, ReturnType, Token, Type, TypeBareFn, Visibility, WhereClause,
23 impl Parse for Element {
24 fn parse(input: ParseStream) -> Result<Self> { in parse() method
27 let vis: Visibility = input.parse()?; in parse()
28 let static_token: Option<Token![static]> = input.parse()?; in parse()
30 let mut_token: Option<Token![mut]> = input.parse()?; in parse()
37 let ident: Ident = input.parse()?; in parse()
38 input.parse::<Token![:]>()?; in parse()
40 let ty: Type = input.parse()?; in parse()
42 input.parse::<Token![=]>()?; in parse()
43 let mut expr_semi = Vec::from_iter(input.parse::<TokenStream>()?); in parse()
59 let constness: Option<Token![const]> = input.parse()?; in parse()
60 let asyncness: Option<Token![async]> = input.parse()?; in parse()
61 let unsafety: Option<Token![unsafe]> = input.parse()?; in parse()
62 let abi: Option<Abi> = input.parse()?; in parse()
63 let fn_token: Token![fn] = input.parse().map_err(|_| { in parse()
69 let ident: Ident = input.parse()?; in parse()
70 let generics: Generics = input.parse()?; in parse()
76 content.parse::<Option<Token![mut]>>()?; in parse()
77 let ident = if let Some(wild) = content.parse::<Option<Token![_]>>()? { in parse()
80 content.parse()? in parse()
82 let colon_token: Token![:] = content.parse()?; in parse()
83 let ty: Type = content.parse()?; in parse()
90 let comma: Token![,] = content.parse()?; in parse()
95 let output: ReturnType = input.parse()?; in parse()
96 let where_clause: Option<WhereClause> = input.parse()?; in parse()
100 content.parse::<TokenStream>()?; in parse()
145 "where-clause is not allowed on distributed slice elements", in parse()
199 pub fn expand(path: Path, pos: impl Into<Option<usize>>, input: Element) -> TokenStream { in expand() argument
201 do_expand(path, pos, input) in expand()
204 fn do_expand(path: Path, pos: Option<usize>, input: Element) -> TokenStream { in do_expand() argument
213 Ok(path) => path, in do_expand()
223 #path ! { in do_expand()
225 #![linkme_macro = #path] in do_expand()
232 #linkme_path::DistributedSlice::private_typecheck(#path, #uninit) in do_expand()