@@ -162,7 +162,7 @@ public struct DeclSyntax: DeclSyntaxProtocol, SyntaxHashable {
162
162
// We know this cast is going to succeed. Go through init(_: SyntaxData)
163
163
// to do a sanity check and verify the kind matches in debug builds and get
164
164
// maximum performance in release builds.
165
- self = syntax. cast ( Self . self)
165
+ self = Syntax ( syntax) . cast ( Self . self)
166
166
}
167
167
168
168
/// Create a ``DeclSyntax`` node from a specialized optional syntax node.
@@ -177,7 +177,7 @@ public struct DeclSyntax: DeclSyntaxProtocol, SyntaxHashable {
177
177
// We know this cast is going to succeed. Go through init(_: SyntaxData)
178
178
// to do a sanity check and verify the kind matches in debug builds and get
179
179
// maximum performance in release builds.
180
- self = syntax. cast ( Self . self)
180
+ self = Syntax ( syntax) . cast ( Self . self)
181
181
}
182
182
183
183
/// Create a ``DeclSyntax`` node from a specialized optional syntax node.
@@ -436,7 +436,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
436
436
// We know this cast is going to succeed. Go through init(_: SyntaxData)
437
437
// to do a sanity check and verify the kind matches in debug builds and get
438
438
// maximum performance in release builds.
439
- self = syntax. cast ( Self . self)
439
+ self = Syntax ( syntax) . cast ( Self . self)
440
440
}
441
441
442
442
/// Create a ``ExprSyntax`` node from a specialized optional syntax node.
@@ -451,7 +451,7 @@ public struct ExprSyntax: ExprSyntaxProtocol, SyntaxHashable {
451
451
// We know this cast is going to succeed. Go through init(_: SyntaxData)
452
452
// to do a sanity check and verify the kind matches in debug builds and get
453
453
// maximum performance in release builds.
454
- self = syntax. cast ( Self . self)
454
+ self = Syntax ( syntax) . cast ( Self . self)
455
455
}
456
456
457
457
/// Create a ``ExprSyntax`` node from a specialized optional syntax node.
@@ -738,7 +738,7 @@ public struct PatternSyntax: PatternSyntaxProtocol, SyntaxHashable {
738
738
// We know this cast is going to succeed. Go through init(_: SyntaxData)
739
739
// to do a sanity check and verify the kind matches in debug builds and get
740
740
// maximum performance in release builds.
741
- self = syntax. cast ( Self . self)
741
+ self = Syntax ( syntax) . cast ( Self . self)
742
742
}
743
743
744
744
/// Create a ``PatternSyntax`` node from a specialized optional syntax node.
@@ -753,7 +753,7 @@ public struct PatternSyntax: PatternSyntaxProtocol, SyntaxHashable {
753
753
// We know this cast is going to succeed. Go through init(_: SyntaxData)
754
754
// to do a sanity check and verify the kind matches in debug builds and get
755
755
// maximum performance in release builds.
756
- self = syntax. cast ( Self . self)
756
+ self = Syntax ( syntax) . cast ( Self . self)
757
757
}
758
758
759
759
/// Create a ``PatternSyntax`` node from a specialized optional syntax node.
@@ -995,7 +995,7 @@ public struct StmtSyntax: StmtSyntaxProtocol, SyntaxHashable {
995
995
// We know this cast is going to succeed. Go through init(_: SyntaxData)
996
996
// to do a sanity check and verify the kind matches in debug builds and get
997
997
// maximum performance in release builds.
998
- self = syntax. cast ( Self . self)
998
+ self = Syntax ( syntax) . cast ( Self . self)
999
999
}
1000
1000
1001
1001
/// Create a ``StmtSyntax`` node from a specialized optional syntax node.
@@ -1010,7 +1010,7 @@ public struct StmtSyntax: StmtSyntaxProtocol, SyntaxHashable {
1010
1010
// We know this cast is going to succeed. Go through init(_: SyntaxData)
1011
1011
// to do a sanity check and verify the kind matches in debug builds and get
1012
1012
// maximum performance in release builds.
1013
- self = syntax. cast ( Self . self)
1013
+ self = Syntax ( syntax) . cast ( Self . self)
1014
1014
}
1015
1015
1016
1016
/// Create a ``StmtSyntax`` node from a specialized optional syntax node.
@@ -1262,7 +1262,7 @@ public struct TypeSyntax: TypeSyntaxProtocol, SyntaxHashable {
1262
1262
// We know this cast is going to succeed. Go through init(_: SyntaxData)
1263
1263
// to do a sanity check and verify the kind matches in debug builds and get
1264
1264
// maximum performance in release builds.
1265
- self = syntax. cast ( Self . self)
1265
+ self = Syntax ( syntax) . cast ( Self . self)
1266
1266
}
1267
1267
1268
1268
/// Create a ``TypeSyntax`` node from a specialized optional syntax node.
@@ -1277,7 +1277,7 @@ public struct TypeSyntax: TypeSyntaxProtocol, SyntaxHashable {
1277
1277
// We know this cast is going to succeed. Go through init(_: SyntaxData)
1278
1278
// to do a sanity check and verify the kind matches in debug builds and get
1279
1279
// maximum performance in release builds.
1280
- self = syntax. cast ( Self . self)
1280
+ self = Syntax ( syntax) . cast ( Self . self)
1281
1281
}
1282
1282
1283
1283
/// Create a ``TypeSyntax`` node from a specialized optional syntax node.
0 commit comments