Home
last modified time | relevance | path

Searched refs:ParseStream (Results 1 – 25 of 49) sorted by relevance

12

/third_party/rust/crates/syn/src/
Dattr.rs8 use crate::parse::{Parse, ParseBuffer, ParseStream, Parser, Result};
193 let parser = |input: ParseStream| parsing::parse_meta_after_path(path, input); in parse_meta()
225 let parser = |input: ParseStream| { in parse_args_with()
238 pub fn parse_outer(input: ParseStream) -> Result<Vec<Self>> { in parse_outer()
252 pub fn parse_inner(input: ParseStream) -> Result<Vec<Self>> { in parse_inner()
278 fn enter_args<'a>(attr: &Attribute, input: ParseStream<'a>) -> Result<ParseBuffer<'a>> { in enter_args()
501 use crate::parse::{Parse, ParseStream, Result};
503 pub fn parse_inner(input: ParseStream, attrs: &mut Vec<Attribute>) -> Result<()> { in parse_inner() argument
510 pub fn single_parse_inner(input: ParseStream) -> Result<Attribute> { in single_parse_inner()
521 pub fn single_parse_outer(input: ParseStream) -> Result<Attribute> { in single_parse_outer()
[all …]
Dparse_quote.rs111 use crate::parse::{Parse, ParseStream, Parser, Result};
127 fn parse(input: ParseStream) -> Result<Self>; in parse()
131 fn parse(input: ParseStream) -> Result<Self> { in parse()
147 fn parse(input: ParseStream) -> Result<Self> { in parse()
157 fn parse(input: ParseStream) -> Result<Self> { in parse()
164 fn parse(input: ParseStream) -> Result<Self> { in parse()
Dparse.rs221 fn parse(input: ParseStream) -> Result<Self>; in parse()
230 pub type ParseStream<'a> = &'a ParseBuffer<'a>; typedef
507 pub fn call<T>(&self, function: fn(ParseStream) -> Result<T>) -> Result<T> { in call()
701 parser: fn(ParseStream) -> Result<T>, in parse_terminated()
1067 fn parse(input: ParseStream) -> Result<Self> { in parse()
1074 fn parse(input: ParseStream) -> Result<Self> { in parse()
1085 fn parse(input: ParseStream) -> Result<Self> { in parse()
1092 fn parse(input: ParseStream) -> Result<Self> { in parse()
1102 fn parse(input: ParseStream) -> Result<Self> { in parse()
1118 fn parse(input: ParseStream) -> Result<Self> { in parse()
[all …]
Dty.rs338 use crate::parse::{Parse, ParseStream, Result};
344 fn parse(input: ParseStream) -> Result<Self> { in parse()
358 pub fn without_plus(input: ParseStream) -> Result<Self> { in without_plus()
366 input: ParseStream, in ambig_ty() argument
658 fn parse(input: ParseStream) -> Result<Self> { in parse()
669 fn parse(input: ParseStream) -> Result<Self> { in parse()
682 fn parse(input: ParseStream) -> Result<Self> { in parse()
705 fn parse(input: ParseStream) -> Result<Self> { in parse()
718 fn parse(input: ParseStream) -> Result<Self> { in parse()
724 fn parse_bare_fn(input: ParseStream, allow_mut_self: bool) -> Result<Option<TypeBareFn>> { in parse_bare_fn() argument
[all …]
Dpat.rs315 use crate::parse::{Parse, ParseBuffer, ParseStream, Result};
320 fn parse(input: ParseStream) -> Result<Self> { in parse()
372 fn pat_path_or_macro_or_struct_or_range(input: ParseStream) -> Result<Pat> { in pat_path_or_macro_or_struct_or_range()
427 fn pat_wild(input: ParseStream) -> Result<PatWild> { in pat_wild()
434 fn pat_box(input: ParseStream) -> Result<PatBox> { in pat_box()
442 fn pat_ident(input: ParseStream) -> Result<PatIdent> { in pat_ident()
460 fn pat_tuple_struct(input: ParseStream, path: Path) -> Result<PatTupleStruct> { in pat_tuple_struct() argument
468 fn pat_struct(begin: ParseBuffer, input: ParseStream, path: Path) -> Result<Pat> { in pat_struct() argument
511 fn field_pat(input: ParseStream) -> Result<FieldPat> { in field_pat()
558 input: ParseStream, in pat_range() argument
[all …]
Dexpr.rs1097 use crate::parse::{Parse, ParseStream, Result};
1161 fn parse(input: ParseStream) -> Result<Self> { in parse()
1249 pub fn parse_without_eager_brace(input: ParseStream) -> Result<Expr> { in parse_without_eager_brace()
1286 input: ParseStream, in parse_expr() argument
1405 input: ParseStream, in parse_expr() argument
1453 fn peek_precedence(input: ParseStream) -> Precedence { in peek_precedence()
1470 fn ambiguous_expr(input: ParseStream, allow_struct: AllowStruct) -> Result<Expr> { in ambiguous_expr() argument
1476 fn expr_attrs(input: ParseStream) -> Result<Vec<Attribute>> { in expr_attrs()
1504 fn unary_expr(input: ParseStream, allow_struct: AllowStruct) -> Result<Expr> { in unary_expr() argument
1541 fn unary_expr(input: ParseStream, allow_struct: AllowStruct) -> Result<Expr> { in unary_expr() argument
[all …]
Dpath.rs216 use crate::parse::{Parse, ParseStream, Result};
220 fn parse(input: ParseStream) -> Result<Self> { in parse()
227 fn parse(input: ParseStream) -> Result<Self> { in parse()
317 pub fn const_argument(input: ParseStream) -> Result<Expr> { in const_argument()
360 fn parse(input: ParseStream) -> Result<Self> { in parse()
387 fn parse(input: ParseStream) -> Result<Self> { in parse()
399 fn parse(input: ParseStream) -> Result<Self> { in parse()
405 fn parse_helper(input: ParseStream, expr_style: bool) -> Result<Self> { in parse_helper() argument
432 fn parse(input: ParseStream) -> Result<Self> { in parse()
444 fn parse(input: ParseStream) -> Result<Self> { in parse()
[all …]
Dparse_macro_input.rs133 use crate::parse::{Parse, ParseStream, Parser, Result};
145 fn parse(input: ParseStream) -> Result<Self>; in parse()
149 fn parse(input: ParseStream) -> Result<Self> { in parse()
162 fn parse(input: ParseStream) -> Result<Self> { in parse()
Dstmt.rs53 use crate::parse::{Parse, ParseBuffer, ParseStream, Result};
110 pub fn parse_within(input: ParseStream) -> Result<Vec<Stmt>> { in parse_within()
138 fn parse(input: ParseStream) -> Result<Self> { in parse()
149 fn parse(input: ParseStream) -> Result<Self> { in parse()
154 fn parse_stmt(input: ParseStream, allow_nosemi: bool) -> Result<Stmt> { in parse_stmt() argument
211 fn stmt_mac(input: ParseStream, attrs: Vec<Attribute>, path: Path) -> Result<Stmt> { in stmt_mac() argument
230 fn stmt_local(input: ParseStream, attrs: Vec<Attribute>, begin: ParseBuffer) -> Result<Stmt> { in stmt_local() argument
276 input: ParseStream, in stmt_expr() argument
Ddata.rs244 use crate::parse::{Parse, ParseStream, Result};
248 fn parse(input: ParseStream) -> Result<Self> { in parse()
277 fn parse(input: ParseStream) -> Result<Self> { in parse()
288 fn parse(input: ParseStream) -> Result<Self> { in parse()
300 pub fn parse_named(input: ParseStream) -> Result<Self> { in parse_named()
316 pub fn parse_unnamed(input: ParseStream) -> Result<Self> { in parse_unnamed()
329 fn parse(input: ParseStream) -> Result<Self> { in parse()
352 fn parse_pub(input: ParseStream) -> Result<Self> { in parse_pub()
396 fn parse_crate(input: ParseStream) -> Result<Self> { in parse_crate()
Ditem.rs969 use crate::parse::{Parse, ParseBuffer, ParseStream, Result};
978 fn parse(input: ParseStream) -> Result<Self> { in parse()
1177 fn parse(input: ParseStream, where_clause_location: WhereClauseLocation) -> Result<Self> { in parse() argument
1239 fn parse(input: ParseStream) -> Result<Self> { in parse()
1266 fn parse(input: ParseStream) -> Result<Self> { in parse()
1307 fn parse(input: ParseStream) -> Result<Self> { in parse()
1340 fn parse(input: ParseStream) -> Result<Self> { in parse()
1354 fn parse(input: ParseStream) -> Result<UseTree> { in parse()
1403 fn parse(input: ParseStream) -> Result<Self> { in parse()
1421 fn parse(input: ParseStream) -> Result<Self> { in parse()
[all …]
Dext.rs7 use crate::parse::{ParseStream, Result};
49 fn parse_any(input: ParseStream) -> Result<Self>; in parse_any()
90 fn parse_any(input: ParseStream) -> Result<Self> { in parse_any()
Dmac.rs8 use crate::parse::{Parse, ParseStream, Parser, Result};
153 pub fn parse_delimiter(input: ParseStream) -> Result<(MacroDelimiter, TokenStream)> { in parse_delimiter()
175 use crate::parse::{Parse, ParseStream, Result};
179 fn parse(input: ParseStream) -> Result<Self> { in parse()
Dderive.rs93 use crate::parse::{Parse, ParseStream, Result};
97 fn parse(input: ParseStream) -> Result<Self> { in parse()
165 input: ParseStream, in data_struct() argument
201 input: ParseStream, in data_enum() argument
216 pub fn data_union(input: ParseStream) -> Result<(Option<WhereClause>, FieldsNamed)> { in data_union()
Dgenerics.rs595 use crate::parse::{Parse, ParseStream, Result};
599 fn parse(input: ParseStream) -> Result<Self> { in parse()
662 fn parse(input: ParseStream) -> Result<Self> { in parse()
689 fn parse(input: ParseStream) -> Result<Self> { in parse()
727 fn parse(input: ParseStream) -> Result<Self> { in parse()
749 fn parse(input: ParseStream) -> Result<Self> { in parse()
760 fn parse(input: ParseStream) -> Result<Self> { in parse()
814 fn parse(input: ParseStream) -> Result<Self> { in parse()
833 input: ParseStream, in parse_multiple() argument
858 fn parse(input: ParseStream) -> Result<Self> { in parse()
[all …]
Dop.rs86 use crate::parse::{Parse, ParseStream, Result};
88 fn parse_binop(input: ParseStream) -> Result<BinOp> { in parse_binop()
133 fn parse(input: ParseStream) -> Result<Self> { in parse()
138 fn parse(input: ParseStream) -> Result<Self> { in parse()
167 fn parse(input: ParseStream) -> Result<Self> { in parse()
/third_party/rust/crates/syn/tests/
Dtest_parse_buffer.rs5 use syn::parse::{discouraged::Speculative, 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()
Dtest_parse_stream.rs2 use syn::parse::ParseStream;
7 _ = |input: ParseStream| { in test_peek()
/third_party/rust/crates/cxx/syntax/
Dqualified.rs2 use syn::parse::{Error, ParseStream, Result};
10 pub fn parse_unquoted(input: ParseStream) -> Result<Self> { in parse_unquoted()
15 pub fn parse_quoted_or_unquoted(input: ParseStream) -> Result<Self> { in parse_quoted_or_unquoted()
22 lit.parse_with(|input: ParseStream| { in parse_quoted_or_unquoted()
33 fn parse_unquoted(input: ParseStream, allow_raw: bool) -> Result<QualifiedName> { in parse_unquoted() argument
Dattrs.rs8 use syn::parse::{Nothing, Parse, ParseStream, Parser as _};
67 match attr.parse_args_with(|attr: ParseStream| parse_derive_attribute(cx, attr)) { in parse()
195 fn parse_doc_attribute(input: ParseStream) -> Result<DocAttribute> { in parse_doc_attribute()
211 fn parse_derive_attribute(cx: &mut Errors, input: ParseStream) -> Result<Vec<Derive>> { in parse_derive_attribute()
227 fn parse_repr_attribute(input: ParseStream) -> Result<Atom> { in parse_repr_attribute()
244 fn parse_namespace_attribute(input: ParseStream) -> Result<Namespace> { in parse_namespace_attribute()
250 fn parse_cxx_name_attribute(input: ParseStream) -> Result<ForeignName> { in parse_cxx_name_attribute()
261 fn parse_rust_name_attribute(input: ParseStream) -> Result<Ident> { in parse_rust_name_attribute()
Dcfg.rs3 use syn::parse::{Error, ParseStream, Result};
28 pub fn parse_attribute(input: ParseStream) -> Result<CfgExpr> { 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()
Dnamespace.rs6 use syn::parse::{Parse, ParseStream, Result};
27 pub fn parse_bridge_attr_namespace(input: ParseStream) -> Result<Namespace> { in parse_bridge_attr_namespace()
48 fn parse(input: ParseStream) -> Result<Self> { in parse()
/third_party/rust/crates/syn/codegen/src/
Dparse.rs268 use syn::parse::{ParseStream, Parser, Result};
274 fn peek_tag(input: ParseStream, tag: &str) -> bool { in peek_tag() argument
285 fn full(input: ParseStream) -> Vec<Attribute> { in full()
296 fn ast_struct_inner(input: ParseStream) -> Result<AstItem> { in ast_struct_inner()
308 pub fn ast_struct(input: ParseStream) -> Result<AstItem> { in ast_struct()
316 fn no_visit(input: ParseStream) -> bool { in no_visit()
326 pub fn ast_enum(input: ParseStream) -> Result<Option<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()
414 pub fn parse_token_macro(input: ParseStream) -> Result<TokenLookup> { in parse_token_macro()
[all …]
/third_party/rust/crates/tracing/tracing-attributes/src/
Dattr.rs7 use syn::parse::{Parse, ParseStream};
104 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse()
199 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse()
216 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse()
230 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse()
264 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse()
302 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse()
318 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse()
386 fn parse(input: ParseStream<'_>) -> syn::Result<Self> { in parse()
/third_party/rust/crates/cxx/gen/src/
Dfile.rs4 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

12