Lines Matching refs:parse
9 /// [`Parse`]: crate::parse::Parse
51 /// This macro can parse the following additional types as a special case even
64 /// Panics if the tokens fail to parse as the expected syntax tree type. The
108 // Can parse any type that implements Parse.
110 use crate::parse::{Parse, ParseStream, Parser, Result};
115 pub fn parse<T: ParseQuote>(token_stream: TokenStream) -> T {
116 let parser = T::parse;
125 fn parse(input: ParseStream) -> Result<Self>;
129 fn parse(input: ParseStream) -> Result<Self> {
130 <T as Parse>::parse(input)
135 // Any other types that we want `parse_quote!` to be able to parse.
145 fn parse(input: ParseStream) -> Result<Self> {
156 fn parse(input: ParseStream) -> Result<Self> {
158 let vis: Visibility = input.parse()?;
164 ident = Some(input.parse()?);
165 colon_token = Some(input.parse()?);
171 let ty: Type = input.parse()?;
186 fn parse(input: ParseStream) -> Result<Self> {
193 fn parse(input: ParseStream) -> Result<Self> {
194 <Pat as ParseQuote>::parse(input).map(Box::new)
199 fn parse(input: ParseStream) -> Result<Self> {
206 fn parse(input: ParseStream) -> Result<Self> {