mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-26 20:09:19 +00:00
internal: Rename AstDatabase to ExpandDatabase
This commit is contained in:
parent
9fca0a4afe
commit
9fb9ee3b6a
30 changed files with 161 additions and 148 deletions
|
@ -6,7 +6,7 @@ use std::{
|
|||
};
|
||||
|
||||
use crate::{
|
||||
db::AstDatabase,
|
||||
db::ExpandDatabase,
|
||||
hygiene::Hygiene,
|
||||
name::{known, Name},
|
||||
};
|
||||
|
@ -37,7 +37,11 @@ pub enum PathKind {
|
|||
}
|
||||
|
||||
impl ModPath {
|
||||
pub fn from_src(db: &dyn AstDatabase, path: ast::Path, hygiene: &Hygiene) -> Option<ModPath> {
|
||||
pub fn from_src(
|
||||
db: &dyn ExpandDatabase,
|
||||
path: ast::Path,
|
||||
hygiene: &Hygiene,
|
||||
) -> Option<ModPath> {
|
||||
convert_path(db, None, path, hygiene)
|
||||
}
|
||||
|
||||
|
@ -162,7 +166,7 @@ impl From<Name> for ModPath {
|
|||
}
|
||||
|
||||
fn convert_path(
|
||||
db: &dyn AstDatabase,
|
||||
db: &dyn ExpandDatabase,
|
||||
prefix: Option<ModPath>,
|
||||
path: ast::Path,
|
||||
hygiene: &Hygiene,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue