varPositional(_:annotation:)

Appends a variable positional parameter to the signature.

Declaration

func varPositional(
    _ name: String,
    annotation: (
        any Parsable
    )? = nil
) -> Signature

Parameters

  • name: The name of the parameter.

  • annotation: The annotation of the parameter.

Returns

A new signature with the variable positional parameter appended.