FuncSignature

struct FuncSignature

A bodyless function-shaped requirement.

Protocol methods and initializer requirements share this representation. It retains declared parameters, effects, generics, constraints, return type, and source extent but no executable block.

Properties

let name: String

The source-spelled requirement name.

let params: [Parameter]

The parameters in declaration order.

let generics: [GenericDecl]

The generic parameters in declaration order.

let where_clause: WhereClause?

The declaration constraints, when present.

let start: Int

The inclusive starting byte offset in the source.

let end: Int

The exclusive ending byte offset in the source.