@@ -925,16 +925,6 @@ class TypeChecker final {
925
925
// / struct or class.
926
926
static void addImplicitConstructors (NominalTypeDecl *typeDecl);
927
927
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
- // / @{
938
928
private:
939
929
Optional<Type> boolType;
940
930
@@ -1335,6 +1325,17 @@ class TypeChecker final {
1335
1325
static Type deriveTypeWitness (DeclContext *DC, NominalTypeDecl *nominal,
1336
1326
AssociatedTypeDecl *assocType);
1337
1327
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
+
1338
1339
// / Perform unqualified name lookup at the given source location
1339
1340
// / within a particular declaration context.
1340
1341
// /
@@ -1371,10 +1372,6 @@ class TypeChecker final {
1371
1372
NameLookupOptions options
1372
1373
= defaultMemberLookupOptions);
1373
1374
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
-
1378
1375
// / Look up a member type within the given type.
1379
1376
// /
1380
1377
// / This routine looks for member types with the given name within the
@@ -1414,6 +1411,9 @@ class TypeChecker final {
1414
1411
// / Given an pre-folded expression, find LHS from the expression if a binary
1415
1412
// / operator \c name appended to the expression.
1416
1413
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);
1417
1417
1418
1418
// / @}
1419
1419
0 commit comments