CompileTimeValue
public enum CompileTimeValue : Hashable, Sendable
extension CompileTimeValue: CustomStringConvertible
A value computed at compile-time.
-
A type.
Declaration
Swift
case type(AnyType) -
A term.
Declaration
Swift
case term(AnyTerm) -
Properties about the representation of self.
Declaration
Swift
public var flags: ValueFlags { get } -
The payload of
.type.Declaration
Swift
public var asType: AnyType? { get } -
The payload of
.term.Declaration
Swift
public var asTerm: AnyTerm? { get } -
trueiff self is in canonical form.Declaration
Swift
public var isCanonical: Bool { get } -
trueifselfis aTypeVariable.Declaration
Swift
public var isTypeVariable: Bool { get } -
The payload of
.compilerKnownas an instance ofT.Declaration
Swift
public func asCompilerKnown<T>(_: T.Type) -> T? -
Declaration
Swift
public var description: String { get }
View on GitHub