Skip to content

Commit d0cf2e4

Browse files
author
Simon Barinka
committed
[SourceKit] Fix formatting issues
1 parent e32a20a commit d0cf2e4

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

test/SourceKit/CursorInfo/cursor_stdlib.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,6 @@ let dictNonCost = [1:2, 3:d]
244244
// CHECK-OBJ-LITERAL-NEXT: AppKit
245245
// CHECK-OBJ-LITERAL-NEXT: SYSTEM
246246

247-
248247
// RUN: %sourcekitd-test_plain -req=cursor -pos=27:18 %s -- %s -sdk %sdk | %FileCheck -check-prefix=CHECK-ARRAY1 %s
249248
// CHECK-ARRAY1: source.lang.swift.ref.function.constructor
250249
// CHECK-ARRAY1-NEXT: init(arrayLiteral:)

tools/SourceKit/lib/SwiftLang/SwiftSourceDocInfo.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1671,7 +1671,7 @@ static void resolveCursor(
16711671
case CursorInfoKind::ExprStart:
16721672
case CursorInfoKind::StmtStart: {
16731673
// If code under cursor is literal expression returns Expr,
1674-
// otherwise nullptr
1674+
// otherwise nullptr.
16751675
auto tryGetLiteralExpr = [](auto CI) -> Expr * {
16761676
auto *ExprInfo = dyn_cast<ResolvedExprStartCursorInfo>(CI);
16771677
if (!ExprInfo || !ExprInfo->getTrailingExpr()) {
@@ -1700,7 +1700,7 @@ static void resolveCursor(
17001700
Data.AvailableActions = Actions;
17011701
}
17021702

1703-
// Handle literal expression
1703+
// Handle literal expression.
17041704
if (auto *LitExpr = tryGetLiteralExpr(CursorInfo)) {
17051705
bool Success = addCursorInfoForLiteral(Data, LitExpr, Lang, CompInvok,
17061706
CursorInfo->getLoc(),

0 commit comments

Comments
 (0)