Skip to content

Commit 34284eb

Browse files
authored
Merge pull request #2814 from DougGregor/syntax-errors-allowed-for-the-compiler
Make IfConfigClauseSyntax.syntaxErrorsAllowed(_:) compiler SPI
2 parents 5de21b3 + ab2d192 commit 34284eb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Sources/SwiftIfConfig/IfConfigEvaluation.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -717,7 +717,8 @@ extension IfConfigClauseSyntax {
717717
/// Determine whether the given expression, when used as the condition in
718718
/// an inactive `#if` clause, implies that syntax errors are permitted within
719719
/// that region.
720-
static func syntaxErrorsAllowed(
720+
@_spi(Compiler)
721+
public static func syntaxErrorsAllowed(
721722
_ condition: some ExprSyntaxProtocol
722723
) -> (syntaxErrorsAllowed: Bool, diagnostics: [Diagnostic]) {
723724
let (foldedCondition, foldingDiagnostics) = IfConfigClauseSyntax.foldOperators(condition)

0 commit comments

Comments
 (0)