Move FnDescriptors to analyzer

This commit is contained in:
Aleksey Kladov 2018-10-31 10:56:31 +03:00
parent 3068af79ff
commit b67295134b
15 changed files with 712 additions and 198 deletions

View file

@ -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>,