Skip to content

Commit af1840b

Browse files
authored
docs: enhance SWBBuildService inline documentations (swiftlang#48)
* docs: fix spelling of `targeted` * docs: fix spelling of `service` * docs: fix spelling of `approach` * docs: fix spelling of `transferred`
1 parent bd978a8 commit af1840b

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

Sources/SWBBuildService/BuildOperationMessages.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1095,7 +1095,7 @@ final class OperationDelegate: BuildOperationDelegate {
10951095
// We also send back a snapshot of the information on the target we have, since we are in a better position to retrieve it (rather than force the client to have an immutable cache).
10961096
//
10971097
// FIXME: Compute configurationIsDefault correctly.
1098-
// FIXME (rdar://53726633): It's really not safe to be using the `target` property off of the `configuredTarget` due to the fact that this can hold old references to project model items if the PIF/build descriptions are re-used, but the project model instances are re-created. This is a targetted fix for rdar://50962080, which should be address more correctly later.
1098+
// FIXME (rdar://53726633): It's really not safe to be using the `target` property off of the `configuredTarget` due to the fact that this can hold old references to project model items if the PIF/build descriptions are re-used, but the project model instances are re-created. This is a targeted fix for rdar://50962080, which should be address more correctly later.
10991099
guard let target = workspaceContext.workspace.target(for: configuredTarget.target.guid) else {
11001100
preconditionFailure("Unable to find target '\(configuredTarget.target.name)' in workspace '\(workspaceContext.workspace.name)'.")
11011101
}

Sources/SWBBuildService/BuildServiceEntryPoint.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ extension BuildService {
8989
}
9090
}
9191

92-
/// Common entry point to the build serivce for in-process and out-of-process connectons.
92+
/// Common entry point to the build service for in-process and out-of-process connectons.
9393
///
9494
/// Called directly from the exported C entry point `swiftbuildServiceEntryPoint` for in-process connections, or from `BuildService.main()` (after some basic file descriptor setup) for out-of-process connections.
9595
fileprivate static func run(inputFD: FileDescriptor, outputFD: FileDescriptor, connectionMode: ServiceHostConnectionMode, pluginsDirectory: URL?, arguments: [String], pluginLoadingFinished: () throws -> Void) async throws {

Sources/SWBBuildService/Messages.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ final package class BuildDependencyInfoOperation: InfoOperation, TargetDependenc
12561256
///
12571257
/// Presently this involves getting the target build phase for the request, and then for each target extracting configuration info as well as relevant inputs and outputs that target declares.
12581258
///
1259-
/// In the future this could perform a full task construction and examine the individual tasks to get a more complete set of information, but that apporach is hypothetical at this time.
1259+
/// In the future this could perform a full task construction and examine the individual tasks to get a more complete set of information, but that approach is hypothetical at this time.
12601260
private struct DumpBuildDependencyInfoMsg: MessageHandler {
12611261
fileprivate static let serializationQueue = ActorLock()
12621262

Sources/SWBBuildService/Session.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ package final class Session {
7373
session.currentPIFTransferOperation = nil
7474
}
7575

76-
/// Continue the operation, either completing it if all data is transfered, or reporting on the remaining objects to transfer.
76+
/// Continue the operation, either completing it if all data is transferred, or reporting on the remaining objects to transfer.
7777
func continueOperation() -> Status {
7878
let missingObjects = Array(loadingSession.missingObjects)
7979
if missingObjects.isEmpty {

0 commit comments

Comments
 (0)