Файли
openidea/crates
audichuang 40fb4923e6 fix(editor): keep Rearrange Code from moving a generator under a field without a semicolon (#8039)
Rearrange Code could move a method starting with *, in or instanceof to the top of a class right below a field with no semicolon, where it continued the field's initializer (x = 1 then *gen() {} reads as 1 * gen()). The same happened when the only semicolon ending the field sat on a comment line that moved with the method. Such classes are now left alone; a semicolon or static block above, or a first method that stays first, still lets the class rearrange.

Co-authored-by: audichuang <[email protected]>
2026-12-04 22:08:27 +08:00
..