Skip to content

Commit 6c92d16

Browse files
committed
Generated file changes for the isolated(any) change.
1 parent 30b9d6d commit 6c92d16

14 files changed

+242
-3
lines changed

Sources/SwiftParserDiagnostics/generated/SyntaxKindNameForDiagnostics.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,8 @@ extension SyntaxKind {
231231
return "'is'"
232232
case .isTypePattern:
233233
return "'is' pattern"
234+
case .isolatedAttributeArguments:
235+
return "@isolated arguments"
234236
case .keyPathComponent:
235237
return "key path component"
236238
case .keyPathExpr:

Sources/SwiftSyntax/Documentation.docc/generated/SwiftSyntax.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -326,6 +326,7 @@ These articles are intended for developers wishing to contribute to SwiftSyntax
326326
- <doc:SwiftSyntax/EffectsAttributeArgumentListSyntax>
327327
- <doc:SwiftSyntax/ExposeAttributeArgumentsSyntax>
328328
- <doc:SwiftSyntax/ImplementsAttributeArgumentsSyntax>
329+
- <doc:SwiftSyntax/IsolatedAttributeArgumentsSyntax>
329330
- <doc:SwiftSyntax/LabeledSpecializeArgumentSyntax>
330331
- <doc:SwiftSyntax/ObjCSelectorPieceListSyntax>
331332
- <doc:SwiftSyntax/ObjCSelectorPieceSyntax>

Sources/SwiftSyntax/generated/ChildNameForKeyPath.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1861,6 +1861,12 @@ public func childName(_ keyPath: AnyKeyPath) -> String? {
18611861
return "type"
18621862
case \IsTypePatternSyntax.unexpectedAfterType:
18631863
return "unexpectedAfterType"
1864+
case \IsolatedAttributeArgumentsSyntax.unexpectedBeforeIsolationKind:
1865+
return "unexpectedBeforeIsolationKind"
1866+
case \IsolatedAttributeArgumentsSyntax.isolationKind:
1867+
return "isolationKind"
1868+
case \IsolatedAttributeArgumentsSyntax.unexpectedAfterIsolationKind:
1869+
return "unexpectedAfterIsolationKind"
18641870
case \KeyPathComponentSyntax.unexpectedBeforePeriod:
18651871
return "unexpectedBeforePeriod"
18661872
case \KeyPathComponentSyntax.period:

Sources/SwiftSyntax/generated/SyntaxAnyVisitor.swift

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1254,6 +1254,14 @@ open class SyntaxAnyVisitor: SyntaxVisitor {
12541254
visitAnyPost(node._syntaxNode)
12551255
}
12561256

1257+
override open func visit(_ node: IsolatedAttributeArgumentsSyntax) -> SyntaxVisitorContinueKind {
1258+
return visitAny(node._syntaxNode)
1259+
}
1260+
1261+
override open func visitPost(_ node: IsolatedAttributeArgumentsSyntax) {
1262+
visitAnyPost(node._syntaxNode)
1263+
}
1264+
12571265
override open func visit(_ node: KeyPathComponentListSyntax) -> SyntaxVisitorContinueKind {
12581266
return visitAny(node._syntaxNode)
12591267
}

Sources/SwiftSyntax/generated/SyntaxBaseNodes.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1668,6 +1668,7 @@ extension Syntax {
16681668
.node(IntegerLiteralExprSyntax.self),
16691669
.node(IsExprSyntax.self),
16701670
.node(IsTypePatternSyntax.self),
1671+
.node(IsolatedAttributeArgumentsSyntax.self),
16711672
.node(KeyPathComponentListSyntax.self),
16721673
.node(KeyPathComponentSyntax.self),
16731674
.node(KeyPathExprSyntax.self),

Sources/SwiftSyntax/generated/SyntaxEnum.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ public enum SyntaxEnum: Sendable {
167167
case integerLiteralExpr(IntegerLiteralExprSyntax)
168168
case isExpr(IsExprSyntax)
169169
case isTypePattern(IsTypePatternSyntax)
170+
case isolatedAttributeArguments(IsolatedAttributeArgumentsSyntax)
170171
case keyPathComponentList(KeyPathComponentListSyntax)
171172
case keyPathComponent(KeyPathComponentSyntax)
172173
case keyPathExpr(KeyPathExprSyntax)
@@ -605,6 +606,8 @@ public extension Syntax {
605606
return .isExpr(IsExprSyntax(self)!)
606607
case .isTypePattern:
607608
return .isTypePattern(IsTypePatternSyntax(self)!)
609+
case .isolatedAttributeArguments:
610+
return .isolatedAttributeArguments(IsolatedAttributeArgumentsSyntax(self)!)
608611
case .keyPathComponentList:
609612
return .keyPathComponentList(KeyPathComponentListSyntax(self)!)
610613
case .keyPathComponent:

Sources/SwiftSyntax/generated/SyntaxKind.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,7 @@ public enum SyntaxKind: Sendable {
167167
case integerLiteralExpr
168168
case isExpr
169169
case isTypePattern
170+
case isolatedAttributeArguments
170171
case keyPathComponentList
171172
case keyPathComponent
172173
case keyPathExpr
@@ -726,6 +727,8 @@ public enum SyntaxKind: Sendable {
726727
return IsExprSyntax.self
727728
case .isTypePattern:
728729
return IsTypePatternSyntax.self
730+
case .isolatedAttributeArguments:
731+
return IsolatedAttributeArgumentsSyntax.self
729732
case .keyPathComponentList:
730733
return KeyPathComponentListSyntax.self
731734
case .keyPathComponent:

Sources/SwiftSyntax/generated/SyntaxRewriter.swift

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1126,6 +1126,13 @@ open class SyntaxRewriter {
11261126
return PatternSyntax(visitChildren(node))
11271127
}
11281128

1129+
/// Visit a ``IsolatedAttributeArgumentsSyntax``.
1130+
/// - Parameter node: the node that is being visited
1131+
/// - Returns: the rewritten node
1132+
open func visit(_ node: IsolatedAttributeArgumentsSyntax) -> IsolatedAttributeArgumentsSyntax {
1133+
return visitChildren(node)
1134+
}
1135+
11291136
/// Visit a ``KeyPathComponentListSyntax``.
11301137
/// - Parameter node: the node that is being visited
11311138
/// - Returns: the rewritten node
@@ -2712,6 +2719,10 @@ open class SyntaxRewriter {
27122719
return {
27132720
self.visitImpl($0, IsTypePatternSyntax.self, self.visit)
27142721
}
2722+
case .isolatedAttributeArguments:
2723+
return {
2724+
self.visitImpl($0, IsolatedAttributeArgumentsSyntax.self, self.visit)
2725+
}
27152726
case .keyPathComponentList:
27162727
return {
27172728
self.visitImpl($0, KeyPathComponentListSyntax.self, self.visit)
@@ -3536,6 +3547,8 @@ open class SyntaxRewriter {
35363547
return visitImpl(node, IsExprSyntax.self, visit)
35373548
case .isTypePattern:
35383549
return visitImpl(node, IsTypePatternSyntax.self, visit)
3550+
case .isolatedAttributeArguments:
3551+
return visitImpl(node, IsolatedAttributeArgumentsSyntax.self, visit)
35393552
case .keyPathComponentList:
35403553
return visitImpl(node, KeyPathComponentListSyntax.self, visit)
35413554
case .keyPathComponent:

Sources/SwiftSyntax/generated/SyntaxVisitor.swift

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1828,6 +1828,18 @@ open class SyntaxVisitor {
18281828
open func visitPost(_ node: IsTypePatternSyntax) {
18291829
}
18301830

1831+
/// Visiting ``IsolatedAttributeArgumentsSyntax`` specifically.
1832+
/// - Parameter node: the node we are visiting.
1833+
/// - Returns: how should we continue visiting.
1834+
open func visit(_ node: IsolatedAttributeArgumentsSyntax) -> SyntaxVisitorContinueKind {
1835+
return .visitChildren
1836+
}
1837+
1838+
/// The function called after visiting ``IsolatedAttributeArgumentsSyntax`` and its descendants.
1839+
/// - node: the node we just finished visiting.
1840+
open func visitPost(_ node: IsolatedAttributeArgumentsSyntax) {
1841+
}
1842+
18311843
/// Visiting ``KeyPathComponentListSyntax`` specifically.
18321844
/// - Parameter node: the node we are visiting.
18331845
/// - Returns: how should we continue visiting.
@@ -4040,6 +4052,10 @@ open class SyntaxVisitor {
40404052
return {
40414053
self.visitImpl($0, IsTypePatternSyntax.self, self.visit, self.visitPost)
40424054
}
4055+
case .isolatedAttributeArguments:
4056+
return {
4057+
self.visitImpl($0, IsolatedAttributeArgumentsSyntax.self, self.visit, self.visitPost)
4058+
}
40434059
case .keyPathComponentList:
40444060
return {
40454061
self.visitImpl($0, KeyPathComponentListSyntax.self, self.visit, self.visitPost)
@@ -4867,6 +4883,8 @@ open class SyntaxVisitor {
48674883
visitImpl(node, IsExprSyntax.self, visit, visitPost)
48684884
case .isTypePattern:
48694885
visitImpl(node, IsTypePatternSyntax.self, visit, visitPost)
4886+
case .isolatedAttributeArguments:
4887+
visitImpl(node, IsolatedAttributeArgumentsSyntax.self, visit, visitPost)
48704888
case .keyPathComponentList:
48714889
visitImpl(node, KeyPathComponentListSyntax.self, visit, visitPost)
48724890
case .keyPathComponent:

Sources/SwiftSyntax/generated/raw/RawSyntaxNodesAB.swift

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1325,9 +1325,10 @@ public struct RawAttributeSyntax: RawSyntaxNodeProtocol {
13251325
case `unavailableFromAsyncArguments`(RawUnavailableFromAsyncAttributeArgumentsSyntax)
13261326
case `effectsArguments`(RawEffectsAttributeArgumentListSyntax)
13271327
case `documentationArguments`(RawDocumentationAttributeArgumentListSyntax)
1328+
case `isolatedArguments`(RawIsolatedAttributeArgumentsSyntax)
13281329

13291330
public static func isKindOf(_ raw: RawSyntax) -> Bool {
1330-
return RawLabeledExprListSyntax.isKindOf(raw) || RawTokenSyntax.isKindOf(raw) || RawStringLiteralExprSyntax.isKindOf(raw) || RawAvailabilityArgumentListSyntax.isKindOf(raw) || RawSpecializeAttributeArgumentListSyntax.isKindOf(raw) || RawObjCSelectorPieceListSyntax.isKindOf(raw) || RawImplementsAttributeArgumentsSyntax.isKindOf(raw) || RawDifferentiableAttributeArgumentsSyntax.isKindOf(raw) || RawDerivativeAttributeArgumentsSyntax.isKindOf(raw) || RawBackDeployedAttributeArgumentsSyntax.isKindOf(raw) || RawConventionAttributeArgumentsSyntax.isKindOf(raw) || RawConventionWitnessMethodAttributeArgumentsSyntax.isKindOf(raw) || RawOpaqueReturnTypeOfAttributeArgumentsSyntax.isKindOf(raw) || RawExposeAttributeArgumentsSyntax.isKindOf(raw) || RawOriginallyDefinedInAttributeArgumentsSyntax.isKindOf(raw) || RawUnderscorePrivateAttributeArgumentsSyntax.isKindOf(raw) || RawDynamicReplacementAttributeArgumentsSyntax.isKindOf(raw) || RawUnavailableFromAsyncAttributeArgumentsSyntax.isKindOf(raw) || RawEffectsAttributeArgumentListSyntax.isKindOf(raw) || RawDocumentationAttributeArgumentListSyntax.isKindOf(raw)
1331+
return RawLabeledExprListSyntax.isKindOf(raw) || RawTokenSyntax.isKindOf(raw) || RawStringLiteralExprSyntax.isKindOf(raw) || RawAvailabilityArgumentListSyntax.isKindOf(raw) || RawSpecializeAttributeArgumentListSyntax.isKindOf(raw) || RawObjCSelectorPieceListSyntax.isKindOf(raw) || RawImplementsAttributeArgumentsSyntax.isKindOf(raw) || RawDifferentiableAttributeArgumentsSyntax.isKindOf(raw) || RawDerivativeAttributeArgumentsSyntax.isKindOf(raw) || RawBackDeployedAttributeArgumentsSyntax.isKindOf(raw) || RawConventionAttributeArgumentsSyntax.isKindOf(raw) || RawConventionWitnessMethodAttributeArgumentsSyntax.isKindOf(raw) || RawOpaqueReturnTypeOfAttributeArgumentsSyntax.isKindOf(raw) || RawExposeAttributeArgumentsSyntax.isKindOf(raw) || RawOriginallyDefinedInAttributeArgumentsSyntax.isKindOf(raw) || RawUnderscorePrivateAttributeArgumentsSyntax.isKindOf(raw) || RawDynamicReplacementAttributeArgumentsSyntax.isKindOf(raw) || RawUnavailableFromAsyncAttributeArgumentsSyntax.isKindOf(raw) || RawEffectsAttributeArgumentListSyntax.isKindOf(raw) || RawDocumentationAttributeArgumentListSyntax.isKindOf(raw) || RawIsolatedAttributeArgumentsSyntax.isKindOf(raw)
13311332
}
13321333

13331334
public var raw: RawSyntax {
@@ -1372,6 +1373,8 @@ public struct RawAttributeSyntax: RawSyntaxNodeProtocol {
13721373
return node.raw
13731374
case .documentationArguments(let node):
13741375
return node.raw
1376+
case .isolatedArguments(let node):
1377+
return node.raw
13751378
}
13761379
}
13771380

@@ -1456,6 +1459,10 @@ public struct RawAttributeSyntax: RawSyntaxNodeProtocol {
14561459
self = .documentationArguments(node)
14571460
return
14581461
}
1462+
if let node = RawIsolatedAttributeArgumentsSyntax(other) {
1463+
self = .isolatedArguments(node)
1464+
return
1465+
}
14591466
return nil
14601467
}
14611468
}

0 commit comments

Comments
 (0)