mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[SourceKit] Teach range-info request to recognize single declaration and multi-statements. (#5672)
This commit is contained in:
@@ -1097,7 +1097,7 @@ static void resolveRange(SwiftLangSupport &Lang,
|
||||
Result.RangeKind = Lang.getUIDForRangeKind(Info.Kind);
|
||||
Result.RangeContent = Info.Content;
|
||||
switch (Info.Kind) {
|
||||
case RangeKind::Expression: {
|
||||
case RangeKind::SingleExpression: {
|
||||
SmallString<64> SS;
|
||||
llvm::raw_svector_ostream OS(SS);
|
||||
Info.Ty.print(OS);
|
||||
@@ -1105,6 +1105,8 @@ static void resolveRange(SwiftLangSupport &Lang,
|
||||
Receiver(Result);
|
||||
return;
|
||||
}
|
||||
case RangeKind::SingleDecl:
|
||||
case RangeKind::MultiStatement:
|
||||
case RangeKind::SingleStatement: {
|
||||
Receiver(Result);
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user