Skip to content

Commit b413e1d

Browse files
committed
Extract the Lock type to the same "Common" target
1 parent 17a2037 commit b413e1d

File tree

14 files changed

+13
-3
lines changed

14 files changed

+13
-3
lines changed

Sources/SwiftDocC/Converter/TopicRenderReferenceEncoder.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
public import Foundation
12+
public import Common
1213

1314
/// A thread-safe cache for encoded render references.
1415
public typealias RenderReferenceCache = Synchronized<[String: (reference: Data, overrides: [VariantOverride])]>

Sources/SwiftDocC/Infrastructure/Diagnostics/DiagnosticEngine.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
import Foundation
12+
import Common
1213

1314
/// A type that collects and dispatches diagnostics during compilation.
1415
public final class DiagnosticEngine {

Sources/SwiftDocC/Infrastructure/Symbol Graph/SymbolGraphConcurrentDecoder.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import Foundation
1212
import SymbolKit
13+
import Common
1314

1415
public extension CodingUserInfoKey {
1516
/// A user info key to store a symbol counter in the decoder.
@@ -55,8 +56,6 @@ enum SymbolGraphConcurrentDecoder {
5556
/// so that we can get the best performance out of the concurrent work.
5657

5758
static func decode(_ data: Data, concurrentBatches: Int = 4, using decoder: JSONDecoder = JSONDecoder()) throws -> SymbolGraph {
58-
59-
6059
var symbolGraph: SymbolGraph!
6160

6261
let decodeError = Synchronized<(any Error)?>(nil)

Sources/SwiftDocC/Model/Rendering/RenderSectionTranslator/DeclarationsSectionTranslator.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import Foundation
1212
import SymbolKit
13+
import Common
1314

1415
typealias OverloadDeclaration = (
1516
declaration: [SymbolGraph.Symbol.DeclarationFragments.Fragment],

Sources/SwiftDocC/Utility/Collection+ConcurrentPerform.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
import Foundation
12+
import Common
1213

1314
// Until we find a better way to manage memory on Linux we will disable
1415
// concurrency in the Collection extensions in this file and have tests expect

Sources/SwiftDocC/Utility/LogHandle.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
*/
1010

1111
public import Foundation
12+
import Common
1213

1314
/// An object that writes logs to the given output device.
1415
///

Sources/SwiftDocCUtilities/Action/Actions/Convert/Indexer.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import Foundation
1212
import SwiftDocC
13+
private import Common
1314

1415
extension ConvertAction {
1516

Sources/SwiftDocCUtilities/Action/Actions/Convert/JSONEncodingRenderNodeWriter.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import Foundation
1212
import SwiftDocC
13+
import Common
1314

1415
/// An object that writes render nodes, as JSON files, into a target folder.
1516
///

Sources/SwiftDocCUtilities/Action/Actions/PreviewAction.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
import Foundation
1212
public import SwiftDocC
13+
private import Common
1314

1415
#if canImport(NIOHTTP1)
1516
/// A preview server instance.

0 commit comments

Comments
 (0)