Swift 3 migrator adds space before comma in where conversion

Originator:keithbsmiley
Number:rdar://28653727 Date Originated:06-Oct-2016 10:04
Status:Resolved Resolved:Xcode 8.1 beta 3
Product:Developer Tools Product Version:Xcode 8
Classification:Other Bug Reproducible:Always
 
Summary:
When you migrate Swift 2.x -> Swift 3.0 code in Xcode 8, if and guard statements using `where` are migrated to use a comma instead. Currently the migrator replaces where without removing the leading space, leaving you with `something , something`. Instead it should also remove the leading space.

Steps to Reproduce:
1. Create a project, change it to use Swift 2.3
2. Add an if statement with a where clause
3. Migrate it to Swift 3

Expected Results:
where is replaced with a comma without a leading space

Actual Results:
The space before where is maintained.

Version:
Xcode 8

Notes:

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!