You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Oct 17, 2021. It is now read-only.
Creates an instance initialized with the given syntax node.
publicinit(_ node: TypealiasDeclSyntax)
Properties
attributes
The declaration attributes.
letattributes: [Attribute]
modifiers
The declaration modifiers.
letmodifiers: [Modifier]
keyword
The declaration keyword ("typealias").
letkeyword: String
name
The type alias name.
letname: String
initializedType
The initialized type, if any.
letinitializedType: String?
genericParameters
The generic parameters for the declaration.
letgenericParameters: [GenericParameter]
For example,
the following typealias declaration
has a single generic parameter
whose name is "T" and type is "Comparable":
typealiasSortableArray<T: Comparable>=Array<T>
genericRequirements
The generic parameter requirements for the declaration.
letgenericRequirements: [GenericRequirement]
For example,
the following typealias declaration
has a single requirement
that its generic parameter identified as "T"
conforms to the type identified as "Numeric":
typealiasArrayOfNumbers<T>=Array<T> where T: Numeric