Skip to content

Commit dc8559b

Browse files
committed
SE-0414 "Typed throws" has been accepted
Drop the `typedThrows` experimental feature.
1 parent e14af92 commit dc8559b

File tree

3 files changed

+0
-7
lines changed

3 files changed

+0
-7
lines changed

CodeGeneration/Sources/SyntaxSupport/CommonNodes.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,22 +93,19 @@ public let COMMON_NODES: [Node] = [
9393
Child(
9494
name: "leftParen",
9595
kind: .token(choices: [.token(.leftParen)]),
96-
experimentalFeature: .typedThrows,
9796
documentation: "The '(' to open the thrown error type specification.",
9897
isOptional: true
9998
),
10099
Child(
101100
name: "type",
102101
kind: .node(kind: .type),
103-
experimentalFeature: .typedThrows,
104102
nameForDiagnostics: "thrown type",
105103
documentation: "The thrown error type.",
106104
isOptional: true
107105
),
108106
Child(
109107
name: "rightParen",
110108
kind: .token(choices: [.token(.rightParen)]),
111-
experimentalFeature: .typedThrows,
112109
documentation: "The ')' to close the thrown error type specification.",
113110
isOptional: true
114111
),

CodeGeneration/Sources/SyntaxSupport/ExperimentalFeatures.swift

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ import SwiftSyntax
1515
public enum ExperimentalFeature: String, CaseIterable {
1616
case referenceBindings
1717
case thenStatements
18-
case typedThrows
1918
case doExpressions
2019
case nonescapableTypes
2120
case transferringArgsAndResults
@@ -27,8 +26,6 @@ public enum ExperimentalFeature: String, CaseIterable {
2726
return "reference bindings"
2827
case .thenStatements:
2928
return "'then' statements"
30-
case .typedThrows:
31-
return "typed throws"
3229
case .doExpressions:
3330
return "'do' expressions"
3431
case .nonescapableTypes:

CodeGeneration/Sources/SyntaxSupport/StmtNodes.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,6 @@ public let STMT_NODES: [Node] = [
219219
Child(
220220
name: "throwsClause",
221221
kind: .node(kind: .throwsClause),
222-
experimentalFeature: .typedThrows,
223222
documentation: "The clause specifying the type of errors thrown from the 'do' block.",
224223
isOptional: true
225224
),

0 commit comments

Comments
 (0)