Lines Matching +full:repo +full:- +full:token
16 //! some complications - see the `syn_brackets` and `librustc_brackets`
18 //! 3. Serialize the `syn` expression back into a string, and re-parse it with
48 mod repo; module
50 /// Test some pre-set expressions chosen by us.
92 repo::clone_rust(); in test_rustc_precedence()
107 .filter_entry(repo::base_dir_filter) in test_rustc_precedence()
122 let edition = repo::edition(path).parse().unwrap(); in test_rustc_precedence()
158 fn test_expressions(edition: Edition, exprs: Vec<syn::Expr>) -> (usize, usize) { in test_expressions()
170 errorf!("\nFAIL - librustc failed to parse raw\n"); in test_expressions()
179 errorf!("\nFAIL - librustc failed to parse bracketed\n"); in test_expressions()
195 fn librustc_parse_and_rewrite(input: &str) -> Option<P<ast::Expr>> { in librustc_parse_and_rewrite()
204 fn librustc_brackets(mut librustc_expr: P<ast::Expr>) -> Option<P<ast::Expr>> { in librustc_brackets()
220 fn flat_map_field<T: MutVisitor>(mut f: ExprField, vis: &mut T) -> Vec<ExprField> { in librustc_brackets()
229 fn flat_map_stmt<T: MutVisitor>(stmt: Stmt, vis: &mut T) -> Vec<Stmt> { in librustc_brackets()
350 fn syn_brackets(syn_expr: syn::Expr) -> syn::Expr { in syn_brackets()
352 use syn::{token, Expr, ExprParen, GenericArgument, GenericMethodArgument, Pat, Stmt, Type}; in syn_brackets()
356 fn fold_expr(&mut self, expr: Expr) -> Expr { in syn_brackets()
365 paren_token: token::Paren::default(), in syn_brackets()
370 fn fold_generic_argument(&mut self, arg: GenericArgument) -> GenericArgument { in syn_brackets()
384 ) -> GenericMethodArgument { in syn_brackets()
395 fn fold_stmt(&mut self, stmt: Stmt) -> Stmt { in syn_brackets()
413 fn fold_pat(&mut self, pat: Pat) -> Pat { in syn_brackets()
417 fn fold_type(&mut self, ty: Type) -> Type { in syn_brackets()
427 fn collect_exprs(file: syn::File) -> Vec<syn::Expr> { in collect_exprs()
430 use syn::{token, ConstParam, Expr, ExprTuple, Path}; in collect_exprs()
434 fn fold_expr(&mut self, expr: Expr) -> Expr { in collect_exprs()
443 paren_token: token::Paren::default(), in collect_exprs()
447 fn fold_path(&mut self, path: Path) -> Path { in collect_exprs()
452 fn fold_const_param(&mut self, const_param: ConstParam) -> ConstParam { in collect_exprs()