Skip to content

I20220110-1800

@jjohnstn jjohnstn tagged this 10 Jan 21:18
- modify ControlStatements.AddBlockOperation.rewriteAST() method
  to look for comments at end of control statement line and
  before the single statement that is the body to put in Block
- when there are comments to preserve, build the new block manually
  as string to prepend comments and then call createStringPlaceHolder()
  to create the Block
- fix CleanUpStressTest appropriately

Change-Id: Id86ec17098f48eca1f62b5e94d5ace46851535e7
Reviewed-on: https://git.eclipse.org/r/c/jdt/eclipse.jdt.ui/+/189407
Tested-by: JDT Bot <jdt-bot@eclipse.org>
Tested-by: Jeff Johnston <jjohnstn@redhat.com>
Reviewed-by: Jeff Johnston <jjohnstn@redhat.com>
Assets 2
Loading