Skip to content

Commit 4240805

Browse files
authored
Merge pull request swiftlang#30448 from gribozavr/lexicon-parent-type
Added "parent type" to the lexicon
2 parents 9073eea + 5fb5c74 commit 4240805

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

docs/Lexicon.rst

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,19 @@ source code, tests, and commit messages. See also the `LLVM lexicon`_.
291291
overlays" feature, which is used to augment a module with additional
292292
functionality when it is imported alongside another module.
293293

294+
parent type
295+
The type in which a given declaration is nested. For example::
296+
297+
struct Outer {
298+
struct Inner {
299+
}
300+
}
301+
302+
`Outer` is the parent type of `Inner`.
303+
304+
Note that the terms "parent type" and "superclass" refer to completely
305+
different concepts.
306+
294307
PCH
295308
Precompiled header, a type of file ending in .pch. A precompiled header is
296309
like a precompiled module, in the sense that it's the same file format and

0 commit comments

Comments
 (0)