Searched refs:fold_expr (Results 1 – 2 of 2) sorted by relevance
/external/rust/crates/syn/tests/ |
D | test_precedence.rs | 351 use syn::fold::{fold_expr, fold_generic_argument, fold_generic_method_argument, Fold}; in syn_brackets() 356 fn fold_expr(&mut self, expr: Expr) -> Expr { in syn_brackets() method 360 fold_expr(self, expr) in syn_brackets() 364 expr: Box::new(fold_expr(self, expr)), in syn_brackets() 373 Expr::Block(_) => fold_expr(self, arg), in syn_brackets() 387 Expr::Block(_) => fold_expr(self, arg), in syn_brackets() 398 Stmt::Expr(e) => Stmt::Expr(fold_expr(self, e)), in syn_brackets() 403 Stmt::Semi(fold_expr(self, e), semi) in syn_brackets() 423 folder.fold_expr(syn_expr) in syn_brackets() 434 fn fold_expr(&mut self, expr: Expr) -> Expr { in collect_exprs() method
|
/external/rust/crates/syn/src/gen/ |
D | fold.rs | 104 fn fold_expr(&mut self, i: Expr) -> Expr { in fold_expr() method 105 fold_expr(self, i) in fold_expr() 819 Box::new(f.fold_expr(*(it).1)), in fold_arm() 822 body: Box::new(f.fold_expr(*node.body)), in fold_arm() 1003 default: (node.default).map(|it| f.fold_expr(it)), in fold_const_param() 1074 pub fn fold_expr<F>(f: &mut F, node: Expr) -> Expr in fold_expr() function 1145 elems: FoldHelper::lift(node.elems, |it| f.fold_expr(it)), in fold_expr_array() 1155 left: Box::new(f.fold_expr(*node.left)), in fold_expr_assign() 1157 right: Box::new(f.fold_expr(*node.right)), in fold_expr_assign() 1167 left: Box::new(f.fold_expr(*node.left)), in fold_expr_assign_op() [all …]
|