mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
Merge visit_block
This commit is contained in:
@@ -1425,7 +1425,7 @@ pub(crate) fn brg_visit_stmt_mac_call(&mut self, stmt: &'a ast::Stmt) {
|
||||
self.parent_scope.macro_rules = self.visit_invoc_in_module(stmt.id);
|
||||
}
|
||||
|
||||
fn visit_block(&mut self, block: &'a Block) {
|
||||
pub(crate) fn brg_visit_block(&mut self, block: &'a Block) {
|
||||
let orig_current_module = self.parent_scope.module;
|
||||
let orig_current_macro_rules_scope = self.parent_scope.macro_rules;
|
||||
self.build_reduced_graph_for_block(block);
|
||||
|
||||
@@ -212,6 +212,10 @@ fn visit_item(&mut self, i: &'a Item) {
|
||||
});
|
||||
}
|
||||
|
||||
fn visit_block(&mut self, block: &'a Block) {
|
||||
self.brg_visit_block(block);
|
||||
}
|
||||
|
||||
fn visit_fn(&mut self, fn_kind: FnKind<'a>, _: &AttrVec, span: Span, _: NodeId) {
|
||||
match fn_kind {
|
||||
FnKind::Fn(
|
||||
|
||||
Reference in New Issue
Block a user