more progress on macro

This commit is contained in:
Evan Almloff committed 2022-12-03 22:26:37 -06:00
1 parent 29a61b1855
commit 0e17199e7a
4 files changed
+209 -176

No files matched your search

+4 -2
View File
@@ -1,7 +1,9 @@
use std::hash::BuildHasherDefault;
pub use node_ref::NodeMask;
pub use passes::AnyPass;
pub use passes::{
AnyPass, DownwardPass, MemberMask, NodePass, Pass, PassId, PassReturn, UpwardPass,
};
use rustc_hash::FxHasher;
pub use tree::NodeId;
@@ -18,7 +20,7 @@ pub mod utils;
pub type RealNodeId = NodeId;
pub(crate) type FxDashMap<K, V> = dashmap::DashMap<K, V, BuildHasherDefault<FxHasher>>;
pub(crate) type FxDashSet<K> = dashmap::DashSet<K, BuildHasherDefault<FxHasher>>;
pub(crate) type SendAnyMap = anymap::Map<dyn anymap::any::Any + Send + Sync + 'static>;
pub type SendAnyMap = anymap::Map<dyn anymap::any::Any + Send + Sync + 'static>;
/// Used in derived state macros
#[derive(Eq, PartialEq)]
+2 -2
View File
@@ -111,10 +111,10 @@ impl DirtyNodeStates {
}
#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy, PartialOrd, Ord)]
pub struct PassId(u64);
pub struct PassId(pub u64);
#[derive(Debug, PartialEq, Eq, Hash, Clone, Copy, Default)]
pub struct MemberMask(u64);
pub struct MemberMask(pub u64);
impl MemberMask {
pub fn overlaps(&self, other: Self) -> bool {