11 lines
337 B
Rust
11 lines
337 B
Rust
use {crate::tree::ToplevelData, jay_criteria::crit_graph::CritFixedRootCriterion};
|
|
|
|
pub struct TlmMatchFloating(pub bool);
|
|
|
|
fixed_root_criterion!(TlmMatchFloating, floating);
|
|
|
|
impl CritFixedRootCriterion<ToplevelData> for TlmMatchFloating {
|
|
fn matches(&self, data: &ToplevelData) -> bool {
|
|
data.parent_is_float.get()
|
|
}
|
|
}
|