Migration to modern ObjC subscripting syntax should replace `removeObjectForKey:` with `= nil`

Originator:adigitalknight
Number:rdar://25617791 Date Originated:
Status:Open Resolved:
Product:Developer Tools Product Version:
Classification:Enhancement Reproducible:Always
 
Summary:
Feature is:
Xcode -> Edit -> Convert -> To Modern Objective-C Syntax... -> ObjC subscripting

Enhancement desired is to support rewriting `removeObjectForKey:` to the following modern syntax: `dictionary[key] = nil;`

Steps to Reproduce:
1. Input this line in your code:
[[NSMutableDictionary dictionary] removeObjectForKey:@"foo"];

2. Use: Xcode -> Edit -> Convert -> To Modern Objective-C Syntax... -> ObjC subscripting

Expected Results:
Line of code is expected to become:
[NSMutableDictionary dictionary][@"foo"] = nil;

Actual Results:
Line of code is unchanged.

Version:
Xcode Version 7.3 (7D175)

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!