use super::*;
#[derive(Clone, Debug, PartialEq, Eq, Hash)]
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
pub struct PatternCondition {
pub condition: ExpressionNode,
pub span: Range<u32>,
}
impl PrettyPrint for PatternCondition {
fn build<'a>(&self, allocator: &'a PrettyProvider<'a>) -> PrettyTree<'a> {
allocator.keyword("when").append(allocator.space()).append(self.condition.build(allocator))
}
}