aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/code_model_api.rs
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/code_model_api.rs')
-rw-r--r--crates/ra_hir/src/code_model_api.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs
index 9efd902fa..d668b883c 100644
--- a/crates/ra_hir/src/code_model_api.rs
+++ b/crates/ra_hir/src/code_model_api.rs
@@ -612,6 +612,16 @@ impl Static {
612 pub fn module(&self, db: &impl PersistentHirDatabase) -> Module { 612 pub fn module(&self, db: &impl PersistentHirDatabase) -> Module {
613 self.id.module(db) 613 self.id.module(db)
614 } 614 }
615
616 pub fn signature(&self, db: &impl HirDatabase) -> Arc<ConstSignature> {
617 db.static_signature(*self)
618 }
619
620 /// Builds a resolver for code inside this item.
621 pub fn resolver(&self, db: &impl HirDatabase) -> Resolver {
622 // take the outer scope...
623 self.module(db).resolver(db)
624 }
615} 625}
616 626
617impl Docs for Static { 627impl Docs for Static {