Commits

Rintaro Ishizaki committed ba2e4e144fd
[Fix-it] In fixItAvailableAttrRename, handle the case args is TupleShuffleExpr (#3040) Also, handle the ParenExpr is trailing closure case. Fix-it used to add `fn: ` label before trailing closure: // (tuple_shuffle_expr (paren_expr trailing-closure)) case: @available(*, unavailable, renamed: "bar(fn:)") func foo(closure: () -> Int) {} foo { 0 } // (paren_expr trailing-closure) case: @available(*, unavailable, renamed: "bar(fn:)") func foo(_: () -> Int) {} foo { 0 } // (tuple_shuffle_expr (tuple_expr trailing-closure)) case: @available(*, unavailable, renamed: "bar(x:fn:)") func oldFunc6(_ x: Int, y: @noescape () -> Int) { } foo(0) { 1 }