@@ -791,9 +791,6 @@ indirect enum Declaration: Equatable, Codable, Sendable {
791
791
/// A declaration that adds a comment on top of the provided declaration.
792
792
case deprecated( DeprecationDescription , Declaration )
793
793
794
- /// A declaration that adds an availability guard on top of the provided declaration.
795
- case guarded( AvailabilityDescription , Declaration )
796
-
797
794
/// A variable declaration.
798
795
case variable( VariableDescription )
799
796
@@ -1870,7 +1867,6 @@ extension Declaration {
1870
1867
switch self {
1871
1868
case . commentable( _, let declaration) : return declaration. accessModifier
1872
1869
case . deprecated( _, let declaration) : return declaration. accessModifier
1873
- case . guarded( _, let declaration) : return declaration. accessModifier
1874
1870
case . variable( let variableDescription) : return variableDescription. accessModifier
1875
1871
case . extension( let extensionDescription) : return extensionDescription. accessModifier
1876
1872
case . struct( let structDescription) : return structDescription. accessModifier
@@ -1889,9 +1885,6 @@ extension Declaration {
1889
1885
case . deprecated( let deprecationDescription, var declaration) :
1890
1886
declaration. accessModifier = newValue
1891
1887
self = . deprecated( deprecationDescription, declaration)
1892
- case . guarded( let availability, var declaration) :
1893
- declaration. accessModifier = newValue
1894
- self = . guarded( availability, declaration)
1895
1888
case . variable( var variableDescription) :
1896
1889
variableDescription. accessModifier = newValue
1897
1890
self = . variable( variableDescription)
0 commit comments