SwiftSemantics Documentation Beta

Structure Associated​Type

public struct AssociatedType: Declaration, Hashable, Codable

An associated type declaration.

%3 AssociatedType AssociatedType Hashable Hashable AssociatedType->Hashable ExpressibleBySyntax ExpressibleBySyntax AssociatedType->ExpressibleBySyntax Declaration Declaration AssociatedType->Declaration Codable Codable AssociatedType->Codable CustomStringConvertible CustomStringConvertible AssociatedType->CustomStringConvertible

Conforms To

Declaration

A Swift declaration.

ExpressibleBySyntax

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

Codable
CustomStringConvertible
Hashable

Initializers

init(_:​)

public init(_ node: AssociatedtypeDeclSyntax)

Creates an instance initialized with the given syntax node.

Properties

attributes

let attributes: [Attribute]

The declaration attributes.

modifiers

let modifiers: [Modifier]

The declaration modifiers.

keyword

let keyword: String

The declaration keyword ("associatedtype").

name

let name: String

The associated type name.

description

var description: String