Skip to content

Commit 9d7be37

Browse files
committed
Support building resilient libraries with @_spi default implementation
1 parent f3168d0 commit 9d7be37

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

Sources/SwiftSyntax/SyntaxProtocol.swift

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -733,3 +733,14 @@ public extension SyntaxChildChoices {
733733
return self.as(S.self)!
734734
}
735735
}
736+
737+
738+
extension EffectSpecifiersSyntax {
739+
// Default implementation for the experimental thrownType child, which must
740+
// be provided due to the use of @_spi.
741+
@_spi(ExperimentalLanguageFeatures)
742+
public var thrownType: ThrownTypeClauseSyntax? {
743+
get { return nil }
744+
set { }
745+
}
746+
}

0 commit comments

Comments
 (0)