feat(printer) Print Argument (#1280)

This commit is contained in:
Cameron 2023-11-14 01:50:30 +00:00 committed by GitHub
parent 232b93ba41
commit 7182cc6ebe
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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),
}
}
}