mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[CodeCompletion] Introduce 'NotApplicable' type relation
For keywords, and overrides.
This commit is contained in:
@@ -502,12 +502,15 @@ bool SwiftToSourceKitCompletionAdapter::handleResult(
|
||||
Info.SemanticContext = CCCtxOtherModule; break;
|
||||
}
|
||||
|
||||
static UIdent CCTypeRelNotApplicable("source.codecompletion.typerelation.notapplicable");
|
||||
static UIdent CCTypeRelUnrelated("source.codecompletion.typerelation.unrelated");
|
||||
static UIdent CCTypeRelInvalid("source.codecompletion.typerelation.invalid");
|
||||
static UIdent CCTypeRelConvertible("source.codecompletion.typerelation.convertible");
|
||||
static UIdent CCTypeRelIdentical("source.codecompletion.typerelation.identical");
|
||||
|
||||
switch (Result->getExpectedTypeRelation()) {
|
||||
case CodeCompletionResult::NotApplicable:
|
||||
Info.TypeRelation = CCTypeRelNotApplicable; break;
|
||||
case CodeCompletionResult::Unrelated:
|
||||
Info.TypeRelation = CCTypeRelUnrelated; break;
|
||||
case CodeCompletionResult::Invalid:
|
||||
|
||||
Reference in New Issue
Block a user