diff options
Diffstat (limited to 'crates/ra_hir/src/code_model_api.rs')
-rw-r--r-- | crates/ra_hir/src/code_model_api.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/crates/ra_hir/src/code_model_api.rs b/crates/ra_hir/src/code_model_api.rs index 94a08aa63..2ac05c836 100644 --- a/crates/ra_hir/src/code_model_api.rs +++ b/crates/ra_hir/src/code_model_api.rs | |||
@@ -134,7 +134,7 @@ impl Module { | |||
134 | 134 | ||
135 | /// Topmost parent of this module. Every module has a `crate_root`, but some | 135 | /// Topmost parent of this module. Every module has a `crate_root`, but some |
136 | /// might be missing `krate`. This can happen if a module's file is not included | 136 | /// might be missing `krate`. This can happen if a module's file is not included |
137 | /// in the module tree of any target in Cargo.toml. | 137 | /// in the module tree of any target in `Cargo.toml`. |
138 | pub fn crate_root(&self, db: &impl PersistentHirDatabase) -> Module { | 138 | pub fn crate_root(&self, db: &impl PersistentHirDatabase) -> Module { |
139 | self.crate_root_impl(db) | 139 | self.crate_root_impl(db) |
140 | } | 140 | } |
@@ -351,7 +351,7 @@ impl Enum { | |||
351 | db.type_for_def((*self).into()) | 351 | db.type_for_def((*self).into()) |
352 | } | 352 | } |
353 | 353 | ||
354 | // TODO move to a more general type | 354 | // TODO: move to a more general type |
355 | /// Builds a resolver for type references inside this struct. | 355 | /// Builds a resolver for type references inside this struct. |
356 | pub fn resolver(&self, db: &impl HirDatabase) -> Resolver { | 356 | pub fn resolver(&self, db: &impl HirDatabase) -> Resolver { |
357 | // take the outer scope... | 357 | // take the outer scope... |
@@ -495,7 +495,7 @@ impl Function { | |||
495 | db.generic_params((*self).into()) | 495 | db.generic_params((*self).into()) |
496 | } | 496 | } |
497 | 497 | ||
498 | // TODO move to a more general type for 'body-having' items | 498 | // TODO: move to a more general type for 'body-having' items |
499 | /// Builds a resolver for code inside this item. | 499 | /// Builds a resolver for code inside this item. |
500 | pub fn resolver(&self, db: &impl HirDatabase) -> Resolver { | 500 | pub fn resolver(&self, db: &impl HirDatabase) -> Resolver { |
501 | // take the outer scope... | 501 | // take the outer scope... |