//! Generated file, do not edit by hand, see `xtask/codegen`

use crate::generated::FormatJsAnyObjectBindingPatternMember;
use crate::prelude::*;
use rome_js_syntax::JsAnyObjectBindingPatternMember;
impl FormatRule<JsAnyObjectBindingPatternMember> for FormatJsAnyObjectBindingPatternMember {
    type Context = JsFormatContext;
    fn fmt(node: &JsAnyObjectBindingPatternMember, f: &mut JsFormatter) -> FormatResult<()> {
        match node {
            JsAnyObjectBindingPatternMember::JsObjectBindingPatternProperty(node) => {
                node.format().fmt(f)
            }
            JsAnyObjectBindingPatternMember::JsObjectBindingPatternRest(node) => {
                node.format().fmt(f)
            }
            JsAnyObjectBindingPatternMember::JsObjectBindingPatternShorthandProperty(node) => {
                node.format().fmt(f)
            }
            JsAnyObjectBindingPatternMember::JsIdentifierBinding(node) => node.format().fmt(f),
            JsAnyObjectBindingPatternMember::JsUnknownBinding(node) => node.format().fmt(f),
        }
    }
}
