File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1667,7 +1667,7 @@ extension Parser {
16671667
16681668 /// Parse an accessor.
16691669 mutating func parseAccessorDecl( ) -> RawAccessorDeclSyntax {
1670- let forcedHandle = TokenConsumptionHandle ( spec: . keyword( . get) , missing : true )
1670+ let forcedHandle = TokenConsumptionHandle ( spec: . keyword( . get) , tokenIsMissing : true )
16711671 let introducer = parseAccessorIntroducer ( forcedKind: ( . get, forcedHandle) ) !
16721672 return parseAccessorDecl ( introducer: introducer)
16731673 }
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public struct RecoveryConsumptionHandle {
3434 static func missing( _ spec: TokenSpec ) -> RecoveryConsumptionHandle {
3535 return RecoveryConsumptionHandle (
3636 unexpectedTokens: 0 ,
37- tokenConsumptionHandle: TokenConsumptionHandle ( spec: spec, missing : true )
37+ tokenConsumptionHandle: TokenConsumptionHandle ( spec: spec, tokenIsMissing : true )
3838 )
3939 }
4040}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ struct TokenConsumptionHandle {
4444 var spec : TokenSpec
4545 /// If `true`, the token we should consume should be synthesized as a missing token
4646 /// and no tokens should be consumed.
47- var missing : Bool = false
47+ var tokenIsMissing : Bool = false
4848}
4949
5050extension TokenConsumer {
@@ -106,7 +106,7 @@ extension TokenConsumer {
106106 /// Eat a token that we know we are currently positioned at, based on `at(anyIn:)`.
107107 @inline ( __always)
108108 mutating func eat( _ handle: TokenConsumptionHandle ) -> Token {
109- if handle. missing {
109+ if handle. tokenIsMissing {
110110 return missingToken ( handle. spec)
111111 } else {
112112 return eat ( handle. spec)
You can’t perform that action at this time.
0 commit comments