Open bclothier opened 4 years ago
Note, this refactoring has a tech debt refactor pending - I blocked it in Max' PR because I have a branch with UI & other tweaks to this feature... but I need to get back to it.
I'll wrap up these overdue changes and then this bug can be addressed.
Rubberduck version information Version 2.5.0.3853 OS: Microsoft Windows NT 10.0.17763.0, x64 Host Product: Microsoft Office x64 Host Version: 16.0.12430.20288 Host Executable: MSACCESS.EXE
Description It seems that
Declare
statements are not handled correctly and get pushed down into middle of module when adding new property statements as a result of the refactoring.To Reproduce Start with this code in a class module:
Refactor as shown:
We end up with this uncompilable code:
Expected behavior The refactoring should ensure that it actually insert at the end of the code declaration section and that should factor in
Declare
statements which are technically a part of the declaration section.