biome_css_formatter 0.5.7

Biome's CSS formatter
Documentation
//! This is a generated file. Don't modify it by hand! Run 'cargo codegen formatter' to re-generate the file.

use crate::prelude::*;
use biome_css_syntax::AnyCssValue;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyCssValue;
impl FormatRule<AnyCssValue> for FormatAnyCssValue {
    type Context = CssFormatContext;
    fn fmt(&self, node: &AnyCssValue, f: &mut CssFormatter) -> FormatResult<()> {
        match node {
            AnyCssValue::AnyCssDimension(node) => node.format().fmt(f),
            AnyCssValue::AnyCssFunction(node) => node.format().fmt(f),
            AnyCssValue::CssColor(node) => node.format().fmt(f),
            AnyCssValue::CssCustomIdentifier(node) => node.format().fmt(f),
            AnyCssValue::CssDashedIdentifier(node) => node.format().fmt(f),
            AnyCssValue::CssIdentifier(node) => node.format().fmt(f),
            AnyCssValue::CssNumber(node) => node.format().fmt(f),
            AnyCssValue::CssRatio(node) => node.format().fmt(f),
            AnyCssValue::CssString(node) => node.format().fmt(f),
        }
    }
}