Move the EmacsField enum since it has nothing to do with ElispFact.

This commit is contained in:
Tom Alexander 2023-10-06 13:32:39 -04:00
parent 1b603f3a05
commit 7af18e2312
Signed by: talexander
GPG Key ID: D3A179C9A53C0EDE
3 changed files with 7 additions and 7 deletions

View File

@ -13,8 +13,8 @@ use super::util::get_property_boolean;
use super::util::get_property_numeric;
use super::util::get_property_quoted_string;
use super::util::get_property_unquoted_atom;
use crate::compare::elisp_fact::EmacsField;
use crate::compare::macros::compare_properties;
use crate::compare::macros::EmacsField;
use crate::types::AngleLink;
use crate::types::AstNode;
use crate::types::BabelCall;

View File

@ -550,9 +550,3 @@ impl<'s> ElispFact<'s> for PlainText<'s> {
"plain-text".into()
}
}
#[derive(Debug)]
pub(crate) enum EmacsField<'s> {
Required(&'s str),
Optional(&'s str),
}

View File

@ -1,3 +1,9 @@
#[derive(Debug)]
pub(crate) enum EmacsField<'s> {
Required(&'s str),
Optional(&'s str),
}
/// Create iterators for ast nodes where it only has to iterate over children
macro_rules! compare_properties {
($emacs:expr, $($emacs_field:expr, $rust_value:expr, $compare_fn: ident),+) => {