refactor: narrow {,Unimplemented}DirectiveKind to pub(crate)

This commit is contained in:
Erich Gubler 2024-10-22 17:22:48 -04:00
parent 9c781d64d6
commit bdd923d3a7

View File

@ -6,7 +6,7 @@ pub mod enable_extension;
/// A parsed sentinel word indicating the type of directive to be parsed next.
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]
pub enum DirectiveKind {
pub(crate) enum DirectiveKind {
/// An [`enable_extension`].
Enable,
Unimplemented(UnimplementedDirectiveKind),
@ -49,7 +49,7 @@ impl DirectiveKind {
/// A [`DirectiveKind`] that is not yet implemented. See [`DirectiveKind::Unimplemented`].
#[derive(Clone, Copy, Debug, Hash, Eq, PartialEq)]
#[cfg_attr(test, derive(strum::EnumIter))]
pub enum UnimplementedDirectiveKind {
pub(crate) enum UnimplementedDirectiveKind {
Diagnostic,
Requires,
}