mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-30 22:01:37 +00:00
Store DB in SourceBinder
This commit is contained in:
parent
ccfe53376a
commit
a71bb70f0a
3 changed files with 33 additions and 32 deletions
|
@ -105,7 +105,7 @@ impl SourceAnalyzer {
|
|||
node: InFile<&SyntaxNode>,
|
||||
offset: Option<TextUnit>,
|
||||
) -> SourceAnalyzer {
|
||||
crate::source_binder::SourceBinder::default().analyze(db, node, offset)
|
||||
crate::source_binder::SourceBinder::new(db).analyze(node, offset)
|
||||
}
|
||||
|
||||
pub(crate) fn new_for_body(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue