1
1
# Symbolic Type References
2
2
3
- * Symbolic type references* are compact represenations containing the
3
+ * Symbolic type references* are compact representations containing the
4
4
minimum amount of information about type relationships primarily for the
5
5
purposes of reflection.
6
6
7
7
## Encoding
8
8
9
- Thees are encoded with a mostly textual mangling. Single characters
9
+ These are encoded with a mostly textual mangling. Single characters
10
10
denote the start of a mangling node but 32-bit integers can also be
11
11
directly embedded.
12
12
@@ -16,7 +16,7 @@ typeref-symbol ::= prefix typeref
16
16
typeref ::= 'b' relative-offset-to-name // Builtin type
17
17
typeref ::= 'n' relative-offset-to-metadata // Internal nominal type
18
18
typeref ::= 'N' relative-offset-to-name // External nominal type
19
- typeref ::= 'g' relative-offset-to-metadata count typeref-list // Internal nound generic type
19
+ typeref ::= 'g' relative-offset-to-metadata count typeref-list // Internal bound generic type
20
20
typeref ::= 'G' relative-offset-to-name count typeref-list // External bound generic type
21
21
typeref ::= '?' index depth // Generic parameter
22
22
typeref ::= 't' num-elements typeref-list // Tuple type
@@ -25,7 +25,7 @@ typeref ::= 'p' has-class-constrained-flag? count protocol-list // Protocol com
25
25
typeref ::= 'm' typeref // Metatype
26
26
typeref ::= 'e' count protocol-list // Existential metatype
27
27
28
- has-class-constrainged -flag ::= 'c'
28
+ has-class-constrained -flag ::= 'c'
29
29
30
30
func-representation ::= 't' // Thin
31
31
func-representation ::= 'T' // Thick
0 commit comments