MutatorProcedureIfReturn

@objcMembers public class MutatorProcedureIfReturn: NSObject

A mutator for dynamically modifying an if/return block (which is to be used exclusively inside of a procedure definition block).

  • The target block that will be mutated

    Declaration

    Swift

    public weak var block: Block?
  • The associated layout of the mutator

    Declaration

    Swift

    public weak var layout: MutatorLayout?
  • Flag determining if this block should accept a return input value.

    Declaration

    Swift

    public var hasReturnValue: Bool = true
  • Returns a list of inputs that have been created by this mutator on self.block, sorted in ascending order of their index within self.block.inputs.

    Declaration

    Swift

    public func sortedMutatorInputs() -> [Input]

    Return Value

    A sorted list of inputs created by this mutator on self.block.