mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-18 09:30:31 +00:00
Simplify
This commit is contained in:
parent
80f522091a
commit
c4a119f433
8 changed files with 39 additions and 27 deletions
|
@ -48,7 +48,7 @@ impl ast::Expr {
|
|||
}
|
||||
|
||||
/// Preorder walk all the expression's child expressions preserving events.
|
||||
/// If the callback returns true the subtree of the expression will be skipped.
|
||||
/// If the callback returns true on an [`WalkEvent::Enter`], the subtree of the expression will be skipped.
|
||||
/// Note that the subtree may already be skipped due to the context analysis this function does.
|
||||
pub fn preorder(&self, cb: &mut dyn FnMut(WalkEvent<ast::Expr>) -> bool) {
|
||||
let mut preorder = self.syntax().preorder();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue