use correct resolver for expressions
This commit is contained in:
parent
ebb0c377f0
commit
a347208bb2
1 changed files with 1 additions and 3 deletions
|
@ -274,9 +274,7 @@ impl SourceAnalyzer {
|
||||||
None
|
None
|
||||||
});
|
});
|
||||||
SourceAnalyzer {
|
SourceAnalyzer {
|
||||||
resolver: def_with_body
|
resolver: resolver_for_node(db, file_id, node),
|
||||||
.map(|it| it.resolver(db))
|
|
||||||
.unwrap_or_else(|| resolver_for_node(db, file_id, node)),
|
|
||||||
body_source_map: def_with_body.map(|it| it.body_source_map(db)),
|
body_source_map: def_with_body.map(|it| it.body_source_map(db)),
|
||||||
infer: def_with_body.map(|it| it.infer(db)),
|
infer: def_with_body.map(|it| it.infer(db)),
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue