mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 07:04:49 +00:00
Move FnDescriptors to analyzer
This commit is contained in:
parent
3068af79ff
commit
b67295134b
15 changed files with 712 additions and 198 deletions
|
@ -83,6 +83,7 @@ impl FnScopes {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(PartialEq, Eq)]
|
||||
pub struct ScopeEntry {
|
||||
syntax: SyntaxNode,
|
||||
}
|
||||
|
@ -251,7 +252,7 @@ fn compute_expr_scopes(expr: ast::Expr, scopes: &mut FnScopes, scope: ScopeId) {
|
|||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, PartialEq, Eq)]
|
||||
struct ScopeData {
|
||||
parent: Option<ScopeId>,
|
||||
entries: Vec<ScopeEntry>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue