mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CodeCompletion] Split result delivery into a result colleciton and consumer phase
This will allow us to run two different completion kinds and deliver results from both of them. Also: Compute a unified type context for global lookup. Previously, we always used the expected type context of the last lookup. But really, we should be considering all possible types from all constraint system solutions when computing code completion results from the cache.
This commit is contained in:
@@ -174,7 +174,7 @@ static void toDisplayString(CodeCompletionResult *Result,
|
||||
}
|
||||
|
||||
namespace swift {
|
||||
class REPLCodeCompletionConsumer : public SimpleCachingCodeCompletionConsumer {
|
||||
class REPLCodeCompletionConsumer : public CodeCompletionConsumer {
|
||||
REPLCompletions &Completions;
|
||||
|
||||
public:
|
||||
|
||||
Reference in New Issue
Block a user