SwiftSemantics Documentation Beta

Structure Function.​Signature

public struct Signature: Hashable, Codable

A function signature.

%3 Function.Signature Function.Signature CustomStringConvertible CustomStringConvertible Function.Signature->CustomStringConvertible Codable Codable Function.Signature->Codable ExpressibleBySyntax ExpressibleBySyntax Function.Signature->ExpressibleBySyntax Hashable Hashable Function.Signature->Hashable

Member Of

Function

A function declaration.

Conforms To

ExpressibleBySyntax

A type that can be initialized with a Swift syntax node.

Codable
CustomStringConvertible
Hashable

Initializers

init(_:​)

public init(_ node: FunctionSignatureSyntax)

Creates an instance initialized with the given syntax node.

Properties

input

let input: [Parameter]

The function inputs.

output

let output: String?

The function output, if any.

throws​OrRethrows​Keyword

let throwsOrRethrowsKeyword: String?

The throws or rethrows keyword, if any.

description

var description: String