mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[RangeInfo] Using the underlying token array reference to represent the content of a range under selection. (#11106)
Comparing to CharSourceRange, token stream is a better way because we can preserve comment information at the start of the range. Needed for rdar://33437855
This commit is contained in:
@@ -1355,7 +1355,7 @@ static void resolveRange(SwiftLangSupport &Lang,
|
||||
ASTInvok->applyTo(CompInvok);
|
||||
RangeInfo Result;
|
||||
Result.RangeKind = Lang.getUIDForRangeKind(Info.Kind);
|
||||
Result.RangeContent = Info.Content.str();
|
||||
Result.RangeContent = Info.getContent().str();
|
||||
switch (Info.Kind) {
|
||||
case RangeKind::SingleExpression: {
|
||||
SmallString<64> SS;
|
||||
|
||||
Reference in New Issue
Block a user