Commits

Doug Gregor committed 44e34850aea
Omit needless words: give initial Boolean parameters argument labels. When the first parameter of a function has Boolean type, try to create an argument label for it. We start with the (normally non-API) parameter name as the argument label, then try to match that against the end of the base name of the method to eliminate redundancy. Add a little magic, and here are some diffs: - func openUntitledDocumentAndDisplay(_: Bool) throws -> NSDocument + func openUntitledDocument(display _: Bool) throws -> NSDocument - func fontMenu(_: Bool) -> NSMenu? - func fontPanel(_: Bool) -> NSFontPanel? + func fontMenu(create _: Bool) -> NSMenu? + func fontPanel(create _: Bool) -> NSFontPanel? - func lockFocusFlipped(_: Bool) + func lockFocus(flipped _: Bool) - func rectForSearchTextWhenCentered(_: Bool) -> NSRect + func rectForSearchText(whenCentered _: Bool) -> NSRect - func dismissPreviewAnimated(_: Bool) - func dismissMenuAnimated(_: Bool) + func dismissPreview(animated _: Bool) + func dismissMenu(animated _: Bool) Swift SVN r32392