Skip to content

Commit b97d665

Browse files
authored
Merge pull request #1649 from ahoppen/ahoppen/remove-frozen-attribute
Remove `@frozen` attributes
2 parents 8e0ec0e + f247b89 commit b97d665

File tree

12 files changed

+0
-37
lines changed

12 files changed

+0
-37
lines changed

CodeGeneration/Sources/generate-swiftsyntax/templates/swiftsyntax/KeywordFile.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ let lookupTable = ArrayExprSyntax(leftSquare: .leftSquareBracketToken(trailingTr
2424
let keywordFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
2525
try! EnumDeclSyntax(
2626
"""
27-
@frozen // FIXME: Not actually stable, works around a miscompile
2827
public enum Keyword: UInt8, Hashable
2928
"""
3029
) {

CodeGeneration/Sources/generate-swiftsyntax/templates/swiftsyntax/RawSyntaxNodesFile.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ let rawSyntaxNodesFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
4848
for (name, choices) in enums {
4949
try EnumDeclSyntax(
5050
"""
51-
@frozen // FIXME: Not actually stable, works around a miscompile
5251
public enum \(raw: name): RawSyntaxNodeProtocol
5352
"""
5453
) {

CodeGeneration/Sources/generate-swiftsyntax/templates/swiftsyntax/SyntaxCollectionsFile.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,6 @@ let syntaxCollectionsFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
5454
if let collectionElementChoices = node.collectionElementChoices, !collectionElementChoices.isEmpty {
5555
try EnumDeclSyntax(
5656
"""
57-
@frozen // FIXME: Not actually stable, works around a miscompile
5857
public enum Element: SyntaxChildChoices
5958
"""
6059
) {

CodeGeneration/Sources/generate-swiftsyntax/templates/swiftsyntax/SyntaxEnumFile.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ let syntaxEnumFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
1919
try! EnumDeclSyntax(
2020
"""
2121
/// Enum to exhaustively switch over all different syntax nodes.
22-
@frozen // FIXME: Not actually stable, works around a miscompile
2322
public enum SyntaxEnum
2423
"""
2524
) {

CodeGeneration/Sources/generate-swiftsyntax/templates/swiftsyntax/SyntaxKindFile.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ let syntaxKindFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
1919
try! EnumDeclSyntax(
2020
"""
2121
/// Enumerates the known kinds of Syntax represented in the Syntax tree.
22-
@frozen // FIXME: Not actually stable, works around a miscompile
2322
public enum SyntaxKind
2423
"""
2524
) {

CodeGeneration/Sources/generate-swiftsyntax/templates/swiftsyntax/TokenKindFile.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ let tokenKindFile = SourceFileSyntax(leadingTrivia: copyrightHeader) {
1919
try! EnumDeclSyntax(
2020
"""
2121
/// Enumerates the kinds of tokens in the Swift language.
22-
@frozen // FIXME: Not actually stable, works around a miscompile
2322
public enum TokenKind: Hashable
2423
"""
2524
) {

Sources/SwiftSyntax/generated/Keyword.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
//
1313
//===----------------------------------------------------------------------===//
1414

15-
@frozen // FIXME: Not actually stable, works around a miscompile
1615
public enum Keyword: UInt8, Hashable {
1716
case __consuming
1817
case __owned

Sources/SwiftSyntax/generated/SyntaxCollections.swift

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -448,7 +448,6 @@ extension ArrayElementListSyntax: BidirectionalCollection {
448448
/// as a regular Swift collection, and has accessors that return new
449449
/// versions of the collection with different children.
450450
public struct AttributeListSyntax: SyntaxCollection, SyntaxHashable {
451-
@frozen // FIXME: Not actually stable, works around a miscompile
452451
public enum Element: SyntaxChildChoices {
453452
case `attribute`(AttributeSyntax)
454453
case `ifConfigDecl`(IfConfigDeclSyntax)
@@ -7585,7 +7584,6 @@ extension PatternBindingListSyntax: BidirectionalCollection {
75857584
/// as a regular Swift collection, and has accessors that return new
75867585
/// versions of the collection with different children.
75877586
public struct PrecedenceGroupAttributeListSyntax: SyntaxCollection, SyntaxHashable {
7588-
@frozen // FIXME: Not actually stable, works around a miscompile
75897587
public enum Element: SyntaxChildChoices {
75907588
case `precedenceGroupRelation`(PrecedenceGroupRelationSyntax)
75917589
case `precedenceGroupAssignment`(PrecedenceGroupAssignmentSyntax)
@@ -8264,7 +8262,6 @@ extension PrimaryAssociatedTypeListSyntax: BidirectionalCollection {
82648262

82658263
/// A collection of arguments for the `@_specialize` attribute
82668264
public struct SpecializeAttributeSpecListSyntax: SyntaxCollection, SyntaxHashable {
8267-
@frozen // FIXME: Not actually stable, works around a miscompile
82688265
public enum Element: SyntaxChildChoices {
82698266
case `labeledSpecializeEntry`(LabeledSpecializeEntrySyntax)
82708267
case `availabilityEntry`(AvailabilityEntrySyntax)
@@ -8541,7 +8538,6 @@ extension SpecializeAttributeSpecListSyntax: BidirectionalCollection {
85418538
/// as a regular Swift collection, and has accessors that return new
85428539
/// versions of the collection with different children.
85438540
public struct StringLiteralSegmentsSyntax: SyntaxCollection, SyntaxHashable {
8544-
@frozen // FIXME: Not actually stable, works around a miscompile
85458541
public enum Element: SyntaxChildChoices {
85468542
case `stringSegment`(StringSegmentSyntax)
85478543
case `expressionSegment`(ExpressionSegmentSyntax)
@@ -8793,7 +8789,6 @@ extension StringLiteralSegmentsSyntax: BidirectionalCollection {
87938789
/// as a regular Swift collection, and has accessors that return new
87948790
/// versions of the collection with different children.
87958791
public struct SwitchCaseListSyntax: SyntaxCollection, SyntaxHashable {
8796-
@frozen // FIXME: Not actually stable, works around a miscompile
87978792
public enum Element: SyntaxChildChoices {
87988793
case `switchCase`(SwitchCaseSyntax)
87998794
case `ifConfigDecl`(IfConfigDeclSyntax)

Sources/SwiftSyntax/generated/SyntaxEnum.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
/// Enum to exhaustively switch over all different syntax nodes.
16-
@frozen // FIXME: Not actually stable, works around a miscompile
1716
public enum SyntaxEnum {
1817
case token(TokenSyntax)
1918
case accessorBlock(AccessorBlockSyntax)

Sources/SwiftSyntax/generated/SyntaxKind.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
/// Enumerates the known kinds of Syntax represented in the Syntax tree.
16-
@frozen // FIXME: Not actually stable, works around a miscompile
1716
public enum SyntaxKind {
1817
case token
1918
case accessorBlock

Sources/SwiftSyntax/generated/TokenKind.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
//===----------------------------------------------------------------------===//
1414

1515
/// Enumerates the kinds of tokens in the Swift language.
16-
@frozen // FIXME: Not actually stable, works around a miscompile
1716
public enum TokenKind: Hashable {
1817
case eof
1918
case arrow

Sources/SwiftSyntax/generated/raw/RawSyntaxNodes.swift

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,6 @@ public struct RawAssociatedtypeDeclSyntax: RawDeclSyntaxNodeProtocol {
12091209

12101210
@_spi(RawSyntax)
12111211
public struct RawAttributeListSyntax: RawSyntaxNodeProtocol {
1212-
@frozen // FIXME: Not actually stable, works around a miscompile
12131212
public enum Element: RawSyntaxNodeProtocol {
12141213
case `attribute`(RawAttributeSyntax)
12151214
case `ifConfigDecl`(RawIfConfigDeclSyntax)
@@ -1290,7 +1289,6 @@ public struct RawAttributeListSyntax: RawSyntaxNodeProtocol {
12901289

12911290
@_spi(RawSyntax)
12921291
public struct RawAttributeSyntax: RawSyntaxNodeProtocol {
1293-
@frozen // FIXME: Not actually stable, works around a miscompile
12941292
public enum Argument: RawSyntaxNodeProtocol {
12951293
case `argumentList`(RawTupleExprElementListSyntax)
12961294
case `token`(RawTokenSyntax)
@@ -1635,7 +1633,6 @@ public struct RawAttributedTypeSyntax: RawTypeSyntaxNodeProtocol {
16351633

16361634
@_spi(RawSyntax)
16371635
public struct RawAvailabilityArgumentSyntax: RawSyntaxNodeProtocol {
1638-
@frozen // FIXME: Not actually stable, works around a miscompile
16391636
public enum Entry: RawSyntaxNodeProtocol {
16401637
case `token`(RawTokenSyntax)
16411638
case `availabilityVersionRestriction`(RawAvailabilityVersionRestrictionSyntax)
@@ -1931,7 +1928,6 @@ public struct RawAvailabilityEntrySyntax: RawSyntaxNodeProtocol {
19311928

19321929
@_spi(RawSyntax)
19331930
public struct RawAvailabilityLabeledArgumentSyntax: RawSyntaxNodeProtocol {
1934-
@frozen // FIXME: Not actually stable, works around a miscompile
19351931
public enum Value: RawSyntaxNodeProtocol {
19361932
case `string`(RawStringLiteralExprSyntax)
19371933
case `version`(RawVersionTupleSyntax)
@@ -4308,7 +4304,6 @@ public struct RawClosureParameterSyntax: RawSyntaxNodeProtocol {
43084304

43094305
@_spi(RawSyntax)
43104306
public struct RawClosureSignatureSyntax: RawSyntaxNodeProtocol {
4311-
@frozen // FIXME: Not actually stable, works around a miscompile
43124307
public enum Input: RawSyntaxNodeProtocol {
43134308
case `simpleInput`(RawClosureParamListSyntax)
43144309
case `input`(RawClosureParameterClauseSyntax)
@@ -4507,7 +4502,6 @@ public struct RawCodeBlockItemListSyntax: RawSyntaxNodeProtocol {
45074502

45084503
@_spi(RawSyntax)
45094504
public struct RawCodeBlockItemSyntax: RawSyntaxNodeProtocol {
4510-
@frozen // FIXME: Not actually stable, works around a miscompile
45114505
public enum Item: RawSyntaxNodeProtocol {
45124506
case `decl`(RawDeclSyntax)
45134507
case `stmt`(RawStmtSyntax)
@@ -4925,7 +4919,6 @@ public struct RawConditionElementListSyntax: RawSyntaxNodeProtocol {
49254919

49264920
@_spi(RawSyntax)
49274921
public struct RawConditionElementSyntax: RawSyntaxNodeProtocol {
4928-
@frozen // FIXME: Not actually stable, works around a miscompile
49294922
public enum Condition: RawSyntaxNodeProtocol {
49304923
case `expression`(RawExprSyntax)
49314924
case `availability`(RawAvailabilityConditionSyntax)
@@ -6471,7 +6464,6 @@ public struct RawDictionaryElementSyntax: RawSyntaxNodeProtocol {
64716464

64726465
@_spi(RawSyntax)
64736466
public struct RawDictionaryExprSyntax: RawExprSyntaxNodeProtocol {
6474-
@frozen // FIXME: Not actually stable, works around a miscompile
64756467
public enum Content: RawSyntaxNodeProtocol {
64766468
case `colon`(RawTokenSyntax)
64776469
case `elements`(RawDictionaryElementListSyntax)
@@ -6810,7 +6802,6 @@ public struct RawDifferentiabilityParamSyntax: RawSyntaxNodeProtocol {
68106802

68116803
@_spi(RawSyntax)
68126804
public struct RawDifferentiabilityParamsClauseSyntax: RawSyntaxNodeProtocol {
6813-
@frozen // FIXME: Not actually stable, works around a miscompile
68146805
public enum Parameters: RawSyntaxNodeProtocol {
68156806
case `parameter`(RawDifferentiabilityParamSyntax)
68166807
case `parameterList`(RawDifferentiabilityParamsSyntax)
@@ -7321,7 +7312,6 @@ public struct RawDoStmtSyntax: RawStmtSyntaxNodeProtocol {
73217312

73227313
@_spi(RawSyntax)
73237314
public struct RawDocumentationAttributeArgumentSyntax: RawSyntaxNodeProtocol {
7324-
@frozen // FIXME: Not actually stable, works around a miscompile
73257315
public enum Value: RawSyntaxNodeProtocol {
73267316
case `token`(RawTokenSyntax)
73277317
case `string`(RawStringLiteralExprSyntax)
@@ -10497,7 +10487,6 @@ public struct RawGenericRequirementListSyntax: RawSyntaxNodeProtocol {
1049710487

1049810488
@_spi(RawSyntax)
1049910489
public struct RawGenericRequirementSyntax: RawSyntaxNodeProtocol {
10500-
@frozen // FIXME: Not actually stable, works around a miscompile
1050110490
public enum Body: RawSyntaxNodeProtocol {
1050210491
case `sameTypeRequirement`(RawSameTypeRequirementSyntax)
1050310492
case `conformanceRequirement`(RawConformanceRequirementSyntax)
@@ -10947,7 +10936,6 @@ public struct RawIfConfigClauseListSyntax: RawSyntaxNodeProtocol {
1094710936

1094810937
@_spi(RawSyntax)
1094910938
public struct RawIfConfigClauseSyntax: RawSyntaxNodeProtocol {
10950-
@frozen // FIXME: Not actually stable, works around a miscompile
1095110939
public enum Elements: RawSyntaxNodeProtocol {
1095210940
case `statements`(RawCodeBlockItemListSyntax)
1095310941
case `switchCases`(RawSwitchCaseListSyntax)
@@ -11151,7 +11139,6 @@ public struct RawIfConfigDeclSyntax: RawDeclSyntaxNodeProtocol {
1115111139

1115211140
@_spi(RawSyntax)
1115311141
public struct RawIfExprSyntax: RawExprSyntaxNodeProtocol {
11154-
@frozen // FIXME: Not actually stable, works around a miscompile
1115511142
public enum ElseBody: RawSyntaxNodeProtocol {
1115611143
case `ifExpr`(RawIfExprSyntax)
1115711144
case `codeBlock`(RawCodeBlockSyntax)
@@ -12422,7 +12409,6 @@ public struct RawKeyPathComponentListSyntax: RawSyntaxNodeProtocol {
1242212409

1242312410
@_spi(RawSyntax)
1242412411
public struct RawKeyPathComponentSyntax: RawSyntaxNodeProtocol {
12425-
@frozen // FIXME: Not actually stable, works around a miscompile
1242612412
public enum Component: RawSyntaxNodeProtocol {
1242712413
case `property`(RawKeyPathPropertyComponentSyntax)
1242812414
case `subscript`(RawKeyPathSubscriptComponentSyntax)
@@ -16038,7 +16024,6 @@ public struct RawPatternBindingListSyntax: RawSyntaxNodeProtocol {
1603816024

1603916025
@_spi(RawSyntax)
1604016026
public struct RawPatternBindingSyntax: RawSyntaxNodeProtocol {
16041-
@frozen // FIXME: Not actually stable, works around a miscompile
1604216027
public enum Accessor: RawSyntaxNodeProtocol {
1604316028
case `accessors`(RawAccessorBlockSyntax)
1604416029
case `getter`(RawCodeBlockSyntax)
@@ -16742,7 +16727,6 @@ public struct RawPrecedenceGroupAssociativitySyntax: RawSyntaxNodeProtocol {
1674216727

1674316728
@_spi(RawSyntax)
1674416729
public struct RawPrecedenceGroupAttributeListSyntax: RawSyntaxNodeProtocol {
16745-
@frozen // FIXME: Not actually stable, works around a miscompile
1674616730
public enum Element: RawSyntaxNodeProtocol {
1674716731
case `precedenceGroupRelation`(RawPrecedenceGroupRelationSyntax)
1674816732
case `precedenceGroupAssignment`(RawPrecedenceGroupAssignmentSyntax)
@@ -18290,7 +18274,6 @@ public struct RawSourceFileSyntax: RawSyntaxNodeProtocol {
1829018274

1829118275
@_spi(RawSyntax)
1829218276
public struct RawSpecializeAttributeSpecListSyntax: RawSyntaxNodeProtocol {
18293-
@frozen // FIXME: Not actually stable, works around a miscompile
1829418277
public enum Element: RawSyntaxNodeProtocol {
1829518278
case `labeledSpecializeEntry`(RawLabeledSpecializeEntrySyntax)
1829618279
case `availabilityEntry`(RawAvailabilityEntrySyntax)
@@ -18600,7 +18583,6 @@ public struct RawStringLiteralExprSyntax: RawExprSyntaxNodeProtocol {
1860018583

1860118584
@_spi(RawSyntax)
1860218585
public struct RawStringLiteralSegmentsSyntax: RawSyntaxNodeProtocol {
18603-
@frozen // FIXME: Not actually stable, works around a miscompile
1860418586
public enum Element: RawSyntaxNodeProtocol {
1860518587
case `stringSegment`(RawStringSegmentSyntax)
1860618588
case `expressionSegment`(RawExpressionSegmentSyntax)
@@ -18881,7 +18863,6 @@ public struct RawStructDeclSyntax: RawDeclSyntaxNodeProtocol {
1888118863

1888218864
@_spi(RawSyntax)
1888318865
public struct RawSubscriptDeclSyntax: RawDeclSyntaxNodeProtocol {
18884-
@frozen // FIXME: Not actually stable, works around a miscompile
1888518866
public enum Accessor: RawSyntaxNodeProtocol {
1888618867
case `accessors`(RawAccessorBlockSyntax)
1888718868
case `getter`(RawCodeBlockSyntax)
@@ -19382,7 +19363,6 @@ public struct RawSwitchCaseLabelSyntax: RawSyntaxNodeProtocol {
1938219363

1938319364
@_spi(RawSyntax)
1938419365
public struct RawSwitchCaseListSyntax: RawSyntaxNodeProtocol {
19385-
@frozen // FIXME: Not actually stable, works around a miscompile
1938619366
public enum Element: RawSyntaxNodeProtocol {
1938719367
case `switchCase`(RawSwitchCaseSyntax)
1938819368
case `ifConfigDecl`(RawIfConfigDeclSyntax)
@@ -19463,7 +19443,6 @@ public struct RawSwitchCaseListSyntax: RawSyntaxNodeProtocol {
1946319443

1946419444
@_spi(RawSyntax)
1946519445
public struct RawSwitchCaseSyntax: RawSyntaxNodeProtocol {
19466-
@frozen // FIXME: Not actually stable, works around a miscompile
1946719446
public enum Label: RawSyntaxNodeProtocol {
1946819447
case `default`(RawSwitchDefaultLabelSyntax)
1946919448
case `case`(RawSwitchCaseLabelSyntax)
@@ -22597,7 +22576,6 @@ public struct RawYieldListSyntax: RawSyntaxNodeProtocol {
2259722576

2259822577
@_spi(RawSyntax)
2259922578
public struct RawYieldStmtSyntax: RawStmtSyntaxNodeProtocol {
22600-
@frozen // FIXME: Not actually stable, works around a miscompile
2260122579
public enum Yields: RawSyntaxNodeProtocol {
2260222580
case `yieldList`(RawYieldListSyntax)
2260322581
case `simpleYield`(RawExprSyntax)

0 commit comments

Comments
 (0)