use crate::prelude::*;
use biome_js_syntax::AnyJsLiteralExpression;
#[derive(Debug, Clone, Default)]
pub(crate) struct FormatAnyJsLiteralExpression;
impl FormatRule<AnyJsLiteralExpression> for FormatAnyJsLiteralExpression {
type Context = JsFormatContext;
fn fmt(&self, node: &AnyJsLiteralExpression, f: &mut JsFormatter) -> FormatResult<()> {
match node {
AnyJsLiteralExpression::JsStringLiteralExpression(node) => node.format().fmt(f),
AnyJsLiteralExpression::JsNumberLiteralExpression(node) => node.format().fmt(f),
AnyJsLiteralExpression::JsBigintLiteralExpression(node) => node.format().fmt(f),
AnyJsLiteralExpression::JsBooleanLiteralExpression(node) => node.format().fmt(f),
AnyJsLiteralExpression::JsNullLiteralExpression(node) => node.format().fmt(f),
AnyJsLiteralExpression::JsRegexLiteralExpression(node) => node.format().fmt(f),
}
}
}