Skip to content

Commit 4f0f172

Browse files
committed
Make two public methods internal: clients shouldn't need them
1 parent f8b6353 commit 4f0f172

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Sources/SwiftIfConfig/IfConfigEvaluation.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -610,7 +610,7 @@ extension IfConfigClauseSyntax {
610610
/// Fold the operators within an #if condition, turning sequence expressions
611611
/// involving the various allowed operators (&&, ||, !) into well-structured
612612
/// binary operators.
613-
public static func foldOperators(
613+
static func foldOperators(
614614
_ condition: some ExprSyntaxProtocol
615615
) -> (folded: ExprSyntax, diagnostics: [Diagnostic]) {
616616
var foldingDiagnostics: [Diagnostic] = []
@@ -635,7 +635,7 @@ extension IfConfigClauseSyntax {
635635
/// Determine whether the given expression, when used as the condition in
636636
/// an inactive `#if` clause, implies that syntax errors are permitted within
637637
/// that region.
638-
public static func syntaxErrorsAllowed(
638+
static func syntaxErrorsAllowed(
639639
_ condition: some ExprSyntaxProtocol
640640
) -> (syntaxErrorsAllowed: Bool, diagnostics: [Diagnostic]) {
641641
let (foldedCondition, foldingDiagnostics) = IfConfigClauseSyntax.foldOperators(condition)

0 commit comments

Comments
 (0)