You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: expression_child.rs
    path of file: ./repos/tools/crates/rome_js_formatter/src/jsx/auxiliary
    
    the code of the file until where you have to start completion: use crate::jsx::attribute::expression_attribute_value::should_inline_jsx_expression;
use crate::prelude::*;
use crate::prelude::{format_args, write};

use crate::utils::AnyJsBinaryLikeExpression;
use rome_formatter::{CstFormatContext, FormatResult};
use rome_js_syntax::{AnyJsExpression, JsxExpressionChild, JsxExpressionChildFields};

#[derive(Debug, Clone, Default)]
pub struct FormatJsxExpressionChild;

impl FormatNodeRule<JsxExpressionChild> for FormatJsxExpressionChild {
    fn fmt_fields(&self, node: &JsxExpressionChild, f: &mut JsFormatter) -> FormatResult<()> {
        let JsxExpressionChildFields {
            l_curly_token,
            expression,
            r_curly_token,
        } = node.as_fields();

        match expression {
            Some(expression) => {
                let comments = f.context().comments();
                let is_conditional_or_binary =
  
    
    fn fmt_fields(&self, node: &JsxExpressionChild, f: &mut JsFormatter) -> FormatResult<()> {
        let JsxExpressionChildFields {
            l_curly_token,
            expression,
            r_curly_token,
        } = node.as_fields();

        match expression {
            Some(expression) => {
                let comments = f.context().comments();
                let is_conditional_or_binary =
                    matches!(expression, AnyJsExpression::JsConditionalExpression(_))
                        || AnyJsBinaryLikeExpression::can_cast(expression.syntax().kind());

                let should_inline = !comments.has_comments(expression.syntax())
                    && (is_conditional_or_binary
                        || should_inline_jsx_expression(&expression, comments));

                if should_inline {
                    write!(
                        f,
                        [
                            l_curly_token.format(),
                            expression.format(),
                            line_suffix_boundary(),
                            r_curly_token.format()
                        ]
                    )
                } else {
                    write!(
                        f,
                        [group(&format_args![
                            l_curly_token.format(),
                            soft_block_indent(&expression.format()),
                            line_suffix_boundary(),
                            r_curly_token.format()
                        ])]
                    )
                }
            }
            None => {
                let has_line_comment = f
                    .comments()
                    .leading_dangling_trailing_comments(node.syntax())
                    .any(|comment| comment.kind().is_line());

                write!(f, [l_curly_token.format()])?;

                if has_line_comment {
                    write!(
                        f,
                        [
                            format_dangling_comments(node.syntax()).with_block_indent(),
                            hard_line_break()
                        ]
                    )?;
                } else {
                    write!(f, [format_dangling_comments(node.syntax())])?;
                }

                write!(f, [r_curly_token.format()])
            }
        }
    }