Skip to content

Commit c6d65d4

Browse files
committed
[docs] Lexicon: "contextual type" and "interface type".
Now all we have to do is change 'getType' to 'getContextualType' or 'getTypeInContext'.
1 parent f8bb9fa commit c6d65d4

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

docs/Lexicon.rst

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ source code, tests, and commit messages. See also the `LLVM lexicon`_.
3737
protocol. Represented in the compiler by the ProtocolConformance type at
3838
the AST level. See also `witness table`.
3939

40+
contextual type
41+
The type of a value or declaration from inside a generic context. This type
42+
may contain `archetypes <archetype>` and cannot be used directly from
43+
outside the context. Compare with `interface type`.
44+
4045
DI (definite initialization / definitive initialization)
4146
The feature that no uninitialized variables, constants, or properties will
4247
be read by a program, or the analysis pass that operates on SIL to
@@ -55,6 +60,11 @@ source code, tests, and commit messages. See also the `LLVM lexicon`_.
5560
iff
5661
"if and only if". This term comes from mathematics.
5762

63+
interface type
64+
The type of a value or declaration outside its generic context. These types
65+
can be compared across declarations but cannot be used directly from within
66+
the context. Compare with `contextual type`.
67+
5868
IUO (implicitly unwrapped optional)
5969
A type like Optional, but it implicitly converts to its wrapped type. If
6070
the value is ``nil`` during such a conversion, the program traps just as

0 commit comments

Comments
 (0)