-
The type of the stream to which data is written.
Declaration
Swift
typealias Output = String -
The identity of a mangled symbol.
See moreDeclaration
Swift
private enum Symbol : Hashable -
The program defining the symbols being defined.
Declaration
Swift
private let program: TypedProgram -
A table mapping mangled strings to their position in the string lookup table.
Declaration
Swift
private var stringPosition: [String : Int] -
A table mapping mangled symbols to their position in the symbol lookup table.
Declaration
Swift
private var symbolPosition: [Symbol : Int] -
The innermost scope being mangled, if any.
Declaration
Swift
private var qualification: AnyScopeID? -
A table mapping known symbols to their reserved mangled identifier.
Declaration
Swift
private var reserved: [Symbol : ReservedSymbol] -
Creates an instance mangling symbols defined in
programs.Declaration
Swift
init(_ program: TypedProgram) -
Initializes the table of reserved symbols.
Declaration
Swift
private mutating func initializeReservedSymbols() -
Extends
self.reservedto associate the core type namednto the reserved symbols.Declaration
Swift
private mutating func registerReservedCoreType(_ n: String, as s: ReservedSymbol) -
Returns the mangled representation of
s.Declaration
Swift
mutating func mangled(type s: AnyType) -> Output -
Returns the mangled representation of
s.Declaration
Swift
mutating func mangled<T>(decl s: T) -> Output where T : DeclID -
Returns the mangled representation of
s -
Returns the mangled representation of
sDeclaration
Swift
mutating func mangled(table s: WitnessTable) -> Output -
Returns the mangled representation of
s, callingmangleto compute it.Declaration
-
Writes the mangled representation of
dtooutput.Declaration
Swift
private mutating func append<T>(decl d: T, to output: inout Output) where T : DeclID -
Writes the mangled representation of
dsans qualification tooutput.Declaration
Swift
private mutating func append<T>(unqualified d: T.ID, to output: inout Output) where T : SingleEntityDecl -
Writes the mangled representation of
dsans qualification tooutput.Declaration
Swift
private mutating func append(unqualified d: BindingDecl.ID, to output: inout Output) -
Writes the mangled qualification of
ntooutput.Declaration
Swift
private mutating func appendQualification<T>(of n: T, to output: inout Output) where T : NodeIDProtocol -
Writes the mangled representation of
stooutput.Declaration
Swift
private mutating func append(scope s: AnyScopeID, to output: inout Output) -
Writes the mangled representation of
dtooutput.Declaration
Swift
private mutating func append(anonymous d: AnyScopeID, to output: inout Output) -
Writes the mangled representation of
dtooutput.Declaration
Swift
private mutating func append(conformance d: ConformanceDecl.ID, to output: inout Output) -
Writes the mangled representation of
dtooutput.Declaration
Swift
private mutating func append(extension d: ExtensionDecl.ID, to output: inout Output) -
Writes the mangled representation of
dtooutput.Declaration
Swift
private mutating func append(function d: FunctionDecl.ID, to output: inout Output) -
Writes the mangled representation of
dtooutput.Declaration
Swift
private mutating func append(initializer d: InitializerDecl.ID, to output: inout Output) -
Writes the mangled representation of
dtooutput.Declaration
Swift
private mutating func append(methodDecl d: MethodDecl.ID, to output: inout Output) -
Writes the mangled representation of
dtooutput.Declaration
Swift
private mutating func append(methodImpl d: MethodImpl.ID, to output: inout Output) -
Writes the mangled representation of
dtooutput.Declaration
Swift
private mutating func append(subscriptDecl d: SubscriptDecl.ID, to output: inout Output) -
Writes the mangled representation of
utooutput.Declaration
Swift
private mutating func append(subscriptImpl d: SubscriptImpl.ID, to output: inout Output) -
Writes the mangled representation of
utooutput.Declaration
Swift
private mutating func append(translationUnit u: TranslationUnit.ID, to output: inout Output) -
Writes the mangled representation of
clausetooutput.Declaration
Swift
private mutating func append(whereClause clause: WhereClause, to output: inout Output) -
Writes the mangled representation of
ctooutput.Declaration
Swift
private mutating func append(constraint c: WhereClause.ConstraintExpr, to output: inout Output) -
Writes the mangled representation of
stooutput. -
Writes the mangled representation of
smonomorphized forargumentstooutput.Declaration
-
Writes the mangled representation of
ztooutput.Declaration
Swift
private mutating func append(specialization z: GenericArguments, to output: inout Output) -
Writes the mangled representation of
stooutput.Declaration
Swift
private mutating func append(synthesized s: SynthesizedFunctionDecl, to output: inout Output) -
Writes the mangled representation of
ktooutput.Declaration
Swift
private mutating func append( synthesizedKind k: SynthesizedFunctionDecl.Kind, to output: inout Output ) -
Writes the mangled representation of
stooutput.Declaration
Swift
private mutating func append(table s: WitnessTable, to output: inout Output) -
Writes the mangled representation of
stooutput.Declaration
Swift
private mutating func append(value s: CompileTimeValue, to output: inout Output) -
Writes the mangled representation of
symboltooutput.Declaration
Swift
mutating func append(term symbol: AnyTerm, to output: inout Output) -
Writes the mangled representation of
d‘s type tooutput.Declaration
Swift
private mutating func append<T>(typeOf d: T, to output: inout Output) where T : DeclID -
Writes the mangled representation of
e‘s type tooutput.Declaration
Swift
private mutating func append<T>(typeOf e: T, to output: inout Output) where T : ExprID -
Writes the mangled representation of
stooutput.Declaration
Swift
private mutating func append(type s: AnyType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(arrow t: ArrowType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(associatedType t: AssociatedTypeType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(boundGenericType t: BoundGenericType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(buffer t: BufferType, to output: inout Output) -
Writes the mangled representation of
ztooutput.Declaration
Swift
private mutating func append(builtin t: BuiltinType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(existential t: ExistentialType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append( genericTypeParameter t: GenericTypeParameterType, to output: inout Output ) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(method t: MethodType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(metatype t: MetatypeType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(parameter t: ParameterType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(product t: ProductType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(remote t: RemoteType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(subscript t: SubscriptType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(tuple t: TupleType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(trait t: TraitType, to output: inout Output) -
Writes the mangled representation of
ttooutput.Declaration
Swift
private mutating func append(union t: UnionType, to output: inout Output) -
Writes the mangled representation of
nametooutput.Declaration
Swift
private mutating func append(name: Name, to output: inout Output) -
Writes
stringtooutput, prefixed by its length encoded as a variable-length integer.Declaration
Swift
private mutating func append<T>(string: T, to output: inout Output) where T : StringProtocol -
Writes
vencoded as a variable-length integer tooutput.Declaration
Swift
private func append(integer v: Int, to output: inout Output) -
Writes the raw value of
vencoded as a base 64 digit tooutput.Declaration
Swift
private func append<T>(base64Digit v: T, to output: inout Output) where T : RawRepresentable, T.RawValue == UInt8 -
Writes
vencoded as a base 64 digit tooutput.Declaration
Swift
private func append(base64Didit v: UInt8, to output: inout Output) -
Writes
otooutput.Declaration
Swift
private func append(operator o: ManglingOperator, to output: inout Output) -
Writes the mangled representation of
items, callingappendItemto mangle each individual element tooutput.Declaration
-
Writes the mangled representation of
items, which is an unordered set, callingmangleItemto mangle each individual element.Declaration
-
If
sis reserved or has already been inserted in the symbol lookup table, writes a lookup reference to it and returnstrue. Otherwise, returnsfalse.Declaration
-
Writes a lookup reference to
sand returnstrueiffsis a reserved symbol. Otherwise, returnsfalsewithout modifyingoutput. -
Writes a lookup reference to
sand returnstrueiffsin the lookup table. Otherwise, returnsfalsewithout modifyingoutput.
View on GitHub