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 {
1667
1667
1668
1668
/// Parse an accessor.
1669
1669
mutating func parseAccessorDecl( ) -> RawAccessorDeclSyntax {
1670
- let forcedHandle = TokenConsumptionHandle ( spec: . keyword( . get) , missing : true )
1670
+ let forcedHandle = TokenConsumptionHandle ( spec: . keyword( . get) , tokenIsMissing : true )
1671
1671
let introducer = parseAccessorIntroducer ( forcedKind: ( . get, forcedHandle) ) !
1672
1672
return parseAccessorDecl ( introducer: introducer)
1673
1673
}
Original file line number Diff line number Diff line change @@ -34,7 +34,7 @@ public struct RecoveryConsumptionHandle {
34
34
static func missing( _ spec: TokenSpec ) -> RecoveryConsumptionHandle {
35
35
return RecoveryConsumptionHandle (
36
36
unexpectedTokens: 0 ,
37
- tokenConsumptionHandle: TokenConsumptionHandle ( spec: spec, missing : true )
37
+ tokenConsumptionHandle: TokenConsumptionHandle ( spec: spec, tokenIsMissing : true )
38
38
)
39
39
}
40
40
}
Original file line number Diff line number Diff line change @@ -44,7 +44,7 @@ struct TokenConsumptionHandle {
44
44
var spec : TokenSpec
45
45
/// If `true`, the token we should consume should be synthesized as a missing token
46
46
/// and no tokens should be consumed.
47
- var missing : Bool = false
47
+ var tokenIsMissing : Bool = false
48
48
}
49
49
50
50
extension TokenConsumer {
@@ -106,7 +106,7 @@ extension TokenConsumer {
106
106
/// Eat a token that we know we are currently positioned at, based on `at(anyIn:)`.
107
107
@inline ( __always)
108
108
mutating func eat( _ handle: TokenConsumptionHandle ) -> Token {
109
- if handle. missing {
109
+ if handle. tokenIsMissing {
110
110
return missingToken ( handle. spec)
111
111
} else {
112
112
return eat ( handle. spec)
You can’t perform that action at this time.
0 commit comments