@@ -311,7 +311,7 @@ class ExprParentFinder : public ASTWalker {
311
311
};
312
312
313
313
// / Collect function (or subscript) members with the given \p name on \p baseTy.
314
- void collectPossibleCalleesByQualifiedLookup (
314
+ static void collectPossibleCalleesByQualifiedLookup (
315
315
DeclContext &DC, Type baseTy, DeclBaseName name,
316
316
SmallVectorImpl<FunctionTypeAndDecl> &candidates) {
317
317
@@ -358,7 +358,7 @@ void collectPossibleCalleesByQualifiedLookup(
358
358
359
359
// / Collect function (or subscript) members with the given \p name on
360
360
// / \p baseExpr expression.
361
- void collectPossibleCalleesByQualifiedLookup (
361
+ static void collectPossibleCalleesByQualifiedLookup (
362
362
DeclContext &DC, Expr *baseExpr, DeclBaseName name,
363
363
SmallVectorImpl<FunctionTypeAndDecl> &candidates) {
364
364
ConcreteDeclRef ref = nullptr ;
@@ -374,7 +374,7 @@ void collectPossibleCalleesByQualifiedLookup(
374
374
}
375
375
376
376
// / For the given \c callExpr, collect possible callee types and declarations.
377
- bool collectPossibleCalleesForApply (
377
+ static bool collectPossibleCalleesForApply (
378
378
DeclContext &DC, ApplyExpr *callExpr,
379
379
SmallVectorImpl<FunctionTypeAndDecl> &candidates) {
380
380
auto *fnExpr = callExpr->getFn ();
@@ -421,7 +421,7 @@ bool collectPossibleCalleesForApply(
421
421
422
422
// / For the given \c subscriptExpr, collect possible callee types and
423
423
// / declarations.
424
- bool collectPossibleCalleesForSubscript (
424
+ static bool collectPossibleCalleesForSubscript (
425
425
DeclContext &DC, SubscriptExpr *subscriptExpr,
426
426
SmallVectorImpl<FunctionTypeAndDecl> &candidates) {
427
427
if (subscriptExpr->hasDecl ()) {
@@ -441,8 +441,8 @@ bool collectPossibleCalleesForSubscript(
441
441
// / Get index of \p CCExpr in \p Args. \p Args is usually a \c TupleExpr
442
442
// / or \c ParenExpr.
443
443
// / \returns \c true if success, \c false if \p CCExpr is not a part of \p Args.
444
- bool getPositionInArgs (DeclContext &DC, Expr *Args, Expr *CCExpr,
445
- unsigned &Position, bool &HasName) {
444
+ static bool getPositionInArgs (DeclContext &DC, Expr *Args, Expr *CCExpr,
445
+ unsigned &Position, bool &HasName) {
446
446
if (isa<ParenExpr>(Args)) {
447
447
HasName = false ;
448
448
Position = 0 ;
0 commit comments