Skip to content

Commit f6e4f7e

Browse files
committed
Add missing imports of _RegexParser.
While experimenting with adopting the `MemberImportVisibility` experimental feature (SE-0444) in the standard library build, I found that the `_StringProcessing` module was relying on transitive imports of `_RegexParser` in many source files.
1 parent c75631d commit f6e4f7e

File tree

7 files changed

+12
-0
lines changed

7 files changed

+12
-0
lines changed

Sources/_StringProcessing/Engine/MEQuantify.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
internal import _RegexParser
2+
13
private typealias ASCIIBitset = DSLTree.CustomCharacterClass.AsciiBitset
24

35
extension Processor {

Sources/_StringProcessing/Engine/Processor.swift

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

12+
internal import _RegexParser
1213

1314
enum MatchMode {
1415
case wholeString

Sources/_StringProcessing/Regex/Match.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12+
internal import _RegexParser
13+
1214
@available(SwiftStdlib 5.7, *)
1315
extension Regex {
1416
/// The result of matching a regular expression against a string.

Sources/_StringProcessing/Unicode/NFC.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12+
internal import _RegexParser
13+
1214
@_spi(_Unicode)
1315
import Swift
1416

Sources/_StringProcessing/Unicode/ScalarProps.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12+
internal import _RegexParser
13+
1214
@_silgen_name("_swift_string_processing_getScript")
1315
func _swift_string_processing_getScript(_: UInt32) -> UInt8
1416

Sources/_StringProcessing/Unicode/WordBreaking.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
//
1010
//===----------------------------------------------------------------------===//
1111

12+
internal import _RegexParser
13+
1214
@_spi(_Unicode)
1315
import Swift
1416

Sources/_StringProcessing/Utility/TypedInt.swift

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

12+
internal import _RegexParser
1213

1314
// Just a phantom-typed Int wrapper.
1415
struct TypedInt<👻>: RawRepresentable, Hashable {

0 commit comments

Comments
 (0)