12
12
13
13
#include " swift/IDE/ConformingMethodList.h"
14
14
#include " ExprContextAnalysis.h"
15
+ #include " ReadyForTypeCheckingCallback.h"
15
16
#include " swift/AST/ASTDemangler.h"
16
17
#include " swift/AST/ConformanceLookup.h"
17
18
#include " swift/AST/GenericEnvironment.h"
20
21
#include " swift/Basic/Assertions.h"
21
22
#include " swift/IDE/TypeCheckCompletionCallback.h"
22
23
#include " swift/Parse/IDEInspectionCallbacks.h"
23
- #include " swift/Sema/IDETypeChecking.h"
24
24
#include " swift/Sema/ConstraintSystem.h"
25
+ #include " swift/Sema/IDETypeChecking.h"
25
26
#include " clang/AST/Attr.h"
26
27
#include " clang/AST/Decl.h"
27
28
@@ -30,7 +31,7 @@ using namespace ide;
30
31
31
32
namespace {
32
33
class ConformingMethodListCallbacks : public CodeCompletionCallbacks ,
33
- public DoneParsingCallback {
34
+ public ReadyForTypeCheckingCallback {
34
35
ArrayRef<const char *> ExpectedTypeNames;
35
36
ConformingMethodListConsumer &Consumer;
36
37
SourceLoc Loc;
@@ -45,16 +46,16 @@ class ConformingMethodListCallbacks : public CodeCompletionCallbacks,
45
46
ConformingMethodListCallbacks (Parser &P,
46
47
ArrayRef<const char *> ExpectedTypeNames,
47
48
ConformingMethodListConsumer &Consumer)
48
- : CodeCompletionCallbacks(P), DoneParsingCallback( ),
49
- ExpectedTypeNames (ExpectedTypeNames), Consumer(Consumer) {}
49
+ : CodeCompletionCallbacks(P), ExpectedTypeNames(ExpectedTypeNames ),
50
+ Consumer (Consumer) {}
50
51
51
52
// Only handle callbacks for suffix completions.
52
53
// {
53
54
void completeDotExpr (CodeCompletionExpr *E, SourceLoc DotLoc) override ;
54
55
void completePostfixExpr (CodeCompletionExpr *E, bool hasSpace) override ;
55
56
// }
56
57
57
- void doneParsing (SourceFile *SrcFile) override ;
58
+ void readyForTypeChecking (SourceFile *SrcFile) override ;
58
59
};
59
60
60
61
void ConformingMethodListCallbacks::completeDotExpr (CodeCompletionExpr *E,
@@ -101,7 +102,7 @@ class ConformingMethodListCallback : public TypeCheckCompletionCallback {
101
102
ArrayRef<Result> getResults () const { return Results; }
102
103
};
103
104
104
- void ConformingMethodListCallbacks::doneParsing (SourceFile *SrcFile) {
105
+ void ConformingMethodListCallbacks::readyForTypeChecking (SourceFile *SrcFile) {
105
106
if (!CCExpr || !CCExpr->getBase ())
106
107
return ;
107
108
0 commit comments