Skip to content

Commit be44a3a

Browse files
committed
Downgrade Parser ACL
1 parent f26d29f commit be44a3a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Sources/XcbeautifyLib/Parser.swift

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
public class Parser {
1+
package class Parser {
22
private let colored: Bool
33

44
private let renderer: OutputRendering
@@ -98,7 +98,7 @@ public class Parser {
9898

9999
// MARK: - Init
100100

101-
public init(
101+
package init(
102102
colored: Bool = true,
103103
renderer: Renderer,
104104
preserveUnbeautifiedLines: Bool = false,
@@ -117,7 +117,7 @@ public class Parser {
117117
self.additionalLines = additionalLines
118118
}
119119

120-
public func parse(line: String) -> String? {
120+
package func parse(line: String) -> String? {
121121
// Find first parser that can parse specified string
122122
guard let idx = captureGroupTypes.firstIndex(where: { $0.regex.match(string: line) }) else {
123123
// Some uncommon cases, which have additional logic and don't follow default flow

0 commit comments

Comments
 (0)