diff options
Diffstat (limited to 'crates/ra_hir/src/code_model_api.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index f13a6b37a..660edf006 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs | |||
@@ -450,10 +450,6 @@ impl DefWithBody { | |||
450 | db.infer(*self) | 450 | db.infer(*self) |
451 | } | 451 | } |
452 | 452 | ||
453 | pub fn body_source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> { | ||
454 | db.body_with_source_map(*self).1 | ||
455 | } | ||
456 | |||
457 | pub fn body(&self, db: &impl HirDatabase) -> Arc<Body> { | 453 | pub fn body(&self, db: &impl HirDatabase) -> Arc<Body> { |
458 | db.body_hir(*self) | 454 | db.body_hir(*self) |
459 | } | 455 | } |
@@ -523,7 +519,7 @@ impl Function { | |||
523 | self.signature(db).name.clone() | 519 | self.signature(db).name.clone() |
524 | } | 520 | } |
525 | 521 | ||
526 | pub fn body_source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> { | 522 | pub(crate) fn body_source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> { |
527 | db.body_with_source_map((*self).into()).1 | 523 | db.body_with_source_map((*self).into()).1 |
528 | } | 524 | } |
529 | 525 | ||
@@ -606,7 +602,7 @@ impl Const { | |||
606 | db.infer((*self).into()) | 602 | db.infer((*self).into()) |
607 | } | 603 | } |
608 | 604 | ||
609 | pub fn body_source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> { | 605 | pub(crate) fn body_source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> { |
610 | db.body_with_source_map((*self).into()).1 | 606 | db.body_with_source_map((*self).into()).1 |
611 | } | 607 | } |
612 | 608 | ||
@@ -679,7 +675,7 @@ impl Static { | |||
679 | db.infer((*self).into()) | 675 | db.infer((*self).into()) |
680 | } | 676 | } |
681 | 677 | ||
682 | pub fn body_source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> { | 678 | pub(crate) fn body_source_map(&self, db: &impl HirDatabase) -> Arc<BodySourceMap> { |
683 | db.body_with_source_map((*self).into()).1 | 679 | db.body_with_source_map((*self).into()).1 |
684 | } | 680 | } |
685 | } | 681 | } |