Lines Matching full:parse

8 /// The return type can be any syntax tree node that implements the [`Parse`]
11 /// [`Parse`]: crate::parse::Parse
53 /// This macro can parse the following additional types as a special case even
54 /// though they do not implement the `Parse` trait.
77 /// Panics if the tokens fail to parse as the expected syntax tree type. The
121 // Can parse any type that implements Parse.
124 use crate::parse::{Parse, ParseStream, Parser};
130 pub fn parse<T: ParseQuote>(token_stream: TokenStream) -> T { in parse() function
131 let parser = T::parse; in parse()
140 fn parse(input: ParseStream) -> Result<Self>; in parse() method
143 impl<T: Parse> ParseQuote for T {
144 fn parse(input: ParseStream) -> Result<Self> { in parse() method
145 <T as Parse>::parse(input) in parse()
150 // Any other types that we want `parse_quote!` to be able to parse.
160 fn parse(input: ParseStream) -> Result<Self> { in parse() method
171 fn parse(input: ParseStream) -> Result<Self> { in parse() method
174 attrs.push(ParseQuote::parse(input)?); in parse()
182 fn parse(input: ParseStream) -> Result<Self> { in parse() method
184 let vis: Visibility = input.parse()?; in parse()
190 ident = Some(input.parse()?); in parse()
191 colon_token = Some(input.parse()?); in parse()
197 let ty: Type = input.parse()?; in parse()
212 fn parse(input: ParseStream) -> Result<Self> { in parse() method
219 fn parse(input: ParseStream) -> Result<Self> { in parse() method
220 <Pat as ParseQuote>::parse(input).map(Box::new) in parse()
224 impl<T: Parse, P: Parse> ParseQuote for Punctuated<T, P> {
225 fn parse(input: ParseStream) -> Result<Self> { in parse() method
232 fn parse(input: ParseStream) -> Result<Self> { in parse() method
239 fn parse(input: ParseStream) -> Result<Self> { in parse() method