Allow space at the beginning of a refactored method

Originator:guillaume.campagna
Number:rdar://10036266 Date Originated:Sun, 28 Aug 2011 15:01:15 GMT
Status:Open Resolved:
Product:Developer Tools Product Version:4.2 (4D5163b)
Classification:Other Bug Reproducible:Always
 
Summary: When using the "Extract" refactoring tool, you should be able to add a space at the begging of the new method name.

Steps to Reproduce: Select the part you want to extract. Use the extract refactoring tool. Change the proposed name to something like this : 

- (void) addMainItems:(NSMenu *)appMenu

Expected Results: The method declaration is valid, so it should work.

Actual Results: The method declaration is not accepted, is ask to remove the space like this : 

- (void)addMainItems:(NSMenu *)appMenu

Regression:

Notes: That's my coding style, that's why I care! :)

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!