--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/function/function_expression.js --- # Input ```js (function() {}).length typeof (function() {}); export default (function() {})(); (function() {})()``; (function() {})``; new (function() {}); (function() {}); a = function f() {} || b; (function() {} && a); a + function() {}; new function() {}; ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1,4 +1,4 @@ -(function () {}.length); +(function () {}).length; typeof function () {}; export default (function () {})(); (function () {})()``; @@ -6,6 +6,6 @@ new (function () {})(); (function () {}); a = function f() {} || b; -(function () {} && a); +(function () {}) && a; a + function () {}; new (function () {})(); ``` # Output ```js (function () {}).length; typeof function () {}; export default (function () {})(); (function () {})()``; (function () {})``; new (function () {})(); (function () {}); a = function f() {} || b; (function () {}) && a; a + function () {}; new (function () {})(); ```