Lines Matching full:parse
43 /// A local `let` binding: `let x: u64 = s.parse()?;`.
58 /// `LocalInit` represents `= s.parse()?` in `let x: u64 = s.parse()?` and
91 use crate::parse::discouraged::Speculative as _;
92 use crate::parse::{Parse, ParseStream};
103 /// Parse the body of a block as zero or more statements, possibly
110 /// use syn::parse::{Parse, ParseStream};
112 /// // Parse a function with no generics or parameter list.
127 /// impl Parse for MiniFunction {
128 /// fn parse(input: ParseStream) -> Result<Self> {
130 /// let fn_token: Token![fn] = input.parse()?;
131 /// let name: Ident = input.parse()?;
156 while let semi @ Some(_) = input.parse()? { in parse_within()
182 impl Parse for Block {
183 fn parse(input: ParseStream) -> Result<Self> { in parse() method
193 impl Parse for Stmt {
194 fn parse(input: ParseStream) -> Result<Self> { in parse() method
269 let bang_token: Token![!] = input.parse()?; in stmt_mac()
271 let semi_token: Option<Token![;]> = input.parse()?; in stmt_mac()
286 let let_token: Token![let] = input.parse()?; in stmt_local()
290 let colon_token: Token![:] = input.parse()?; in stmt_local()
291 let ty: Type = input.parse()?; in stmt_local()
300 let init = if let Some(eq_token) = input.parse()? { in stmt_local()
302 let expr: Expr = input.parse()?; in stmt_local()
305 let else_token: Token![else] = input.parse()?; in stmt_local()
309 block: input.parse()?, in stmt_local()
325 let semi_token: Token![;] = input.parse()?; in stmt_local()
391 let semi_token: Option<Token![;]> = input.parse()?; in stmt_expr()