/third_party/rust/crates/syn/src/ |
D | parse_quote.rs | 110 use crate::parse::{Parse, ParseStream, Parser, Result}; 125 fn parse(input: ParseStream) -> Result<Self>; in parse() 129 fn parse(input: ParseStream) -> Result<Self> { in parse() 145 fn parse(input: ParseStream) -> Result<Self> { in parse() 156 fn parse(input: ParseStream) -> Result<Self> { in parse() 186 fn parse(input: ParseStream) -> Result<Self> { in parse() 193 fn parse(input: ParseStream) -> Result<Self> { in parse() 199 fn parse(input: ParseStream) -> Result<Self> { in parse() 206 fn parse(input: ParseStream) -> Result<Self> { in parse()
|
D | ty.rs | 269 use crate::parse::{Parse, ParseStream, Result}; 275 fn parse(input: ParseStream) -> Result<Self> { in parse() 289 pub fn without_plus(input: ParseStream) -> Result<Self> { in without_plus() 297 input: ParseStream, in ambig_ty() argument 572 fn parse(input: ParseStream) -> Result<Self> { in parse() 583 fn parse(input: ParseStream) -> Result<Self> { in parse() 596 fn parse(input: ParseStream) -> Result<Self> { in parse() 619 fn parse(input: ParseStream) -> Result<Self> { in parse() 632 fn parse(input: ParseStream) -> Result<Self> { in parse() 679 fn parse(input: ParseStream) -> Result<Self> { in parse() [all …]
|
D | meta.rs | 5 use crate::parse::{Error, ParseStream, Parser, Result}; 132 |input: ParseStream| { in parser() 165 pub input: ParseStream<'a>, 201 pub fn value(&self) -> Result<ParseStream<'a>> { in value() 385 input: ParseStream, in parse_nested_meta() argument 402 fn parse_meta_path(input: ParseStream) -> Result<Path> { in parse_meta_path()
|
D | pat.rs | 232 use crate::parse::{Parse, ParseBuffer, ParseStream, Result}; 261 pub fn parse_single(input: ParseStream) -> Result<Self> { in parse_single() 307 pub fn parse_multi(input: ParseStream) -> Result<Self> { in parse_multi() 353 pub fn parse_multi_with_leading_vert(input: ParseStream) -> Result<Self> { in parse_multi_with_leading_vert() 361 fn parse(input: ParseStream) -> Result<Self> { in parse() 371 fn multi_pat_impl(input: ParseStream, leading_vert: Option<Token![|]>) -> Result<Pat> { in multi_pat_impl() argument 393 fn pat_path_or_macro_or_struct_or_range(input: ParseStream) -> Result<Pat> { in pat_path_or_macro_or_struct_or_range() 429 fn pat_wild(input: ParseStream) -> Result<PatWild> { in pat_wild() 436 fn pat_box(begin: ParseBuffer, input: ParseStream) -> Result<Pat> { in pat_box() 442 fn pat_ident(input: ParseStream) -> Result<PatIdent> { in pat_ident() [all …]
|
D | attr.rs | 9 use crate::parse::{Parse, ParseStream, Parser, Result}; 398 pub fn parse_outer(input: ParseStream) -> Result<Vec<Self>> { in parse_outer() 414 pub fn parse_inner(input: ParseStream) -> Result<Vec<Self>> { in parse_inner() 620 use crate::parse::{Parse, ParseStream, Result}; 623 pub(crate) fn parse_inner(input: ParseStream, attrs: &mut Vec<Attribute>) -> Result<()> { in parse_inner() argument 630 pub(crate) fn single_parse_inner(input: ParseStream) -> Result<Attribute> { in single_parse_inner() 640 pub(crate) fn single_parse_outer(input: ParseStream) -> Result<Attribute> { in single_parse_outer() 652 fn parse(input: ParseStream) -> Result<Self> { in parse() 660 fn parse(input: ParseStream) -> Result<Self> { in parse() 668 fn parse(input: ParseStream) -> Result<Self> { in parse() [all …]
|
D | parse.rs | 214 fn parse(input: ParseStream) -> Result<Self>; in parse() 223 pub type ParseStream<'a> = &'a ParseBuffer<'a>; typedef 500 pub fn call<T>(&self, function: fn(ParseStream) -> Result<T>) -> Result<T> { in call() 741 parser: fn(ParseStream) -> Result<T>, in parse_terminated() 1165 fn parse(input: ParseStream) -> Result<Self> { in parse() 1172 fn parse(input: ParseStream) -> Result<Self> { in parse() 1183 fn parse(input: ParseStream) -> Result<Self> { in parse() 1190 fn parse(input: ParseStream) -> Result<Self> { in parse() 1200 fn parse(input: ParseStream) -> Result<Self> { in parse() 1214 fn parse(input: ParseStream) -> Result<Self> { in parse() [all …]
|
D | expr.rs | 1021 use crate::parse::{Parse, ParseStream, Result}; 1040 fn parse(input: ParseStream) -> Result<Self> { in parse() 1132 pub fn parse_without_eager_brace(input: ParseStream) -> Result<Expr> { in parse_without_eager_brace() 1170 fn can_begin_expr(input: ParseStream) -> bool { in can_begin_expr() 1190 input: ParseStream, in parse_expr() argument 1287 fn parse_expr(input: ParseStream, mut lhs: Expr, base: Precedence) -> Result<Expr> { in parse_expr() argument 1330 fn peek_precedence(input: ParseStream) -> Precedence { in peek_precedence() 1346 input: ParseStream, in ambiguous_expr() argument 1364 fn expr_attrs(input: ParseStream) -> Result<Vec<Attribute>> { in expr_attrs() 1377 fn unary_expr(input: ParseStream, allow_struct: AllowStruct) -> Result<Expr> { in unary_expr() argument [all …]
|
D | item.rs | 899 use crate::parse::{Parse, ParseBuffer, ParseStream, Result}; 903 fn parse(input: ParseStream) -> Result<Self> { in parse() 913 input: ParseStream, in parse_rest_of_item() argument 1114 input: ParseStream, in parse() argument 1162 input: ParseStream, in parse_optional_bounds() argument 1183 fn parse_optional_definition(input: ParseStream) -> Result<Option<(Token![=], Type)>> { in parse_optional_definition() 1196 fn parse(input: ParseStream) -> Result<Self> { in parse() 1225 fn parse_macro2(begin: ParseBuffer, _vis: Visibility, input: ParseStream) -> Result<Item> { in parse_macro2() 1250 fn parse(input: ParseStream) -> Result<Self> { in parse() 1283 fn parse(input: ParseStream) -> Result<Self> { in parse() [all …]
|
D | path.rs | 281 use crate::parse::{Parse, ParseStream, Result}; 285 fn parse(input: ParseStream) -> Result<Self> { in parse() 292 fn parse(input: ParseStream) -> Result<Self> { in parse() 377 pub(crate) fn const_argument(input: ParseStream) -> Result<Expr> { in const_argument() 422 pub fn parse_turbofish(input: ParseStream) -> Result<Self> { in parse_turbofish() 429 input: ParseStream, in do_parse() argument 457 fn parse(input: ParseStream) -> Result<Self> { in parse() 465 fn parse(input: ParseStream) -> Result<Self> { in parse() 477 fn parse(input: ParseStream) -> Result<Self> { in parse() 483 fn parse_helper(input: ParseStream, expr_style: bool) -> Result<Self> { in parse_helper() argument [all …]
|
D | verbatim.rs | 1 use crate::parse::ParseStream; 6 pub(crate) fn between<'a>(begin: ParseStream<'a>, end: ParseStream<'a>) -> TokenStream { in between()
|
D | ext.rs | 5 use crate::parse::{ParseStream, Result}; 45 fn parse_any(input: ParseStream) -> Result<Self>; in parse_any() 86 fn parse_any(input: ParseStream) -> Result<Self> { in parse_any()
|
D | stmt.rs | 79 use crate::parse::{Parse, ParseStream, Result}; 135 pub fn parse_within(input: ParseStream) -> Result<Vec<Stmt>> { in parse_within() 165 fn parse(input: ParseStream) -> Result<Self> { in parse() 176 fn parse(input: ParseStream) -> Result<Self> { in parse() 182 fn parse_stmt(input: ParseStream, allow_nosemi: AllowNoSemi) -> Result<Stmt> { in parse_stmt() argument 249 fn stmt_mac(input: ParseStream, attrs: Vec<Attribute>, path: Path) -> Result<StmtMacro> { in stmt_mac() argument 266 fn stmt_local(input: ParseStream, attrs: Vec<Attribute>) -> Result<Local> { in stmt_local() argument 318 input: ParseStream, in stmt_expr() argument
|
D | mac.rs | 11 use crate::parse::{Parse, ParseStream, Parser, Result}; 144 pub(crate) fn parse_delimiter(input: ParseStream) -> Result<(MacroDelimiter, TokenStream)> { in parse_delimiter() 166 use crate::parse::{Parse, ParseStream, Result}; 170 fn parse(input: ParseStream) -> Result<Self> { in parse()
|
D | data.rs | 162 use crate::parse::{Parse, ParseStream, Result}; 166 fn parse(input: ParseStream) -> Result<Self> { in parse() 207 pub(crate) fn scan_lenient_discriminant(input: ParseStream) -> Result<()> { in scan_lenient_discriminant() 281 fn parse(input: ParseStream) -> Result<Self> { in parse() 292 fn parse(input: ParseStream) -> Result<Self> { in parse() 304 pub fn parse_named(input: ParseStream) -> Result<Self> { in parse_named() 341 pub fn parse_unnamed(input: ParseStream) -> Result<Self> { in parse_unnamed()
|
D | generics.rs | 536 use crate::parse::{Parse, ParseStream, Result}; 540 fn parse(input: ParseStream) -> Result<Self> { in parse() 603 fn parse(input: ParseStream) -> Result<Self> { in parse() 630 fn parse(input: ParseStream) -> Result<Self> { in parse() 668 fn parse(input: ParseStream) -> Result<Self> { in parse() 697 fn parse(input: ParseStream) -> Result<Self> { in parse() 708 fn parse(input: ParseStream) -> Result<Self> { in parse() 749 fn parse(input: ParseStream) -> Result<Self> { in parse() 783 input: ParseStream, in parse_multiple() argument 809 fn parse(input: ParseStream) -> Result<Self> { in parse() [all …]
|
D | derive.rs | 64 use crate::parse::{Parse, ParseStream, Result}; 68 fn parse(input: ParseStream) -> Result<Self> { in parse() 136 input: ParseStream, in data_struct() argument 172 input: ParseStream, in data_enum() argument 187 pub(crate) fn data_union(input: ParseStream) -> Result<(Option<WhereClause>, FieldsNamed)> { in data_union()
|
D | restriction.rs | 63 use crate::parse::{Parse, ParseStream, Result}; 67 fn parse(input: ParseStream) -> Result<Self> { in parse() 88 fn parse_pub(input: ParseStream) -> Result<Self> { in parse_pub()
|
/third_party/rust/crates/syn/tests/ |
D | test_parse_buffer.rs | 5 use syn::parse::{Parse, ParseStream, Parser, Result}; 13 fn parse(input1: ParseStream) -> Result<Self> { in smuggled_speculative_cursor_between_sources() 14 let nested = |input2: ParseStream| { in smuggled_speculative_cursor_between_sources() 30 fn parse(input: ParseStream) -> Result<Self> { in smuggled_speculative_cursor_between_brackets() 48 fn parse(input: ParseStream) -> Result<Self> { in smuggled_speculative_cursor_into_brackets() 61 fn parse(input: ParseStream) -> Result<()> { in trailing_empty_none_group()
|
D | test_parse_stream.rs | 4 use syn::parse::ParseStream; 9 let _ = |input: ParseStream| { in test_peek()
|
/third_party/rust/crates/cxx/syntax/ |
D | qualified.rs | 2 use syn::parse::{Error, ParseStream, Result}; 15 lit.parse_with(|input: ParseStream| { in parse_quoted() 22 pub fn parse_unquoted(input: ParseStream) -> Result<Self> { in parse_unquoted() 27 pub fn parse_quoted_or_unquoted(input: ParseStream) -> Result<Self> { in parse_quoted_or_unquoted() 37 fn parse_unquoted(input: ParseStream, allow_raw: bool) -> Result<QualifiedName> { in parse_unquoted() argument
|
D | cfg.rs | 3 use syn::parse::{Error, ParseStream, Result}; 29 attr.parse_args_with(|input: ParseStream| { in parse_attribute() 36 fn parse_single(input: ParseStream) -> Result<CfgExpr> { in parse_single() 66 fn parse_multiple(input: ParseStream) -> Result<Vec<CfgExpr>> { in parse_multiple()
|
D | namespace.rs | 6 use syn::parse::{Error, Parse, ParseStream, Result}; 27 pub fn parse_bridge_attr_namespace(input: ParseStream) -> Result<Self> { in parse_bridge_attr_namespace() 79 fn parse(input: ParseStream) -> Result<Self> { in parse()
|
/third_party/rust/crates/syn/codegen/src/ |
D | parse.rs | 281 use syn::parse::{ParseStream, Result}; 288 fn peek_tag(input: ParseStream, tag: &str) -> bool { in peek_tag() argument 299 fn full(input: ParseStream) -> Vec<Attribute> { in full() 310 fn ast_struct_inner(input: ParseStream) -> Result<AstItem> { in ast_struct_inner() 322 pub fn ast_struct(input: ParseStream) -> Result<AstItem> { in ast_struct() 330 pub fn ast_enum(input: ParseStream) -> Result<AstItem> { in ast_enum() 351 fn eos_variant(input: ParseStream) -> Result<EosVariant> { in eos_variant() 370 pub fn ast_enum_of_structs(input: ParseStream) -> Result<AstItem> { in ast_enum_of_structs() 412 pub fn parse_token_macro(input: ParseStream) -> Result<BTreeMap<String, String>> { in parse_token_macro() 430 fn parse_feature(input: ParseStream) -> Result<String> { in parse_feature() [all …]
|
/third_party/rust/crates/cxx/gen/src/ |
D | file.rs | 4 use syn::parse::{Error, Parse, ParseStream, Result}; 12 fn parse(input: ParseStream) -> Result<Self> { in parse() 20 fn parse(input: ParseStream, modules: &mut Vec<Module>) -> Result<()> { in parse() argument
|
/third_party/rust/crates/syn/fuzz/fuzz_targets/ |
D | create_token_buffer.rs | 6 use syn::parse::{ParseStream, Parser}; 8 fn immediate_fail(_input: ParseStream) -> syn::Result<()> { in immediate_fail()
|