Skip to content

Commit 4efff05

Browse files
committed
InternalImportsByDefault
1 parent 242ff37 commit 4efff05

14 files changed

+19
-19
lines changed

DOM/Tests/DOM+Extensions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ extension DOM {
8484
// Equatable just for tests
8585

8686
extension DOM.GraphicsElement: Swift.Equatable {
87-
public static func ==(lhs: DOM.GraphicsElement, rhs: DOM.GraphicsElement) -> Bool {
87+
static func ==(lhs: DOM.GraphicsElement, rhs: DOM.GraphicsElement) -> Bool {
8888
let toString: (Any) -> String = { var text = ""; dump($0, to: &text); return text }
8989
return toString(lhs) == toString(rhs)
9090
}

DOM/Tests/Parser.XML.PathTests.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ private func arc(_ rx: Coordinate, _ ry: Coordinate, _ rotate: Coordinate,
272272

273273

274274
extension DOM.Path.Segment: Swift.Equatable {
275-
public static func ==(lhs: DOM.Path.Segment, rhs: DOM.Path.Segment) -> Bool {
275+
static func ==(lhs: DOM.Path.Segment, rhs: DOM.Path.Segment) -> Bool {
276276
let toString: (Any) -> String = { var text = ""; dump($0, to: &text); return text }
277277
return toString(lhs) == toString(rhs)
278278
}

DOM/Tests/XML.Parser.ScannerTests.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
// 3. This notice may not be removed or altered from any source distribution.
3030
//
3131

32+
public import Foundation
3233
import XCTest
3334
@testable import SwiftDrawDOM
3435

@@ -234,9 +235,10 @@ private func AssertScanPercentageFloat(_ text: String, _ expected: Float?, file:
234235
XCTAssertEqual(try? scanner.scanPercentageFloat(), expected, file: file, line: line)
235236
}
236237

238+
extension CharacterSet: @retroactive ExpressibleByExtendedGraphemeClusterLiteral {}
239+
extension CharacterSet: @retroactive ExpressibleByUnicodeScalarLiteral {}
240+
extension CharacterSet: @retroactive ExpressibleByStringLiteral {
237241

238-
extension Foundation.CharacterSet: Swift.ExpressibleByStringLiteral {
239-
240242
static let hexadecimal: Foundation.CharacterSet = "0123456789ABCDEFabcdef"
241243

242244
public init(stringLiteral value: String) {

Package.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ extension Array where Element == SwiftSetting {
5858
static var upcomingFeatures: [SwiftSetting] {
5959
[
6060
.enableUpcomingFeature("ExistentialAny"),
61+
.enableUpcomingFeature("InternalImportsByDefault"),
6162
.enableUpcomingFeature("MemberImportVisibility"),
6263
.swiftLanguageMode(.v6)
6364
]

SwiftDraw/Sources/CommandLine/CommandLine+Process.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
// 3. This notice may not be removed or altered from any source distribution.
3030
//
3131

32-
import Foundation
32+
public import Foundation
3333
#if canImport(CoreGraphics)
3434
import CoreGraphics
3535
#endif

SwiftDraw/Sources/CommandLine/CommandLine.Configuration.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//
3131

3232
import SwiftDrawDOM
33-
import Foundation
33+
public import Foundation
3434

3535
extension CommandLine {
3636

SwiftDraw/Sources/NSImage+SVG.swift

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,7 @@
3030
//
3131

3232
#if canImport(AppKit) && !targetEnvironment(macCatalyst)
33-
import AppKit
34-
import CoreGraphics
33+
public import AppKit
3534

3635
public extension NSImage {
3736

SwiftDraw/Sources/Renderer/CGTextRenderer+Code.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//
3131

3232
import SwiftDrawDOM
33-
import Foundation
33+
public import Foundation
3434

3535
public extension CGTextRenderer {
3636

SwiftDraw/Sources/Renderer/Renderer.SFSymbol.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
//
3131

3232
import SwiftDrawDOM
33-
import Foundation
33+
public import Foundation
3434

3535
public struct SFSymbolRenderer {
3636

SwiftDraw/Sources/SVG/SVG+CoreGraphics.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@
3030
//
3131

3232
#if canImport(CoreGraphics)
33-
import CoreGraphics
34-
import Foundation
33+
public import CoreGraphics
34+
public import Foundation
3535

3636
public extension CGContext {
3737

0 commit comments

Comments
 (0)