aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src/semantics
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src/semantics')
-rw-r--r--crates/ra_hir/src/semantics/source_to_def.rs7
1 files changed, 6 insertions, 1 deletions
diff --git a/crates/ra_hir/src/semantics/source_to_def.rs b/crates/ra_hir/src/semantics/source_to_def.rs
index 303610dc4..884b535b2 100644
--- a/crates/ra_hir/src/semantics/source_to_def.rs
+++ b/crates/ra_hir/src/semantics/source_to_def.rs
@@ -94,13 +94,18 @@ impl<DB: HirDatabase> SourceToDefCtx<'_, &'_ DB> {
94 ) -> Option<TypeAliasId> { 94 ) -> Option<TypeAliasId> {
95 self.to_def(src, keys::TYPE_ALIAS) 95 self.to_def(src, keys::TYPE_ALIAS)
96 } 96 }
97 //TODO: tuple field
98 pub(super) fn record_field_to_def( 97 pub(super) fn record_field_to_def(
99 &mut self, 98 &mut self,
100 src: InFile<ast::RecordFieldDef>, 99 src: InFile<ast::RecordFieldDef>,
101 ) -> Option<StructFieldId> { 100 ) -> Option<StructFieldId> {
102 self.to_def(src, keys::RECORD_FIELD) 101 self.to_def(src, keys::RECORD_FIELD)
103 } 102 }
103 pub(super) fn tuple_field_to_def(
104 &mut self,
105 src: InFile<ast::TupleFieldDef>,
106 ) -> Option<StructFieldId> {
107 self.to_def(src, keys::TUPLE_FIELD)
108 }
104 pub(super) fn enum_variant_to_def( 109 pub(super) fn enum_variant_to_def(
105 &mut self, 110 &mut self,
106 src: InFile<ast::EnumVariant>, 111 src: InFile<ast::EnumVariant>,