@@ -137,7 +137,7 @@ public enum EffectSpecifier: TokenSpecSet {
137
137
protocol RawEffectSpecifiersTrait {
138
138
/// The token kinds that should be consumed as misspelled `asyncSpecifier`.
139
139
/// Should be a subset of ``AsyncEffectSpecifier``.
140
- associatedtype MisspelledAsyncSpecifiers : TokenSpecSet
140
+ associatedtype MisspelledAsyncTokenKinds : TokenSpecSet
141
141
142
142
/// The token kinds that we can consume as a correct `asyncSpecifier`.
143
143
/// Should be a subset of ``AsyncEffectSpecifier``.
@@ -181,7 +181,7 @@ extension RawEffectSpecifiersTrait {
181
181
}
182
182
183
183
extension RawFunctionEffectSpecifiersSyntax : RawEffectSpecifiersTrait {
184
- enum MisspelledAsyncSpecifiers : TokenSpecSet {
184
+ enum MisspelledAsyncTokenKinds : TokenSpecSet {
185
185
case await
186
186
187
187
init ? ( lexeme: Lexer . Lexeme ) {
@@ -260,7 +260,7 @@ extension RawFunctionEffectSpecifiersSyntax: RawEffectSpecifiersTrait {
260
260
}
261
261
262
262
extension RawTypeEffectSpecifiersSyntax : RawEffectSpecifiersTrait {
263
- enum MisspelledAsyncSpecifiers : TokenSpecSet {
263
+ enum MisspelledAsyncTokenKinds : TokenSpecSet {
264
264
case await
265
265
case reasync
266
266
@@ -339,7 +339,7 @@ extension RawTypeEffectSpecifiersSyntax: RawEffectSpecifiersTrait {
339
339
}
340
340
341
341
extension RawAccessorEffectSpecifiersSyntax : RawEffectSpecifiersTrait {
342
- enum MisspelledAsyncSpecifiers : TokenSpecSet {
342
+ enum MisspelledAsyncTokenKinds : TokenSpecSet {
343
343
case await
344
344
case reasync
345
345
@@ -442,7 +442,7 @@ extension Parser {
442
442
var unexpectedBeforeThrows : [ RawSyntax ] = [ ]
443
443
var throwsKeyword : RawTokenSyntax ?
444
444
var unexpectedAfterThrows : [ RawSyntax ] = [ ]
445
- while let misspelledAsync = self . consume ( ifAnyIn: S . MisspelledAsyncSpecifiers . self) {
445
+ while let misspelledAsync = self . consume ( ifAnyIn: S . MisspelledAsyncTokenKinds . self) {
446
446
unexpectedBeforeAsync. append ( RawSyntax ( misspelledAsync) )
447
447
if asyncKeyword == nil {
448
448
// Let's synthesize a missing 'async'. If we find a real async specifier
@@ -458,7 +458,7 @@ extension Parser {
458
458
459
459
var unexpectedBeforeThrowsLoopProgress = LoopProgressCondition ( )
460
460
while unexpectedBeforeThrowsLoopProgress. evaluate ( self . currentToken) {
461
- if let misspelledAsync = self . consume ( ifAnyIn: S . MisspelledAsyncSpecifiers . self) {
461
+ if let misspelledAsync = self . consume ( ifAnyIn: S . MisspelledAsyncTokenKinds . self) {
462
462
unexpectedBeforeThrows. append ( RawSyntax ( misspelledAsync) )
463
463
} else if let misspelledThrows = self . consume ( ifAnyIn: S . MisspelledThrowsTokenKinds. self) {
464
464
unexpectedBeforeThrows. append ( RawSyntax ( misspelledThrows) )
@@ -480,7 +480,7 @@ extension Parser {
480
480
481
481
var unexpectedAfterThrowsLoopProgress = LoopProgressCondition ( )
482
482
while unexpectedAfterThrowsLoopProgress. evaluate ( self . currentToken) {
483
- if let ( _, handle, _) = self . at ( anyIn: S . MisspelledAsyncSpecifiers . self, or: S . CorrectAsyncTokenKinds. self) {
483
+ if let ( _, handle, _) = self . at ( anyIn: S . MisspelledAsyncTokenKinds . self, or: S . CorrectAsyncTokenKinds. self) {
484
484
let misspelledAsync = self . eat ( handle)
485
485
unexpectedAfterThrows. append ( RawSyntax ( misspelledAsync) )
486
486
if asyncKeyword == nil {
@@ -531,7 +531,7 @@ extension Parser {
531
531
var unexpected : [ RawTokenSyntax ] = [ ]
532
532
var loopProgress = LoopProgressCondition ( )
533
533
while loopProgress. evaluate ( self . currentToken) {
534
- if let ( spec, handle, matchedSubset) = self . at ( anyIn: S . MisspelledAsyncSpecifiers . self, or: S . CorrectAsyncTokenKinds. self) {
534
+ if let ( spec, handle, matchedSubset) = self . at ( anyIn: S . MisspelledAsyncTokenKinds . self, or: S . CorrectAsyncTokenKinds. self) {
535
535
let misspelledAsync = self . eat ( handle)
536
536
unexpected. append ( misspelledAsync)
537
537
if effectSpecifiers? . asyncSpecifier == nil {
0 commit comments