Skip to content

Commit 3cd65cd

Browse files
rxweiAzoy
authored andcommitted
Merge pull request #287 from apple/impl-import
Import _RegexParser as implementation only
1 parent 0d41bb2 commit 3cd65cd

19 files changed

+20
-19
lines changed

Sources/_StringProcessing/ByteCodeGen.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _RegexParser
1+
@_implementationOnly import _RegexParser
22

33
extension Compiler {
44
struct ByteCodeGen {

Sources/_StringProcessing/Capture.swift

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

12-
import _RegexParser
12+
@_implementationOnly import _RegexParser
1313

1414
/// A structured capture
1515
struct StructuredCapture {

Sources/_StringProcessing/Compiler.swift

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

12-
import _RegexParser
12+
@_implementationOnly import _RegexParser
1313

1414
class Compiler {
1515
let tree: DSLTree

Sources/_StringProcessing/ConsumerInterface.swift

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

12-
import _RegexParser
12+
@_implementationOnly import _RegexParser
1313

1414
extension DSLTree.Node {
1515
/// Attempt to generate a consumer from this AST node

Sources/_StringProcessing/Engine/MEBuilder.swift

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

12-
import _RegexParser // For errors
12+
@_implementationOnly import _RegexParser // For errors
1313

1414
extension MEProgram where Input.Element: Hashable {
1515
struct Builder {

Sources/_StringProcessing/Engine/MECapture.swift

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

12-
import _RegexParser
12+
@_implementationOnly import _RegexParser
1313

1414
/*
1515

Sources/_StringProcessing/Engine/MEProgram.swift

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

12-
import _RegexParser
12+
@_implementationOnly import _RegexParser
1313

1414
struct MEProgram<Input: Collection> where Input.Element: Equatable {
1515
typealias ConsumeFunction = (Input, Range<Input.Index>) -> Input.Index?

Sources/_StringProcessing/Engine/Registers.swift

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

12-
import _RegexParser
12+
@_implementationOnly import _RegexParser
1313

1414
struct SentinelValue: Hashable, CustomStringConvertible {
1515
var description: String { "<value sentinel>" }

Sources/_StringProcessing/Engine/Structuralize.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import _RegexParser
1+
@_implementationOnly import _RegexParser
22

33
extension CaptureStructure {
44
var optionalCount: Int {

Sources/_StringProcessing/Executor.swift

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

12-
import _RegexParser
12+
@_implementationOnly import _RegexParser
1313

1414
struct Executor {
1515
// TODO: consider let, for now lets us toggle tracing

0 commit comments

Comments
 (0)