--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/template/parenthesis.js --- # Input ```js // "ArrowFunctionExpression" (() => {})``; // "AssignmentExpression" (b = c)``; // "AwaitExpression" async function f() { (await b)``; } // "BinaryExpression" (b + c)``; // "CallExpression" b()``; // "ClassExpression" (class {})``; // "ConditionalExpression" (b ? c : d)``; // "FunctionExpression" (function() {})``; // "LogicalExpression" (b || c)``; // "MemberExpression" b.c``; // "NewExpression" (new B())``; // "ObjectExpression" ({})``; // "SequenceExpression" (b, c)``; // "TaggedTemplateExpression" (``)``; // "UnaryExpression" (void b)``; // "UpdateExpression" (++b)``; // "YieldExpression" function* d() { (yield 1)``; } ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -16,7 +16,7 @@ b()``; // "ClassExpression" -(class {}``); +(class {})``; // "ConditionalExpression" (b ? c : d)``; @@ -34,7 +34,7 @@ new B()``; // "ObjectExpression" -({}``); +({})``; // "SequenceExpression" (b, c)``; ``` # Output ```js // "ArrowFunctionExpression" (() => {})``; // "AssignmentExpression" (b = c)``; // "AwaitExpression" async function f() { (await b)``; } // "BinaryExpression" (b + c)``; // "CallExpression" b()``; // "ClassExpression" (class {})``; // "ConditionalExpression" (b ? c : d)``; // "FunctionExpression" (function () {})``; // "LogicalExpression" (b || c)``; // "MemberExpression" b.c``; // "NewExpression" new B()``; // "ObjectExpression" ({})``; // "SequenceExpression" (b, c)``; // "TaggedTemplateExpression" ````; // "UnaryExpression" (void b)``; // "UpdateExpression" (++b)``; // "YieldExpression" function* d() { (yield 1)``; } ```