Skip to content

Commit ce23d97

Browse files
committed
Syntax: Add support for 'reasync' keyword
1 parent 71cd85c commit ce23d97

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/Concurrency/Runtime/reasync.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
// RUN: %empty-directory(%t)
2-
// RUN: %target-swift-frontend -emit-module-path %t/reasync.swiftmodule %S/Inputs/reasync.swift -enable-experimental-concurrency
2+
// RUN: %target-swift-frontend -emit-module-path %t/reasync.swiftmodule %S/Inputs/reasync.swift -enable-experimental-concurrency -verify-syntax-tree
33
// RUN: %target-build-swift %s -I %t -o %t/main -module-name main
44
// RUN: %target-run %t/main
55

utils/gyb_syntax_support/DeclNodes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,9 +76,9 @@
7676
Node('FunctionSignature', kind='Syntax',
7777
children=[
7878
Child('Input', kind='ParameterClause'),
79-
Child('AsyncKeyword', kind='IdentifierToken',
79+
Child('AsyncOrReasyncKeyword', kind='IdentifierToken',
8080
classification='Keyword',
81-
text_choices=['async'], is_optional=True),
81+
text_choices=['async', 'reasync'], is_optional=True),
8282
Child('ThrowsOrRethrowsKeyword', kind='Token',
8383
is_optional=True,
8484
token_choices=[

0 commit comments

Comments
 (0)