--- source: crates/rome_formatter_test/src/snapshot_builder.rs info: test_file: js/bind-expressions/long_name_method.js --- # Input ```js class X { constructor() { this.testLongNameMethodAndSomethingElseLallala = ::this.testLongNameMethodAndSomethingElseLallala; } testLongNameMethodAndSomethingElseLallala() { return true; } } ``` # Prettier differences ```diff --- Prettier +++ Rome @@ -1,7 +1,7 @@ class X { constructor() { this.testLongNameMethodAndSomethingElseLallala = - ::this.testLongNameMethodAndSomethingElseLallala; + ::this.testLongNameMethodAndSomethingElseLallala } testLongNameMethodAndSomethingElseLallala() { ``` # Output ```js class X { constructor() { this.testLongNameMethodAndSomethingElseLallala = ::this.testLongNameMethodAndSomethingElseLallala } testLongNameMethodAndSomethingElseLallala() { return true; } } ``` # Errors ``` long_name_method.js:3:54 parse ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ × expected an expression, or an assignment but instead found ':' 1 │ class X { 2 │ constructor() { > 3 │ this.testLongNameMethodAndSomethingElseLallala = ::this.testLongNameMethodAndSomethingElseLallala; │ ^ 4 │ } 5 │ i Expected an expression, or an assignment here 1 │ class X { 2 │ constructor() { > 3 │ this.testLongNameMethodAndSomethingElseLallala = ::this.testLongNameMethodAndSomethingElseLallala; │ ^ 4 │ } 5 │ ```