Home
last modified time | relevance | path

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

12

/third_party/rust/crates/syn/src/
Dparse_quote.rs110 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()
Dty.rs269 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 …]
Dmeta.rs5 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()
Dpat.rs232 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 …]
Dattr.rs9 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 …]
Dparse.rs214 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 …]
Dexpr.rs1021 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 …]
Ditem.rs899 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 …]
Dpath.rs281 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 …]
Dverbatim.rs1 use crate::parse::ParseStream;
6 pub(crate) fn between<'a>(begin: ParseStream<'a>, end: ParseStream<'a>) -> TokenStream { in between()
Dext.rs5 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()
Dstmt.rs79 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
Dmac.rs11 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()
Ddata.rs162 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()
Dgenerics.rs536 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 …]
Dderive.rs64 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()
Drestriction.rs63 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/
Dtest_parse_buffer.rs5 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()
Dtest_parse_stream.rs4 use syn::parse::ParseStream;
9 let _ = |input: ParseStream| { in test_peek()
/third_party/rust/crates/cxx/syntax/
Dqualified.rs2 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
Dcfg.rs3 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()
Dnamespace.rs6 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/
Dparse.rs281 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/
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
/third_party/rust/crates/syn/fuzz/fuzz_targets/
Dcreate_token_buffer.rs6 use syn::parse::{ParseStream, Parser};
8 fn immediate_fail(_input: ParseStream) -> syn::Result<()> { in immediate_fail()

12