Lines Matching full:parse

6 use crate::parse::{Parse, Parser};
152 /// Parse a syntax tree node from the content of this string literal.
174 /// return lit_str.parse().map(Some);
185 pub fn parse<T: Parse>(&self) -> Result<T> { in parse() method
186 self.parse_with(T::parse) in parse()
206 /// // Parse a string literal like "a::b::c" into a Path, not allowing
239 // Parse string literal into a token stream with every span equal to the in parse_with()
245 let result = crate::parse::parse_scoped(parser, span, tokens)?; in parse_with()
418 Some(parse) => parse, in new()
422 let mut token: Literal = repr.parse().unwrap(); in new()
439 /// This is equivalent to `lit.base10_digits().parse()` except that the
445 /// use syn::parse::{Parse, ParseStream, Result};
451 /// impl Parse for Port {
452 /// fn parse(input: ParseStream) -> Result<Self> {
453 /// let lit: LitInt = input.parse()?;
465 .parse() in base10_parse()
512 Some(parse) => parse, in new()
516 let mut token: Literal = repr.parse().unwrap(); in new()
537 .parse() in base10_parse()
861 use crate::parse::{Parse, ParseStream, Unexpected};
868 impl Parse for Lit {
869 fn parse(input: ParseStream) -> Result<Self> { in parse() method
909 let mut token: Literal = repr.parse().unwrap(); in parse_negative_lit()
924 let mut token: Literal = repr.parse().unwrap(); in parse_negative_lit()
939 impl Parse for LitStr {
940 fn parse(input: ParseStream) -> Result<Self> { in parse() method
942 match input.parse() { in parse()
950 impl Parse for LitByteStr {
951 fn parse(input: ParseStream) -> Result<Self> { in parse() method
953 match input.parse() { in parse()
961 impl Parse for LitCStr {
962 fn parse(input: ParseStream) -> Result<Self> { in parse() method
964 match input.parse() { in parse()
972 impl Parse for LitByte {
973 fn parse(input: ParseStream) -> Result<Self> { in parse() method
975 match input.parse() { in parse()
983 impl Parse for LitChar {
984 fn parse(input: ParseStream) -> Result<Self> { in parse() method
986 match input.parse() { in parse()
994 impl Parse for LitInt {
995 fn parse(input: ParseStream) -> Result<Self> { in parse() method
997 match input.parse() { in parse()
1005 impl Parse for LitFloat {
1006 fn parse(input: ParseStream) -> Result<Self> { in parse() method
1008 match input.parse() { in parse()
1016 impl Parse for LitBool {
1017 fn parse(input: ParseStream) -> Result<Self> { in parse() method
1019 match input.parse() { in parse()
1029 let buffer = crate::parse::new_parse_buffer(scope, cursor, unexpected); in peek_impl()
1038 <$name as Parse>::parse(input).is_ok()