@@ -137,7 +137,7 @@ public enum EffectSpecifier: TokenSpecSet {
137137protocol RawEffectSpecifiersTrait {
138138 /// The token kinds that should be consumed as misspelled `asyncSpecifier`.
139139 /// Should be a subset of ``AsyncEffectSpecifier``.
140- associatedtype MisspelledAsyncSpecifiers : TokenSpecSet
140+ associatedtype MisspelledAsyncTokenKinds : TokenSpecSet
141141
142142 /// The token kinds that we can consume as a correct `asyncSpecifier`.
143143 /// Should be a subset of ``AsyncEffectSpecifier``.
@@ -181,7 +181,7 @@ extension RawEffectSpecifiersTrait {
181181}
182182
183183extension RawFunctionEffectSpecifiersSyntax : RawEffectSpecifiersTrait {
184- enum MisspelledAsyncSpecifiers : TokenSpecSet {
184+ enum MisspelledAsyncTokenKinds : TokenSpecSet {
185185 case await
186186
187187 init ? ( lexeme: Lexer . Lexeme ) {
@@ -260,7 +260,7 @@ extension RawFunctionEffectSpecifiersSyntax: RawEffectSpecifiersTrait {
260260}
261261
262262extension RawTypeEffectSpecifiersSyntax : RawEffectSpecifiersTrait {
263- enum MisspelledAsyncSpecifiers : TokenSpecSet {
263+ enum MisspelledAsyncTokenKinds : TokenSpecSet {
264264 case await
265265 case reasync
266266
@@ -339,7 +339,7 @@ extension RawTypeEffectSpecifiersSyntax: RawEffectSpecifiersTrait {
339339}
340340
341341extension RawAccessorEffectSpecifiersSyntax : RawEffectSpecifiersTrait {
342- enum MisspelledAsyncSpecifiers : TokenSpecSet {
342+ enum MisspelledAsyncTokenKinds : TokenSpecSet {
343343 case await
344344 case reasync
345345
@@ -442,7 +442,7 @@ extension Parser {
442442 var unexpectedBeforeThrows : [ RawSyntax ] = [ ]
443443 var throwsKeyword : RawTokenSyntax ?
444444 var unexpectedAfterThrows : [ RawSyntax ] = [ ]
445- while let misspelledAsync = self . consume ( ifAnyIn: S . MisspelledAsyncSpecifiers . self) {
445+ while let misspelledAsync = self . consume ( ifAnyIn: S . MisspelledAsyncTokenKinds . self) {
446446 unexpectedBeforeAsync. append ( RawSyntax ( misspelledAsync) )
447447 if asyncKeyword == nil {
448448 // Let's synthesize a missing 'async'. If we find a real async specifier
@@ -458,7 +458,7 @@ extension Parser {
458458
459459 var unexpectedBeforeThrowsLoopProgress = LoopProgressCondition ( )
460460 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) {
462462 unexpectedBeforeThrows. append ( RawSyntax ( misspelledAsync) )
463463 } else if let misspelledThrows = self . consume ( ifAnyIn: S . MisspelledThrowsTokenKinds. self) {
464464 unexpectedBeforeThrows. append ( RawSyntax ( misspelledThrows) )
@@ -480,7 +480,7 @@ extension Parser {
480480
481481 var unexpectedAfterThrowsLoopProgress = LoopProgressCondition ( )
482482 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) {
484484 let misspelledAsync = self . eat ( handle)
485485 unexpectedAfterThrows. append ( RawSyntax ( misspelledAsync) )
486486 if asyncKeyword == nil {
@@ -531,7 +531,7 @@ extension Parser {
531531 var unexpected : [ RawTokenSyntax ] = [ ]
532532 var loopProgress = LoopProgressCondition ( )
533533 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) {
535535 let misspelledAsync = self . eat ( handle)
536536 unexpected. append ( misspelledAsync)
537537 if effectSpecifiers? . asyncSpecifier == nil {
0 commit comments