Initial implementation of generics for method calls

This commit is contained in:
Marcus Klaas de Vries 2019-01-25 22:18:13 +01:00
parent 3bd47c0285
commit 67e40e431a
2 changed files with 72 additions and 13 deletions

View file

@ -424,6 +424,10 @@ impl Function {
self.id.module(db)
}
pub fn name(&self, db: &impl HirDatabase) -> Name {
self.signature(db).name.clone()
}
pub fn body_syntax_mapping(&self, db: &impl HirDatabase) -> Arc<BodySyntaxMapping> {
db.body_syntax_mapping(*self)
}