From 7182cc6ebe22cb255359d17cba166adb498f5036 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 14 Nov 2023 01:50:30 +0000 Subject: [PATCH] feat(printer) Print `Argument` (#1280) --- crates/oxc_prettier/src/format.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/crates/oxc_prettier/src/format.rs b/crates/oxc_prettier/src/format.rs index d4b07cabe..75c982afd 100644 --- a/crates/oxc_prettier/src/format.rs +++ b/crates/oxc_prettier/src/format.rs @@ -595,7 +595,10 @@ impl<'a> Format<'a> for CallExpression<'a> { impl<'a> Format<'a> for Argument<'a> { fn format(&self, p: &mut Prettier<'a>) -> Doc<'a> { - Doc::Line + match self { + Self::Expression(expr) => expr.format(p), + Self::SpreadElement(expr) => expr.format(p), + } } }