@@ -406,7 +406,7 @@ private func evaluateIfConfig(
406406 throw recordedError ( . unknownExpression( condition) )
407407}
408408
409- extension IfConfigState {
409+ extension ConfiguredRegionState {
410410 /// Evaluate the given `#if` condition using the given build configuration, throwing an error if there is
411411 /// insufficient information to make a determination.
412412 public init (
@@ -496,9 +496,9 @@ extension SyntaxProtocol {
496496 public func isActive(
497497 in configuration: some BuildConfiguration ,
498498 diagnosticHandler: ( ( Diagnostic ) -> Void ) ? = nil
499- ) throws -> IfConfigState {
499+ ) throws -> ConfiguredRegionState {
500500 var currentNode : Syntax = Syntax ( self )
501- var currentState : IfConfigState = . active
501+ var currentState : ConfiguredRegionState = . active
502502
503503 while let parent = currentNode. parent {
504504 // If the parent is an `#if` configuration, check whether our current
@@ -539,9 +539,9 @@ extension SyntaxProtocol {
539539 /// This is
540540 /// an approximation
541541 public func isActive(
542- inConfiguredRegions regions: [ ( IfConfigClauseSyntax , IfConfigState ) ]
543- ) -> IfConfigState {
544- var currentState : IfConfigState = . active
542+ inConfiguredRegions regions: [ ( IfConfigClauseSyntax , ConfiguredRegionState ) ]
543+ ) -> ConfiguredRegionState {
544+ var currentState : ConfiguredRegionState = . active
545545 for (ifClause, state) in regions {
546546 if self . position < ifClause. position {
547547 return currentState
0 commit comments