Parameter

public struct Parameter : Sendable
extension Parameter: CustomStringConvertible

The possibly synthetic declaration of a parameter to a Hylo IR function.

  • The declaration of the parameter, if any.

    This property denotes either a parameter or a capture.

    Declaration

    Swift

    public let decl: AnyDeclID?
  • The type of the parameter.

    Declaration

    Swift

    public let type: ParameterType
  • Creates an instance with given properties.

    Declaration

    Swift

    init(decl: AnyDeclID?, type: ParameterType)
  • Creates an instance representing d, which is a capture with type t.

    Declaration

    Swift

    init(_ d: AnyDeclID, capturedAs t: AnyType)
  • Declaration

    Swift

    public var description: String { get }