Skip to content

Commit 75fa7d6

Browse files
authored
Enable SE-0409 (access-level on imports) upcoming feature (#1183)
1 parent 7abf33e commit 75fa7d6

File tree

211 files changed

+280
-280
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+280
-280
lines changed

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ let swiftSettings: [SwiftSetting] = [
1717

1818
.enableUpcomingFeature("ConciseMagicFile"), // SE-0274: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0274-magic-file.md
1919
.enableUpcomingFeature("ExistentialAny"), // SE-0335: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0335-existential-any.md
20+
.enableUpcomingFeature("InternalImportsByDefault"), // SE-0409: https://github.com/swiftlang/swift-evolution/blob/main/proposals/0409-access-level-on-imports.md
2021
]
2122

2223
let package = Package(

Sources/SwiftDocC/Benchmark/Benchmark.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Foundation
11+
public import Foundation
1212

1313
/// A logger that runs benchmarks and stores the results.
1414
public class Benchmark: Encodable {

Sources/SwiftDocC/Benchmark/BenchmarkResults.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Foundation
11+
public import Foundation
1212

1313
/// The results of a single benchmark run.
1414
public struct BenchmarkResults: Codable {

Sources/SwiftDocC/Benchmark/Metrics/Duration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Foundation
11+
public import Foundation
1212

1313
extension Benchmark {
1414
/// A duration metric in milliseconds.

Sources/SwiftDocC/Benchmark/Metrics/OutputSize.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Foundation
11+
public import Foundation
1212

1313
extension Benchmark {
1414
/// Measures the total output size of a DocC archive.

Sources/SwiftDocC/Catalog Processing/GeneratedCurationWriter.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Foundation
11+
public import Foundation
1212
import SymbolKit
1313

1414
/// A type that writes the auto-generated curation into documentation extension files.

Sources/SwiftDocC/Checker/Checker.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Markdown
11+
public import Markdown
1212

1313
/**
1414
A markup checker.

Sources/SwiftDocC/Checker/Checkers/AbstractContainsFormattedTextOnly.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Foundation
12-
import Markdown
11+
public import Foundation
12+
public import Markdown
1313

1414
/**
1515
A document's abstract may only contain formatted text. Images and links are not allowed.

Sources/SwiftDocC/Checker/Checkers/DuplicateTopicsSection.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Foundation
12-
import Markdown
11+
public import Foundation
12+
public import Markdown
1313

1414
/**
1515
A `Document` may only have one level-2 "Topics" heading at the top level, since it serves as structured data for a documentation bundle's hierarchy.

Sources/SwiftDocC/Checker/Checkers/InvalidAdditionalTitle.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
See https://swift.org/CONTRIBUTORS.txt for Swift project authors
99
*/
1010

11-
import Foundation
12-
import Markdown
11+
public import Foundation
12+
public import Markdown
1313

1414
/**
1515
A document should have a single title, i.e. a single first-level heading.

0 commit comments

Comments
 (0)