|
14 | 14 | //
|
15 | 15 | //===----------------------------------------------------------------------===//
|
16 | 16 |
|
17 |
| -#include "swift/Subsystems.h" |
18 |
| -#include "TypeChecker.h" |
19 |
| -#include "TypeCheckObjC.h" |
20 |
| -#include "TypeCheckType.h" |
21 | 17 | #include "CodeSynthesis.h"
|
22 | 18 | #include "MiscDiagnostics.h"
|
23 |
| -#include "swift/AST/ASTWalker.h" |
| 19 | +#include "TypeCheckObjC.h" |
| 20 | +#include "TypeCheckType.h" |
| 21 | +#include "TypeChecker.h" |
24 | 22 | #include "swift/AST/ASTVisitor.h"
|
| 23 | +#include "swift/AST/ASTWalker.h" |
25 | 24 | #include "swift/AST/Attr.h"
|
26 | 25 | #include "swift/AST/DiagnosticSuppression.h"
|
27 | 26 | #include "swift/AST/ExistentialLayout.h"
|
|
37 | 36 | #include "swift/AST/Type.h"
|
38 | 37 | #include "swift/AST/TypeCheckRequests.h"
|
39 | 38 | #include "swift/Basic/Defer.h"
|
40 |
| -#include "swift/Basic/Statistic.h" |
41 | 39 | #include "swift/Basic/STLExtras.h"
|
| 40 | +#include "swift/Basic/Statistic.h" |
| 41 | +#include "swift/Parse/IDEInspectionCallbacks.h" |
42 | 42 | #include "swift/Parse/Lexer.h"
|
43 |
| -#include "swift/Sema/IDETypeChecking.h" |
44 |
| -#include "swift/Sema/ConstraintSystem.h" |
45 | 43 | #include "swift/Sema/CompletionContextFinder.h"
|
| 44 | +#include "swift/Sema/ConstraintSystem.h" |
| 45 | +#include "swift/Sema/IDETypeChecking.h" |
46 | 46 | #include "swift/Strings.h"
|
| 47 | +#include "swift/Subsystems.h" |
47 | 48 | #include "llvm/ADT/DenseMap.h"
|
48 | 49 | #include "llvm/ADT/PointerUnion.h"
|
49 | 50 | #include "llvm/ADT/SmallSet.h"
|
@@ -565,7 +566,7 @@ bool TypeChecker::typeCheckForCodeCompletion(
|
565 | 566 | {
|
566 | 567 | auto range = target.getSourceRange();
|
567 | 568 | if (range.isInvalid() ||
|
568 |
| - !Context.SourceMgr.rangeContainsIDEInspectionTarget(range)) |
| 569 | + !containsIDEInspectionTarget(range, Context.SourceMgr)) |
569 | 570 | return false;
|
570 | 571 | }
|
571 | 572 |
|
|
0 commit comments