varKeyword(_:annotation:)

Appends a variable keyword parameter to the signature.

Declaration

func varKeyword(
    _ 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 keyword parameter appended.