Skip to content

Commit a4bd098

Browse files
committed
[Gardening] Reorganize the header a bit
Try to move the doc comments for the name lookup section so that it actually contains name-lookup-related things.
1 parent d586199 commit a4bd098

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/Sema/TypeChecker.h

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -925,16 +925,6 @@ class TypeChecker final {
925925
/// struct or class.
926926
static void addImplicitConstructors(NominalTypeDecl *typeDecl);
927927

928-
/// \name Name lookup
929-
///
930-
/// Routines that perform name lookup.
931-
///
932-
/// During type checking, these routines should be used instead of
933-
/// \c MemberLookup and \c UnqualifiedLookup, because these routines will
934-
/// lazily introduce declarations and (FIXME: eventually) perform recursive
935-
/// type-checking that the AST-level lookup routines don't.
936-
///
937-
/// @{
938928
private:
939929
Optional<Type> boolType;
940930

@@ -1335,6 +1325,17 @@ class TypeChecker final {
13351325
static Type deriveTypeWitness(DeclContext *DC, NominalTypeDecl *nominal,
13361326
AssociatedTypeDecl *assocType);
13371327

1328+
/// \name Name lookup
1329+
///
1330+
/// Routines that perform name lookup.
1331+
///
1332+
/// During type checking, these routines should be used instead of
1333+
/// \c MemberLookup and \c UnqualifiedLookup, because these routines will
1334+
/// lazily introduce declarations and (FIXME: eventually) perform recursive
1335+
/// type-checking that the AST-level lookup routines don't.
1336+
///
1337+
/// @{
1338+
13381339
/// Perform unqualified name lookup at the given source location
13391340
/// within a particular declaration context.
13401341
///
@@ -1371,10 +1372,6 @@ class TypeChecker final {
13711372
NameLookupOptions options
13721373
= defaultMemberLookupOptions);
13731374

1374-
/// Check whether the given declaration can be written as a
1375-
/// member of the given base type.
1376-
static bool isUnsupportedMemberTypeAccess(Type type, TypeDecl *typeDecl);
1377-
13781375
/// Look up a member type within the given type.
13791376
///
13801377
/// This routine looks for member types with the given name within the
@@ -1414,6 +1411,9 @@ class TypeChecker final {
14141411
/// Given an pre-folded expression, find LHS from the expression if a binary
14151412
/// operator \c name appended to the expression.
14161413
static Expr *findLHS(DeclContext *DC, Expr *E, Identifier name);
1414+
/// Check whether the given declaration can be written as a
1415+
/// member of the given base type.
1416+
static bool isUnsupportedMemberTypeAccess(Type type, TypeDecl *typeDecl);
14171417

14181418
/// @}
14191419

0 commit comments

Comments
 (0)