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
3 changed files with 7 additions and 7 deletions

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),+) => {