mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 21:05:02 +00:00
reduce visibility
This commit is contained in:
parent
87ac5f5b36
commit
64d4f42558
1 changed files with 3 additions and 10 deletions
|
@ -111,9 +111,9 @@ pub(crate) struct EnumVariantId(RawId);
|
||||||
impl_arena_id!(EnumVariantId);
|
impl_arena_id!(EnumVariantId);
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct EnumVariantData {
|
pub(crate) struct EnumVariantData {
|
||||||
pub(crate) name: Option<Name>,
|
pub(crate) name: Option<Name>,
|
||||||
pub(crate) variant_data: Arc<VariantData>,
|
variant_data: Arc<VariantData>,
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
#[derive(Debug, Clone, Copy, PartialEq, Eq, Hash)]
|
||||||
|
@ -129,7 +129,7 @@ pub struct StructFieldData {
|
||||||
|
|
||||||
/// Fields of an enum variant or struct
|
/// Fields of an enum variant or struct
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
pub struct VariantData(VariantDataInner);
|
pub(crate) struct VariantData(VariantDataInner);
|
||||||
|
|
||||||
#[derive(Debug, Clone, PartialEq, Eq)]
|
#[derive(Debug, Clone, PartialEq, Eq)]
|
||||||
enum VariantDataInner {
|
enum VariantDataInner {
|
||||||
|
@ -175,11 +175,4 @@ impl VariantData {
|
||||||
};
|
};
|
||||||
VariantData(inner)
|
VariantData(inner)
|
||||||
}
|
}
|
||||||
|
|
||||||
// pub(crate) fn get_field_type_ref(&self, field_name: &Name) -> Option<&TypeRef> {
|
|
||||||
// self.fields()
|
|
||||||
// .iter()
|
|
||||||
// .find(|f| f.name == *field_name)
|
|
||||||
// .map(|f| &f.type_ref)
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue