Move the EmacsField enum since it has nothing to do with ElispFact.
This commit is contained in:
parent
1b603f3a05
commit
7af18e2312
@ -13,8 +13,8 @@ use super::util::get_property_boolean;
|
|||||||
use super::util::get_property_numeric;
|
use super::util::get_property_numeric;
|
||||||
use super::util::get_property_quoted_string;
|
use super::util::get_property_quoted_string;
|
||||||
use super::util::get_property_unquoted_atom;
|
use super::util::get_property_unquoted_atom;
|
||||||
use crate::compare::elisp_fact::EmacsField;
|
|
||||||
use crate::compare::macros::compare_properties;
|
use crate::compare::macros::compare_properties;
|
||||||
|
use crate::compare::macros::EmacsField;
|
||||||
use crate::types::AngleLink;
|
use crate::types::AngleLink;
|
||||||
use crate::types::AstNode;
|
use crate::types::AstNode;
|
||||||
use crate::types::BabelCall;
|
use crate::types::BabelCall;
|
||||||
|
@ -550,9 +550,3 @@ impl<'s> ElispFact<'s> for PlainText<'s> {
|
|||||||
"plain-text".into()
|
"plain-text".into()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Debug)]
|
|
||||||
pub(crate) enum EmacsField<'s> {
|
|
||||||
Required(&'s str),
|
|
||||||
Optional(&'s str),
|
|
||||||
}
|
|
||||||
|
@ -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
|
/// Create iterators for ast nodes where it only has to iterate over children
|
||||||
macro_rules! compare_properties {
|
macro_rules! compare_properties {
|
||||||
($emacs:expr, $($emacs_field:expr, $rust_value:expr, $compare_fn: ident),+) => {
|
($emacs:expr, $($emacs_field:expr, $rust_value:expr, $compare_fn: ident),+) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user