@@ -930,6 +930,12 @@ class TypeChecker final {
930
930
// / tree.
931
931
static Expr *foldSequence (SequenceExpr *expr, DeclContext *dc);
932
932
933
+ private:
934
+ // / Given an pre-folded expression, find LHS from the expression if a binary
935
+ // / operator \c name appended to the expression.
936
+ static Expr *findLHS (DeclContext *DC, Expr *E, Identifier name);
937
+
938
+ public:
933
939
// / Type check the given expression.
934
940
// /
935
941
// / \param expr The expression to type-check, which will be modified in
@@ -1326,11 +1332,6 @@ class TypeChecker final {
1326
1332
// /
1327
1333
// / Routines that perform name lookup.
1328
1334
// /
1329
- // / During type checking, these routines should be used instead of
1330
- // / \c MemberLookup and \c UnqualifiedLookup, because these routines will
1331
- // / lazily introduce declarations and (FIXME: eventually) perform recursive
1332
- // / type-checking that the AST-level lookup routines don't.
1333
- // /
1334
1335
// / @{
1335
1336
1336
1337
// / Perform unqualified name lookup at the given source location
@@ -1405,9 +1406,6 @@ class TypeChecker final {
1405
1406
Identifier name,
1406
1407
SourceLoc nameLoc);
1407
1408
1408
- // / Given an pre-folded expression, find LHS from the expression if a binary
1409
- // / operator \c name appended to the expression.
1410
- static Expr *findLHS (DeclContext *DC, Expr *E, Identifier name);
1411
1409
// / Check whether the given declaration can be written as a
1412
1410
// / member of the given base type.
1413
1411
static bool isUnsupportedMemberTypeAccess (Type type, TypeDecl *typeDecl);
0 commit comments