mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-02 12:59:12 +00:00
internal: port rust-analyzer to new Salsa
This commit is contained in:
parent
394374e769
commit
74620e64ec
161 changed files with 3075 additions and 2331 deletions
|
|
@ -16,7 +16,7 @@ use hir_expand::{name::Name, ExpandError, InFile};
|
|||
use la_arena::{Arena, ArenaMap};
|
||||
use rustc_hash::FxHashMap;
|
||||
use smallvec::SmallVec;
|
||||
use span::{Edition, MacroFileId, SyntaxContextData};
|
||||
use span::{Edition, MacroFileId, SyntaxContext};
|
||||
use syntax::{ast, AstPtr, SyntaxNodePtr};
|
||||
use triomphe::Arc;
|
||||
use tt::TextRange;
|
||||
|
|
@ -49,8 +49,9 @@ impl HygieneId {
|
|||
Self(ctx)
|
||||
}
|
||||
|
||||
pub(crate) fn lookup(self, db: &dyn DefDatabase) -> SyntaxContextData {
|
||||
db.lookup_intern_syntax_context(self.0)
|
||||
// FIXME: Inline this
|
||||
pub(crate) fn lookup(self) -> SyntaxContext {
|
||||
self.0
|
||||
}
|
||||
|
||||
pub(crate) fn is_root(self) -> bool {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue