Lines Matching refs:input
1 /// Quasi-quotation macro that accepts input like the [`quote!`] macro but uses
33 /// parameter `T` in the input generics.
65 /// caller is responsible for ensuring that the input tokens are syntactically
125 fn parse(input: ParseStream) -> Result<Self>;
129 fn parse(input: ParseStream) -> Result<Self> {
130 <T as Parse>::parse(input)
145 fn parse(input: ParseStream) -> Result<Self> {
146 if input.peek(Token![#]) && input.peek2(Token![!]) {
147 attr::parsing::single_parse_inner(input)
149 attr::parsing::single_parse_outer(input)
156 fn parse(input: ParseStream) -> Result<Self> {
157 let attrs = input.call(Attribute::parse_outer)?;
158 let vis: Visibility = input.parse()?;
162 let is_named = input.peek(Ident) && input.peek2(Token![:]) && !input.peek2(Token![::]);
164 ident = Some(input.parse()?);
165 colon_token = Some(input.parse()?);
171 let ty: Type = input.parse()?;
186 fn parse(input: ParseStream) -> Result<Self> {
187 Pat::parse_multi_with_leading_vert(input)
193 fn parse(input: ParseStream) -> Result<Self> {
194 <Pat as ParseQuote>::parse(input).map(Box::new)
199 fn parse(input: ParseStream) -> Result<Self> {
200 Self::parse_terminated(input)
206 fn parse(input: ParseStream) -> Result<Self> {
207 Block::parse_within(input)