Use Local more
This commit is contained in:
@@ -195,14 +195,6 @@ impl SourceAnalyzer {
|
||||
Some(self.infer.as_ref()?[pat_id].clone())
|
||||
}
|
||||
|
||||
pub fn type_of_pat_by_id(
|
||||
&self,
|
||||
_db: &impl HirDatabase,
|
||||
pat_id: expr::PatId,
|
||||
) -> Option<crate::Ty> {
|
||||
Some(self.infer.as_ref()?[pat_id].clone())
|
||||
}
|
||||
|
||||
pub fn resolve_method_call(&self, call: &ast::MethodCallExpr) -> Option<Function> {
|
||||
let expr_id = self.expr_id(&call.clone().into())?;
|
||||
self.infer.as_ref()?.method_resolution(expr_id)
|
||||
|
||||
Reference in New Issue
Block a user