Files
swift-mirror/lib/IDE/CMakeLists.txt
Alex Hoppen a8dd6819b5 [IDE] Implement completion-like cursor info for ValueDecls
This brings up the ability to compute cursor info results using the completion-like type checking paradigm, which an reuse ASTContexts and doesn’t need to type check the entire file.

For now, the new implementation only supports cursor info on `ValueDecl`s (not on references) because they were easiest to implement. More cursor info kinds are coming soon.

At the moment, we only run the new implementation in a verification mode: It is only invoked in assert toolchains and when run, we check that the results are equivalent to the old implementation. Once more cursor info kinds are implemented and if the SourceKit stress tester doesn’t find any verification issues, we can enable the new implementation, falling back to the old implementation if the new one didn’t produce any results.
2022-12-08 14:39:14 +01:00

50 lines
1.1 KiB
CMake

add_swift_host_library(swiftIDE STATIC
AfterPoundExprCompletion.cpp
APIDigesterData.cpp
ArgumentCompletion.cpp
CodeCompletion.cpp
CodeCompletionCache.cpp
CodeCompletionConsumer.cpp
CodeCompletionContext.cpp
CodeCompletionDiagnostics.cpp
CodeCompletionResult.cpp
CodeCompletionResultBuilder.cpp
CodeCompletionResultPrinter.cpp
CodeCompletionResultType.cpp
CodeCompletionString.cpp
CodeCompletionStringPrinter.cpp
CommentConversion.cpp
CompletionLookup.cpp
CompletionOverrideLookup.cpp
ConformingMethodList.cpp
CursorInfo.cpp
ExprCompletion.cpp
ExprContextAnalysis.cpp
Formatting.cpp
FuzzyStringMatcher.cpp
IDERequests.cpp
IDETypeChecking.cpp
ImportDepth.cpp
KeyPathCompletion.cpp
ModuleInterfacePrinting.cpp
PostfixCompletion.cpp
REPLCodeCompletion.cpp
SelectedOverloadInfo.cpp
SourceEntityWalker.cpp
SwiftSourceDocInfo.cpp
SyntaxModel.cpp
TypeCheckCompletionCallback.cpp
TypeContextInfo.cpp
UnresolvedMemberCompletion.cpp
Utils.cpp
)
target_link_libraries(swiftIDE PRIVATE
swiftAST
swiftClangImporter
swiftDriver
swiftParse
swiftSema)
set_swift_llvm_is_available(swiftIDE)