mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
rename scopes
This commit is contained in:
parent
ca957edf96
commit
fe5574b05a
4 changed files with 9 additions and 9 deletions
|
@ -5,7 +5,7 @@ use ra_db::{CrateId, SourceRootId, Edition};
|
|||
use ra_syntax::{ast::self, TreeArc, SyntaxNode};
|
||||
|
||||
use crate::{
|
||||
Name, ScopesWithSyntaxMapping, Ty, HirFileId,
|
||||
Name, ScopesWithSourceMap, Ty, HirFileId,
|
||||
HirDatabase, PersistentHirDatabase,
|
||||
type_ref::TypeRef,
|
||||
nameres::{ModuleScope, Namespace, lower::ImportId},
|
||||
|
@ -495,10 +495,10 @@ impl Function {
|
|||
db.type_for_def((*self).into(), Namespace::Values)
|
||||
}
|
||||
|
||||
pub fn scopes(&self, db: &impl HirDatabase) -> ScopesWithSyntaxMapping {
|
||||
pub fn scopes(&self, db: &impl HirDatabase) -> ScopesWithSourceMap {
|
||||
let scopes = db.expr_scopes(*self);
|
||||
let source_map = db.body_with_source_map(*self).1;
|
||||
ScopesWithSyntaxMapping { scopes, source_map }
|
||||
ScopesWithSourceMap { scopes, source_map }
|
||||
}
|
||||
|
||||
pub fn signature(&self, db: &impl HirDatabase) -> Arc<FnSignature> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue