Type Aliases
The following type aliases are available globally.
-
A trait composition (e.g.,
Copyable & Equatable).Note
A trait composition does not denote a type.Declaration
Swift
public typealias TraitComposition = [NameExpr.ID] -
An identifier.
Declaration
Swift
public typealias Identifier = String -
A mapping from AST node to
Propertyvalue.Declaration
Swift
public typealias ASTProperty<Property> = [AnyNodeID : Property] -
A mapping from expression to
Propertyvalue.Declaration
Swift
public typealias DeclProperty<Value> = [AnyDeclID : Value] -
A mapping from expression to
Propertyvalue.Declaration
Swift
public typealias ExprProperty<Value> = [AnyExprID : Value] -
A mapping from pattern to
Propertyvalue.Declaration
Swift
public typealias PatternProperty<Value> = [AnyPatternID : Value]
-
A function that parses an instance of
Tby consuming a prefix oftokens, or returnsnilif such instance cannot be parsed.Note
a prefix oftokensmay have been consumed even if the function returnsnil.Declaration
Swift
private typealias BuiltinFunctionParser<T> = @Sendable (_ tokens: inout ArraySlice<Substring>) -> T? -
A path relative to some record type, identifying a field or sub-field of that record, or the empty path denoting the identity.
Given a path
p,p[i]denotes the index of a field in the object identified by the pathp[..<i]. An empty path can be used relative to any type, including non-records.For example, relative to a type
T = {foo: A, bar: {baz: B, ham: C}}:[0]denotesfoo,[1, 0]denotesbar.baz, and[]denotes the wholeTrecord.
Declaration
Swift
public typealias RecordPath = [Int] -
A map from name expression to its referred declaration.
Declaration
Swift
public typealias BindingMap = [NameExpr.ID : DeclReference] -
A closure reporting the diagnostics of a goal’s failure into
d, usingmto reify types and reading the outcome of other goals fromo.Declaration
Swift
private typealias DiagnoseFailure = ( _ d: inout DiagnosticSet, _ m: SubstitutionMap, _ o: OutcomeMap ) -> Void -
The identity of a gaol in an instance of
ConstraintSystem.Declaration
Swift
private typealias GoalIdentity = Int -
A map from goal to its outcome.
Declaration
Swift
private typealias OutcomeMap = [Outcome?] -
Undocumented
Declaration
Swift
typealias ConstraintSet = CustomWitnessedSet<ConstraintHashableWitness> -
A set of rewriting rules describing the requirements of a generic signature.
Declaration
Swift
typealias RequirementSystem = RewritingSystem<RequirementTerm> -
A rule in a requirement rewriting system.
Declaration
Swift
typealias RequirementRule = RewritingRule<RequirementTerm>
View on GitHub
Type Aliases Reference