Skip to content

Commit 89657f0

Browse files
committed
Regenerate sources
1 parent 9d9f46b commit 89657f0

File tree

5 files changed

+33
-0
lines changed

5 files changed

+33
-0
lines changed

Sources/SwiftSyntax/Raw/gyb_generated/RawSyntaxNodes.swift

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -542,6 +542,7 @@ public struct RawMissingPatternSyntax: RawPatternSyntaxNodeProtocol, RawSyntaxTo
542542

543543
@_spi(RawSyntax)
544544
public struct RawCodeBlockItemSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
545+
@frozen
545546
public enum Item: RawSyntaxNodeProtocol {
546547
case `decl`(RawDeclSyntax)
547548
case `stmt`(RawStmtSyntax)
@@ -1047,6 +1048,7 @@ public struct RawDictionaryElementListSyntax: RawSyntaxNodeProtocol, RawSyntaxTo
10471048

10481049
@_spi(RawSyntax)
10491050
public struct RawStringLiteralSegmentsSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
1051+
@frozen
10501052
public enum Element: RawSyntaxNodeProtocol {
10511053
case `stringSegment`(RawStringSegmentSyntax)
10521054
case `expressionSegment`(RawExpressionSegmentSyntax)
@@ -2653,6 +2655,7 @@ public struct RawArrayExprSyntax: RawExprSyntaxNodeProtocol, RawSyntaxToSyntax {
26532655

26542656
@_spi(RawSyntax)
26552657
public struct RawDictionaryExprSyntax: RawExprSyntaxNodeProtocol, RawSyntaxToSyntax {
2658+
@frozen
26562659
public enum Content: RawSyntaxNodeProtocol {
26572660
case `colon`(RawTokenSyntax)
26582661
case `elements`(RawDictionaryElementListSyntax)
@@ -3940,6 +3943,7 @@ public struct RawClosureParamListSyntax: RawSyntaxNodeProtocol, RawSyntaxToSynta
39403943

39413944
@_spi(RawSyntax)
39423945
public struct RawClosureSignatureSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
3946+
@frozen
39433947
public enum Input: RawSyntaxNodeProtocol {
39443948
case `simpleInput`(RawClosureParamListSyntax)
39453949
case `input`(RawParameterClauseSyntax)
@@ -5165,6 +5169,7 @@ public struct RawKeyPathComponentListSyntax: RawSyntaxNodeProtocol, RawSyntaxToS
51655169

51665170
@_spi(RawSyntax)
51675171
public struct RawKeyPathComponentSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
5172+
@frozen
51685173
public enum Component: RawSyntaxNodeProtocol {
51695174
case `property`(RawKeyPathPropertyComponentSyntax)
51705175
case `subscript`(RawKeyPathSubscriptComponentSyntax)
@@ -5453,6 +5458,7 @@ public struct RawKeyPathOptionalComponentSyntax: RawSyntaxNodeProtocol, RawSynta
54535458

54545459
@_spi(RawSyntax)
54555460
public struct RawOldKeyPathExprSyntax: RawExprSyntaxNodeProtocol, RawSyntaxToSyntax {
5461+
@frozen
54565462
public enum RootExpr: RawSyntaxNodeProtocol {
54575463
case `identifierExpr`(RawIdentifierExprSyntax)
54585464
case `specializeExpr`(RawSpecializeExprSyntax)
@@ -6846,6 +6852,7 @@ public struct RawFunctionSignatureSyntax: RawSyntaxNodeProtocol, RawSyntaxToSynt
68466852

68476853
@_spi(RawSyntax)
68486854
public struct RawIfConfigClauseSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
6855+
@frozen
68496856
public enum Elements: RawSyntaxNodeProtocol {
68506857
case `statements`(RawCodeBlockItemListSyntax)
68516858
case `switchCases`(RawSwitchCaseListSyntax)
@@ -9099,6 +9106,7 @@ public struct RawDeinitializerDeclSyntax: RawDeclSyntaxNodeProtocol, RawSyntaxTo
90999106

91009107
@_spi(RawSyntax)
91019108
public struct RawSubscriptDeclSyntax: RawDeclSyntaxNodeProtocol, RawSyntaxToSyntax {
9109+
@frozen
91029110
public enum Accessor: RawSyntaxNodeProtocol {
91039111
case `accessors`(RawAccessorBlockSyntax)
91049112
case `getter`(RawCodeBlockSyntax)
@@ -9796,6 +9804,7 @@ public struct RawAccessorBlockSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
97969804

97979805
@_spi(RawSyntax)
97989806
public struct RawPatternBindingSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
9807+
@frozen
97999808
public enum Accessor: RawSyntaxNodeProtocol {
98009809
case `accessors`(RawAccessorBlockSyntax)
98019810
case `getter`(RawCodeBlockSyntax)
@@ -10736,6 +10745,7 @@ public struct RawPrecedenceGroupDeclSyntax: RawDeclSyntaxNodeProtocol, RawSyntax
1073610745

1073710746
@_spi(RawSyntax)
1073810747
public struct RawPrecedenceGroupAttributeListSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
10748+
@frozen
1073910749
public enum Element: RawSyntaxNodeProtocol {
1074010750
case `precedenceGroupRelation`(RawPrecedenceGroupRelationSyntax)
1074110751
case `precedenceGroupAssignment`(RawPrecedenceGroupAssignmentSyntax)
@@ -11126,6 +11136,7 @@ public struct RawPrecedenceGroupAssociativitySyntax: RawSyntaxNodeProtocol, RawS
1112611136

1112711137
@_spi(RawSyntax)
1112811138
public struct RawMacroDeclSyntax: RawDeclSyntaxNodeProtocol, RawSyntaxToSyntax {
11139+
@frozen
1112911140
public enum Signature: RawSyntaxNodeProtocol {
1113011141
case `functionLike`(RawFunctionSignatureSyntax)
1113111142
case `valueLike`(RawTypeAnnotationSyntax)
@@ -11650,6 +11661,7 @@ public struct RawCustomAttributeSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax
1165011661

1165111662
@_spi(RawSyntax)
1165211663
public struct RawAttributeSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
11664+
@frozen
1165311665
public enum Argument: RawSyntaxNodeProtocol {
1165411666
case `token`(RawTokenSyntax)
1165511667
case `stringExpr`(RawStringLiteralExprSyntax)
@@ -11851,6 +11863,7 @@ public struct RawAttributeSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
1185111863

1185211864
@_spi(RawSyntax)
1185311865
public struct RawAttributeListSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
11866+
@frozen
1185411867
public enum Element: RawSyntaxNodeProtocol {
1185511868
case `attribute`(RawAttributeSyntax)
1185611869
case `customAttribute`(RawCustomAttributeSyntax)
@@ -11926,6 +11939,7 @@ public struct RawAttributeListSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
1192611939

1192711940
@_spi(RawSyntax)
1192811941
public struct RawSpecializeAttributeSpecListSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
11942+
@frozen
1192911943
public enum Element: RawSyntaxNodeProtocol {
1193011944
case `labeledSpecializeEntry`(RawLabeledSpecializeEntrySyntax)
1193111945
case `availabilityEntry`(RawAvailabilityEntrySyntax)
@@ -12250,6 +12264,7 @@ public struct RawTargetFunctionEntrySyntax: RawSyntaxNodeProtocol, RawSyntaxToSy
1225012264

1225112265
@_spi(RawSyntax)
1225212266
public struct RawNamedAttributeStringArgumentSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
12267+
@frozen
1225312268
public enum StringOrDeclname: RawSyntaxNodeProtocol {
1225412269
case `string`(RawTokenSyntax)
1225512270
case `declname`(RawDeclNameSyntax)
@@ -12684,6 +12699,7 @@ public struct RawDifferentiableAttributeArgumentsSyntax: RawSyntaxNodeProtocol,
1268412699

1268512700
@_spi(RawSyntax)
1268612701
public struct RawDifferentiabilityParamsClauseSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
12702+
@frozen
1268712703
public enum Parameters: RawSyntaxNodeProtocol {
1268812704
case `parameter`(RawDifferentiabilityParamSyntax)
1268912705
case `parameterList`(RawDifferentiabilityParamsSyntax)
@@ -13930,6 +13946,7 @@ public struct RawExpressionStmtSyntax: RawStmtSyntaxNodeProtocol, RawSyntaxToSyn
1393013946

1393113947
@_spi(RawSyntax)
1393213948
public struct RawSwitchCaseListSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
13949+
@frozen
1393313950
public enum Element: RawSyntaxNodeProtocol {
1393413951
case `switchCase`(RawSwitchCaseSyntax)
1393513952
case `ifConfigDecl`(RawIfConfigDeclSyntax)
@@ -14627,6 +14644,7 @@ public struct RawReturnStmtSyntax: RawStmtSyntaxNodeProtocol, RawSyntaxToSyntax
1462714644

1462814645
@_spi(RawSyntax)
1462914646
public struct RawYieldStmtSyntax: RawStmtSyntaxNodeProtocol, RawSyntaxToSyntax {
14647+
@frozen
1463014648
public enum Yields: RawSyntaxNodeProtocol {
1463114649
case `yieldList`(RawYieldListSyntax)
1463214650
case `simpleYield`(RawExprSyntax)
@@ -14981,6 +14999,7 @@ public struct RawCatchItemListSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
1498114999

1498215000
@_spi(RawSyntax)
1498315001
public struct RawConditionElementSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
15002+
@frozen
1498415003
public enum Condition: RawSyntaxNodeProtocol {
1498515004
case `expression`(RawExprSyntax)
1498615005
case `availability`(RawAvailabilityConditionSyntax)
@@ -15652,6 +15671,7 @@ public struct RawThrowStmtSyntax: RawStmtSyntaxNodeProtocol, RawSyntaxToSyntax {
1565215671

1565315672
@_spi(RawSyntax)
1565415673
public struct RawIfStmtSyntax: RawStmtSyntaxNodeProtocol, RawSyntaxToSyntax {
15674+
@frozen
1565515675
public enum ElseBody: RawSyntaxNodeProtocol {
1565615676
case `ifStmt`(RawIfStmtSyntax)
1565715677
case `codeBlock`(RawCodeBlockSyntax)
@@ -15771,6 +15791,7 @@ public struct RawIfStmtSyntax: RawStmtSyntaxNodeProtocol, RawSyntaxToSyntax {
1577115791

1577215792
@_spi(RawSyntax)
1577315793
public struct RawSwitchCaseSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
15794+
@frozen
1577415795
public enum Label: RawSyntaxNodeProtocol {
1577515796
case `default`(RawSwitchDefaultLabelSyntax)
1577615797
case `case`(RawSwitchCaseLabelSyntax)
@@ -16418,6 +16439,7 @@ public struct RawGenericRequirementListSyntax: RawSyntaxNodeProtocol, RawSyntaxT
1641816439

1641916440
@_spi(RawSyntax)
1642016441
public struct RawGenericRequirementSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
16442+
@frozen
1642116443
public enum Body: RawSyntaxNodeProtocol {
1642216444
case `sameTypeRequirement`(RawSameTypeRequirementSyntax)
1642316445
case `conformanceRequirement`(RawConformanceRequirementSyntax)
@@ -19437,6 +19459,7 @@ public struct RawAvailabilitySpecListSyntax: RawSyntaxNodeProtocol, RawSyntaxToS
1943719459

1943819460
@_spi(RawSyntax)
1943919461
public struct RawAvailabilityArgumentSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
19462+
@frozen
1944019463
public enum Entry: RawSyntaxNodeProtocol {
1944119464
case `token`(RawTokenSyntax)
1944219465
case `availabilityVersionRestriction`(RawAvailabilityVersionRestrictionSyntax)
@@ -19538,6 +19561,7 @@ public struct RawAvailabilityArgumentSyntax: RawSyntaxNodeProtocol, RawSyntaxToS
1953819561

1953919562
@_spi(RawSyntax)
1954019563
public struct RawAvailabilityLabeledArgumentSyntax: RawSyntaxNodeProtocol, RawSyntaxToSyntax {
19564+
@frozen
1954119565
public enum Value: RawSyntaxNodeProtocol {
1954219566
case `string`(RawTokenSyntax)
1954319567
case `version`(RawVersionTupleSyntax)

Sources/SwiftSyntax/gyb_generated/SyntaxCollections.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1289,6 +1289,7 @@ extension DictionaryElementListSyntax: BidirectionalCollection {
12891289
/// as a regular Swift collection, and has accessors that return new
12901290
/// versions of the collection with different children.
12911291
public struct StringLiteralSegmentsSyntax: SyntaxCollection, SyntaxHashable {
1292+
@frozen
12921293
public enum Element: SyntaxChildChoices {
12931294
case `stringSegment`(StringSegmentSyntax)
12941295
case `expressionSegment`(ExpressionSegmentSyntax)
@@ -6108,6 +6109,7 @@ extension DesignatedTypeListSyntax: BidirectionalCollection {
61086109
/// as a regular Swift collection, and has accessors that return new
61096110
/// versions of the collection with different children.
61106111
public struct PrecedenceGroupAttributeListSyntax: SyntaxCollection, SyntaxHashable {
6112+
@frozen
61116113
public enum Element: SyntaxChildChoices {
61126114
case `precedenceGroupRelation`(PrecedenceGroupRelationSyntax)
61136115
case `precedenceGroupAssignment`(PrecedenceGroupAssignmentSyntax)
@@ -7160,6 +7162,7 @@ extension NonEmptyTokenListSyntax: BidirectionalCollection {
71607162
/// as a regular Swift collection, and has accessors that return new
71617163
/// versions of the collection with different children.
71627164
public struct AttributeListSyntax: SyntaxCollection, SyntaxHashable {
7165+
@frozen
71637166
public enum Element: SyntaxChildChoices {
71647167
case `attribute`(AttributeSyntax)
71657168
case `customAttribute`(CustomAttributeSyntax)
@@ -7455,6 +7458,7 @@ extension AttributeListSyntax: BidirectionalCollection {
74557458
/// A collection of arguments for the `@_specialize` attribute
74567459
///
74577460
public struct SpecializeAttributeSpecListSyntax: SyntaxCollection, SyntaxHashable {
7461+
@frozen
74587462
public enum Element: SyntaxChildChoices {
74597463
case `labeledSpecializeEntry`(LabeledSpecializeEntrySyntax)
74607464
case `availabilityEntry`(AvailabilityEntrySyntax)
@@ -8517,6 +8521,7 @@ extension BackDeployVersionListSyntax: BidirectionalCollection {
85178521
/// as a regular Swift collection, and has accessors that return new
85188522
/// versions of the collection with different children.
85198523
public struct SwitchCaseListSyntax: SyntaxCollection, SyntaxHashable {
8524+
@frozen
85208525
public enum Element: SyntaxChildChoices {
85218526
case `switchCase`(SwitchCaseSyntax)
85228527
case `ifConfigDecl`(IfConfigDeclSyntax)

Sources/SwiftSyntax/gyb_generated/SyntaxEnum.swift

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

1515
/// Enum to exhaustively switch over all different syntax nodes.
16+
@frozen
1617
public enum SyntaxEnum {
1718
case unknown(UnknownSyntax)
1819
case token(TokenSyntax)

Sources/SwiftSyntax/gyb_generated/SyntaxKind.swift

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

1515
/// Enumerates the known kinds of Syntax represented in the Syntax tree.
16+
@frozen
1617
public enum SyntaxKind {
1718
case token
1819
case unknown

Sources/SwiftSyntax/gyb_generated/TokenKind.swift

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

1515
/// Enumerates the kinds of tokens in the Swift language.
16+
@frozen
1617
public enum TokenKind: Hashable {
1718
case eof
1819
case associatedtypeKeyword
@@ -1131,6 +1132,7 @@ extension TokenKind: Equatable {
11311132
}
11321133

11331134
/// Plain token kind value, without an associated `String` value.
1135+
@frozen
11341136
public enum RawTokenKind: Equatable, Hashable {
11351137
case eof
11361138
case associatedtypeKeyword

0 commit comments

Comments
 (0)