aboutsummaryrefslogtreecommitdiff
path: root/crates/ide/src/display/short_label.rs
diff options
context:
space:
mode:
authorJonas Schievink <[email protected]>2021-01-20 19:05:48 +0000
committerJonas Schievink <[email protected]>2021-01-20 19:05:48 +0000
commit82146737acc74b2483f39f1dd0ae4dfffcfda824 (patch)
tree2f3c97e5f45a8579cc860dc9a57123dbb5302b8b /crates/ide/src/display/short_label.rs
parent7d5ed18c42c4ee80e776d04254d69750b70e14ba (diff)
Treat BlockExpr as a potential module origin
Diffstat (limited to 'crates/ide/src/display/short_label.rs')
-rw-r--r--crates/ide/src/display/short_label.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/crates/ide/src/display/short_label.rs b/crates/ide/src/display/short_label.rs
index b8e4cc181..7ac050473 100644
--- a/crates/ide/src/display/short_label.rs
+++ b/crates/ide/src/display/short_label.rs
@@ -53,6 +53,12 @@ impl ShortLabel for ast::SourceFile {
53 } 53 }
54} 54}
55 55
56impl ShortLabel for ast::BlockExpr {
57 fn short_label(&self) -> Option<String> {
58 None
59 }
60}
61
56impl ShortLabel for ast::TypeAlias { 62impl ShortLabel for ast::TypeAlias {
57 fn short_label(&self) -> Option<String> { 63 fn short_label(&self) -> Option<String> {
58 short_label_from_node(self, "type ") 64 short_label_from_node(self, "type ")