use crate::prelude::*;
use biome_css_syntax::AnyCssContainerAndCombinableQuery;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyCssContainerAndCombinableQuery;
impl FormatRule<AnyCssContainerAndCombinableQuery> for FormatAnyCssContainerAndCombinableQuery {
type Context = CssFormatContext;
fn fmt(
&self,
node: &AnyCssContainerAndCombinableQuery,
f: &mut CssFormatter,
) -> FormatResult<()> {
match node {
AnyCssContainerAndCombinableQuery::AnyCssContainerQueryInParens(node) => {
node.format().fmt(f)
}
AnyCssContainerAndCombinableQuery::CssContainerAndQuery(node) => node.format().fmt(f),
}
}
}