Skip to content

Commit 28d62f7

Browse files
committed
Add a throws clause to do..catch statements
1 parent ebd8e2e commit 28d62f7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

CodeGeneration/Sources/SyntaxSupport/StmtNodes.swift

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ public let STMT_NODES: [Node] = [
216216
name: "doKeyword",
217217
kind: .token(choices: [.keyword(.do)])
218218
),
219+
Child(
220+
name: "throwsClause",
221+
kind: .node(kind: .throwsClause),
222+
experimentalFeature: .typedThrows,
223+
documentation: "The clause specifying the type of errors thrown from the 'do' block.",
224+
isOptional: true
225+
),
219226
Child(
220227
name: "body",
221228
kind: .node(kind: .codeBlock),

0 commit comments

Comments
 (0)