Lines Matching defs:parse

9 use crate::parse::{Parse, ParseStream, Parser, Result};
75 /// parsed directly by [`ParseStream::parse`]. Instead use
78 /// which you intend to parse.
80 /// [`Parse`]: parse::Parse
81 /// [`ParseStream::parse`]: parse::ParseBuffer::parse
82 /// [`ParseStream::call`]: parse::ParseBuffer::call
86 /// use syn::parse::{Parse, ParseStream};
100 /// fn parse(input: ParseStream) -> Result<Self> {
103 /// struct_token: input.parse()?,
104 /// name: input.parse()?,
105 /// semi_token: input.parse()?,
119 /// decide whether they recognize it, and then parse the remaining tokens
121 /// attribute. Use [`parse_args()`] to parse those tokens into the expected
215 self.parse_args_with(T::parse)
266 /// need to parse arbitrarily goofy attribute syntax.
272 /// We'll parse a struct, and then parse some of Rust's `#[repr]` attribute
306 /// let lit: LitInt = content.parse()?;
317 /// let lit: LitInt = content.parse()?;
563 self.parse_args_with(T::parse)
571 crate::parse::parse_scoped(parser, scope, self.tokens.clone())
619 use crate::parse::discouraged::Speculative as _;
620 use crate::parse::{Parse, ParseStream, Result};
633 pound_token: input.parse()?,
634 style: AttrStyle::Inner(input.parse()?),
636 meta: content.parse()?,
643 pound_token: input.parse()?,
646 meta: content.parse()?,
652 fn parse(input: ParseStream) -> Result<Self> {
660 fn parse(input: ParseStream) -> Result<Self> {
668 fn parse(input: ParseStream) -> Result<Self> {
694 let eq_token: Token![=] = input.parse()?;
696 let lit: Option<Lit> = ahead.parse()?;
706 input.parse()?