Skip to content

Commit 086f479

Browse files
authored
Merge pull request #2002 from ahoppen/remove-semicolons
Remove superfluous semicolons
2 parents c40a786 + 5efdd19 commit 086f479

File tree

8 files changed

+13
-13
lines changed

8 files changed

+13
-13
lines changed

Sources/BuildServerProtocol/Messages/TaskProgressNotification.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ public struct TaskProgressNotification: NotificationType {
2424
public static let method: String = "build/taskProgress"
2525

2626
/// Unique id of the task with optional reference to parent task id
27-
public var taskId: TaskId;
27+
public var taskId: TaskId
2828

2929
/// A unique identifier generated by the client to identify this request.
3030
public var originId: String?

Sources/BuildSystemIntegration/SplitShellCommand.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ fileprivate struct WindowsCommandParser {
249249
} else if currentCharacter == "\"" {
250250
str += parseQuoted()
251251
} else if currentCharacter == #"\"# {
252-
assert(!parsingCommandName, "else we'd have treated it as a normal char");
252+
assert(!parsingCommandName, "else we'd have treated it as a normal char")
253253
str.append(parseBackslash())
254254
} else {
255-
preconditionFailure("unexpected special character");
255+
preconditionFailure("unexpected special character")
256256
}
257257
}
258258
return str

Sources/CompletionScoring/Text/InfluencingIdentifiers.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ package struct InfluencingIdentifiers: Sendable {
5757
_ tokenizedIdentifiers: [[String]],
5858
body: (Self) throws -> R
5959
) rethrows -> R {
60-
let allocatedIdentifiers = allocate(copyingTokenizedIdentifiers: tokenizedIdentifiers);
60+
let allocatedIdentifiers = allocate(copyingTokenizedIdentifiers: tokenizedIdentifiers)
6161
defer { allocatedIdentifiers.deallocate() }
6262
return try body(allocatedIdentifiers)
6363
}
@@ -84,7 +84,7 @@ package struct InfluencingIdentifiers: Sendable {
8484
/// match. If each identifier has one or more tokens in the candidate, return 1.0. If no tokens from the identifiers appear
8585
/// in the candidate, return 0.0.
8686
package func score(candidate: Candidate, allocator: inout UnsafeStackAllocator) -> Double {
87-
var candidateTokenization: Pattern.Tokenization? = nil;
87+
var candidateTokenization: Pattern.Tokenization? = nil
8888
defer { candidateTokenization?.deallocate(allocator: &allocator) }
8989
var score = 0.0
9090
for identifier in identifiers {

Sources/CompletionScoring/Text/MatchCollator.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,9 +58,9 @@ package struct MatchCollator {
5858
maximumNumberOfItemsForExpensiveSelection: Int,
5959
body: (inout MatchCollator) -> R
6060
) -> R {
61-
let rescoredMatches = UnsafeMutableBufferPointer<RescoredMatch>.allocate(capacity: originalMatches.count);
61+
let rescoredMatches = UnsafeMutableBufferPointer<RescoredMatch>.allocate(capacity: originalMatches.count)
6262
defer { rescoredMatches.deinitializeAllAndDeallocate() }
63-
let groupScores = UnsafeMutableBufferPointer<Double>.allocate(capacity: originalMatches.count);
63+
let groupScores = UnsafeMutableBufferPointer<Double>.allocate(capacity: originalMatches.count)
6464
defer { groupScores.deinitializeAllAndDeallocate() }
6565
for (matchIndex, originalMatch) in originalMatches.enumerated() {
6666
rescoredMatches.initialize(

Sources/CompletionScoring/Utilities/UnsafeStackAllocator.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ package struct UnsafeStackAllocator {
129129
maximumCapacity: Int,
130130
body: (inout UnsafeStackArray<Element>) throws -> R
131131
) rethrows -> R {
132-
var stackArray = allocateUnsafeArray(of: elementType, maximumCapacity: maximumCapacity);
132+
var stackArray = allocateUnsafeArray(of: elementType, maximumCapacity: maximumCapacity)
133133
defer { deallocate(&stackArray) }
134134
return try body(&stackArray)
135135
}

Sources/SwiftSourceKitPlugin/CodeCompletion/Connection.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,9 +198,9 @@ final class Connection {
198198
let req = sourcekitd.ideApi.completion_request_create(loc.path, UInt32(offset), cargs, UInt32(cargs.count))
199199
defer { sourcekitd.ideApi.completion_request_dispose(req) }
200200
sourcekitd.ideApi.completion_request_set_annotate_result(req, options.annotateResults)
201-
sourcekitd.ideApi.completion_request_set_include_objectliterals(req, options.includeObjectLiterals);
202-
sourcekitd.ideApi.completion_request_set_add_inits_to_top_level(req, options.addInitsToTopLevel);
203-
sourcekitd.ideApi.completion_request_set_add_call_with_no_default_args(req, options.addCallWithNoDefaultArgs);
201+
sourcekitd.ideApi.completion_request_set_include_objectliterals(req, options.includeObjectLiterals)
202+
sourcekitd.ideApi.completion_request_set_add_inits_to_top_level(req, options.addInitsToTopLevel)
203+
sourcekitd.ideApi.completion_request_set_add_call_with_no_default_args(req, options.addCallWithNoDefaultArgs)
204204

205205
do {
206206
let sourcekitd = self.sourcekitd

Tests/CompletionScoringPerfTests/CandidateBatchPerfTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class CandidateBatchPerfTests: XCTestCase {
2727
}
2828
let typeUTF8Buffers = typeStrings.map { typeString in
2929
typeString.allocateCopyOfUTF8Buffer()
30-
};
30+
}
3131
defer {
3232
for typeUTF8Buffer in typeUTF8Buffers {
3333
typeUTF8Buffer.deallocate()

Tests/CompletionScoringTests/CandidateBatchTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1386,7 +1386,7 @@ class CandidateBatchTests: XCTestCase {
13861386
]
13871387
let typeUTF8Buffers = typeStrings.map { typeString in
13881388
typeString.allocateCopyOfUTF8Buffer()
1389-
};
1389+
}
13901390
defer {
13911391
for typeUTF8Buffer in typeUTF8Buffers {
13921392
typeUTF8Buffer.deallocate()

0 commit comments

Comments
 (0)