diff options
author | Aleksey Kladov <[email protected]> | 2018-10-31 07:56:31 +0000 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2018-10-31 07:56:31 +0000 |
commit | b67295134bf5c518b39bc88abbe1bc5b9d7d3baf (patch) | |
tree | a507432668deef7b216cb7c6360620619e904060 /crates/ra_editor/src/scope | |
parent | 3068af79ffd23656ff2d46ac92d9192ce6c813fb (diff) |
Move FnDescriptors to analyzer
Diffstat (limited to 'crates/ra_editor/src/scope')
-rw-r--r-- | crates/ra_editor/src/scope/fn_scope.rs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/crates/ra_editor/src/scope/fn_scope.rs b/crates/ra_editor/src/scope/fn_scope.rs index f10bdf657..f5c113fd9 100644 --- a/crates/ra_editor/src/scope/fn_scope.rs +++ b/crates/ra_editor/src/scope/fn_scope.rs | |||
@@ -83,6 +83,7 @@ impl FnScopes { | |||
83 | } | 83 | } |
84 | } | 84 | } |
85 | 85 | ||
86 | #[derive(PartialEq, Eq)] | ||
86 | pub struct ScopeEntry { | 87 | pub struct ScopeEntry { |
87 | syntax: SyntaxNode, | 88 | syntax: SyntaxNode, |
88 | } | 89 | } |
@@ -251,7 +252,7 @@ fn compute_expr_scopes(expr: ast::Expr, scopes: &mut FnScopes, scope: ScopeId) { | |||
251 | } | 252 | } |
252 | } | 253 | } |
253 | 254 | ||
254 | #[derive(Debug)] | 255 | #[derive(Debug, PartialEq, Eq)] |
255 | struct ScopeData { | 256 | struct ScopeData { |
256 | parent: Option<ScopeId>, | 257 | parent: Option<ScopeId>, |
257 | entries: Vec<ScopeEntry>, | 258 | entries: Vec<ScopeEntry>, |