LegacyFunctionRewriteStrategy

public enum LegacyFunctionRewriteStrategy : Sendable

Strategy to apply when rewriting a legacy function call.

  • Replace with equality check between the two arguments.

    Declaration

    Swift

    case equal
  • Replace with property access with name name on the argument.

    Declaration

    Swift

    case property(name: String)
  • Replace with method call with name name on the first argument, passing the remaining arguments with the specified argumentLabels. If reversed is true, the order of arguments is reversed, that is, the function is called on the second argument, passing the first argument as parameter.

    Declaration

    Swift

    case function(name: String, argumentLabels: [String], reversed: Bool = false)