aboutsummaryrefslogtreecommitdiff
path: root/crates/ra_hir/src
diff options
context:
space:
mode:
Diffstat (limited to 'crates/ra_hir/src')
-rw-r--r--crates/ra_hir/src/adt.rs13
1 files changed, 3 insertions, 10 deletions
diff --git a/crates/ra_hir/src/adt.rs b/crates/ra_hir/src/adt.rs
index df609b8d7..ec6a10353 100644
--- a/crates/ra_hir/src/adt.rs
+++ b/crates/ra_hir/src/adt.rs
@@ -111,9 +111,9 @@ pub(crate) struct EnumVariantId(RawId);
111impl_arena_id!(EnumVariantId); 111impl_arena_id!(EnumVariantId);
112 112
113#[derive(Debug, Clone, PartialEq, Eq)] 113#[derive(Debug, Clone, PartialEq, Eq)]
114pub struct EnumVariantData { 114pub(crate) struct EnumVariantData {
115 pub(crate) name: Option<Name>, 115 pub(crate) name: Option<Name>,
116 pub(crate) variant_data: Arc<VariantData>, 116 variant_data: Arc<VariantData>,
117} 117}
118 118
119#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)] 119#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
@@ -129,7 +129,7 @@ pub struct StructFieldData {
129 129
130/// Fields of an enum variant or struct 130/// Fields of an enum variant or struct
131#[derive(Debug, Clone, PartialEq, Eq)] 131#[derive(Debug, Clone, PartialEq, Eq)]
132pub struct VariantData(VariantDataInner); 132pub(crate) struct VariantData(VariantDataInner);
133 133
134#[derive(Debug, Clone, PartialEq, Eq)] 134#[derive(Debug, Clone, PartialEq, Eq)]
135enum VariantDataInner { 135enum VariantDataInner {
@@ -175,11 +175,4 @@ impl VariantData {
175 }; 175 };
176 VariantData(inner) 176 VariantData(inner)
177 } 177 }
178
179 // pub(crate) fn get_field_type_ref(&self, field_name: &Name) -> Option<&TypeRef> {
180 // self.fields()
181 // .iter()
182 // .find(|f| f.name == *field_name)
183 // .map(|f| &f.type_ref)
184 // }
185} 178}