aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_editor/src
diff options
context:
space:
mode:
authorAleksey Kladov <[email protected]>2018-10-31 07:56:31 +0000
committerAleksey Kladov <[email protected]>2018-10-31 07:56:31 +0000
commitb67295134bf5c518b39bc88abbe1bc5b9d7d3baf (patch)
treea507432668deef7b216cb7c6360620619e904060 /crates/ra_editor/src
parent3068af79ffd23656ff2d46ac92d9192ce6c813fb (diff)
Move FnDescriptors to analyzer
Diffstat (limited to 'crates/ra_editor/src')
-rw-r--r--crates/ra_editor/src/scope/fn_scope.rs3
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)]
86pub struct ScopeEntry { 87pub 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)]
255struct ScopeData { 256struct ScopeData {
256 parent: Option<ScopeId>, 257 parent: Option<ScopeId>,
257 entries: Vec<ScopeEntry>, 258 entries: Vec<ScopeEntry>,