Signature

public struct Signature : Hashable, Codable
extension Function.Signature: ExpressibleBySyntax
extension Function.Signature: CustomStringConvertible

A function signature.

  • The function inputs.

    Declaration

    Swift

    public let input: [Parameter]
  • The function output, if any.

    Declaration

    Swift

    public let output: String?
  • The throws or rethrows keyword, if any.

    Declaration

    Swift

    public let throwsOrRethrowsKeyword: String?

ExpressibleBySyntax

  • Creates an instance initialized with the given syntax node.

    Declaration

    Swift

    public init(_ node: FunctionSignatureSyntax)

CustomStringConvertible

  • Declaration

    Swift

    public var description: String { get }