TypeAliasType
public struct TypeAliasType : TypeProtocol
extension TypeAliasType: CustomStringConvertible
A type alias.
-
The declaration that introduces the alias.
Declaration
Swift
public let decl: TypeAliasDecl.ID -
The name of the alias.
Declaration
Swift
public let name: Incidental<String> -
The target of the alias.
Declaration
Swift
public let aliasee: Incidental<AnyType> -
A set of flags describing recursive properties.
Declaration
Swift
public let flags: ValueFlags -
Creates a type alias resolving to
aliaseeand declared bydinast.Declaration
Swift
public init(aliasing aliasee: AnyType, declaredBy d: TypeAliasDecl.ID, in ast: AST) -
Creates an instance with the given properties.
Declaration
Swift
private init(decl: TypeAliasDecl.ID, name: String, aliasee: AnyType) -
The transitive aliasee of this alias.
If
aliasee.valueis another aliasa, this property is equal toa.resolved. Otherwise, it is equal toaliasee.value. In either case,resolvedis not necessarily canonical.Declaration
Swift
public var resolved: AnyType { get } -
Applies
TypeProtocol.transform(mutating:_:)onmand the types that are part ofself.Declaration
Swift
public func transformParts<M>( mutating m: inout M, _ transformer: (inout M, AnyType) -> TypeTransformAction ) -> Self -
Declaration
Swift
public var description: String { get }
View on GitHub