Store DB in SourceBinder

This commit is contained in:
Aleksey Kladov 2020-01-14 16:55:35 +01:00
parent ccfe53376a
commit a71bb70f0a
3 changed files with 33 additions and 32 deletions

View file

@ -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(