Skip to content

Commit 009aa5c

Browse files
author
David Ungar
committed
privatization
1 parent 166603b commit 009aa5c

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

Sources/SwiftDriver/Incremental Compilation/IncrementalCompilationState.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ fileprivate extension IncrementalCompilationState {
169169
}
170170

171171
extension Diagnostic.Message {
172-
static var warning_incremental_requires_output_file_map: Diagnostic.Message {
172+
fileprivate static var warning_incremental_requires_output_file_map: Diagnostic.Message {
173173
.warning("ignoring -incremental (currently requires an output file map)")
174174
}
175175
static var warning_incremental_requires_build_record_entry: Diagnostic.Message {
@@ -178,10 +178,10 @@ extension Diagnostic.Message {
178178
"output file map has no master dependencies entry under \(FileType.swiftDeps)"
179179
)
180180
}
181-
static func remark_incremental_compilation_disabled(because why: String) -> Diagnostic.Message {
181+
fileprivate static func remark_incremental_compilation_disabled(because why: String) -> Diagnostic.Message {
182182
.remark("Incremental compilation has been disabled, because \(why)")
183183
}
184-
static func remark_incremental_compilation(because why: String) -> Diagnostic.Message {
184+
fileprivate static func remark_incremental_compilation(because why: String) -> Diagnostic.Message {
185185
.remark("Incremental compilation: \(why)")
186186
}
187187
}
@@ -379,7 +379,7 @@ extension IncrementalCompilationState {
379379

380380
/// Remember that `group` (a compilation and possibly bitcode generation)
381381
/// must definitely be executed.
382-
func scheduleMandatoryPreOrCompile(group: [Job]) {
382+
private func scheduleMandatoryPreOrCompile(group: [Job]) {
383383
if let report = reportIncrementalDecision {
384384
for job in group {
385385
report("Queuing \(job.descriptionForLifecycle)", nil)
@@ -393,7 +393,7 @@ extension IncrementalCompilationState {
393393
}
394394

395395
/// Decide if this job does not need to run, unless some yet-to-be-discovered dependency changes.
396-
func isSkipped(_ job: Job) -> Bool {
396+
private func isSkipped(_ job: Job) -> Bool {
397397
guard job.kind == .compile else {
398398
return false
399399
}
@@ -402,7 +402,7 @@ extension IncrementalCompilationState {
402402
}
403403

404404
/// Remember that this job-group will be skipped (but may be needed later)
405-
func recordSkippedGroup(_ group: [Job]) {
405+
private func recordSkippedGroup(_ group: [Job]) {
406406
let job = group.first!
407407
for input in job.primaryInputs {
408408
if let _ = skippedCompileGroups.updateValue(group, forKey: input) {

0 commit comments

Comments
 (0)