diff options
author | Aleksey Kladov <[email protected]> | 2020-10-20 14:38:11 +0100 |
---|---|---|
committer | Aleksey Kladov <[email protected]> | 2020-10-20 14:38:11 +0100 |
commit | af4e75533f2c071330e740e2fa94b131e3a2b538 (patch) | |
tree | 6f517a43814751d8b1ea478b5ed03baf57b4f0b5 /crates/hir/src | |
parent | be762ccccd5a86632e60351518528d078785a3e2 (diff) |
Rename declaration_name -> display_name
Declaration names sounds like a name of declaration -- something you
can use for analysis. It empathically isn't, and is just a label
displayed in various UI. It's important not to confuse the two, least
we accidentally mix semantics with UI (I believe, there's already a
case of this in the FamousDefs at least).
Diffstat (limited to 'crates/hir/src')
-rw-r--r-- | crates/hir/src/code_model.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/hir/src/code_model.rs b/crates/hir/src/code_model.rs index b65be4fe1..64f3fbe31 100644 --- a/crates/hir/src/code_model.rs +++ b/crates/hir/src/code_model.rs | |||
@@ -103,8 +103,8 @@ impl Crate { | |||
103 | db.crate_graph()[self.id].edition | 103 | db.crate_graph()[self.id].edition |
104 | } | 104 | } |
105 | 105 | ||
106 | pub fn declaration_name(self, db: &dyn HirDatabase) -> Option<CrateName> { | 106 | pub fn display_name(self, db: &dyn HirDatabase) -> Option<CrateName> { |
107 | db.crate_graph()[self.id].declaration_name.clone() | 107 | db.crate_graph()[self.id].display_name.clone() |
108 | } | 108 | } |
109 | 109 | ||
110 | pub fn query_external_importables( | 110 | pub fn query_external_importables( |