Beginning update to compare_affiliated_keywords.
This commit is contained in:
parent
e352deb989
commit
909ccadfa1
@ -354,29 +354,34 @@ where
|
|||||||
let mut ret = Vec::new();
|
let mut ret = Vec::new();
|
||||||
let affiliated_keywords = rust.get_affiliated_keywords();
|
let affiliated_keywords = rust.get_affiliated_keywords();
|
||||||
for (rust_name, rust_value) in affiliated_keywords.keywords.iter() {
|
for (rust_name, rust_value) in affiliated_keywords.keywords.iter() {
|
||||||
// let emacs_property_name = format!(":{}", rust_name);
|
let emacs_property_name = format!(":{}", rust_name);
|
||||||
// match rust_value {
|
match rust_value {
|
||||||
// AffiliatedKeywordValue::SingleString(rust_value) => {
|
AffiliatedKeywordValue::SingleString(rust_value) => {
|
||||||
// let diff = compare_property_quoted_string(
|
let diff = compare_property_quoted_string(
|
||||||
// source,
|
source,
|
||||||
// emacs,
|
emacs,
|
||||||
// rust,
|
rust,
|
||||||
// emacs_property_name.as_str(),
|
emacs_property_name.as_str(),
|
||||||
// |_| Some(*rust_value),
|
|_| Some(*rust_value),
|
||||||
// )?;
|
)?;
|
||||||
// ret.push(diff);
|
ret.push(diff);
|
||||||
// }
|
}
|
||||||
// AffiliatedKeywordValue::ListOfStrings(rust_value) => {
|
AffiliatedKeywordValue::ListOfStrings(rust_value) => {
|
||||||
// let diff = compare_property_list_of_quoted_string(
|
let diff = compare_property_list_of_quoted_string(
|
||||||
// source,
|
source,
|
||||||
// emacs,
|
emacs,
|
||||||
// rust,
|
rust,
|
||||||
// emacs_property_name.as_str(),
|
emacs_property_name.as_str(),
|
||||||
// |_| Some(rust_value.iter()),
|
|_| Some(rust_value.iter()),
|
||||||
// )?;
|
)?;
|
||||||
// ret.push(diff);
|
ret.push(diff);
|
||||||
// }
|
}
|
||||||
// AffiliatedKeywordValue::ListOfListsOfObjects(rust_value) => {
|
AffiliatedKeywordValue::OptionalPair { optval, val } => {
|
||||||
|
// todo
|
||||||
|
}
|
||||||
|
AffiliatedKeywordValue::ObjectTree(_) => {
|
||||||
|
// todo
|
||||||
|
} // AffiliatedKeywordValue::ListOfListsOfObjects(rust_value) => {
|
||||||
// let diff = compare_property_list_of_list_of_list_of_ast_nodes(
|
// let diff = compare_property_list_of_list_of_list_of_ast_nodes(
|
||||||
// source,
|
// source,
|
||||||
// emacs,
|
// emacs,
|
||||||
@ -386,7 +391,7 @@ where
|
|||||||
// )?;
|
// )?;
|
||||||
// ret.push(diff);
|
// ret.push(diff);
|
||||||
// }
|
// }
|
||||||
// };
|
};
|
||||||
}
|
}
|
||||||
Ok(ret)
|
Ok(ret)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user