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
nameon the argument.Declaration
Swift
case property(name: String) -
Replace with method call with name
nameon the first argument, passing the remaining arguments with the specifiedargumentLabels. Ifreversedistrue, 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)
View on GitHub
Install in Dash