Skip to content

Commit 55d5129

Browse files
committed
Rename Parser.Lookahead functions from is* to at*
1 parent af18ea4 commit 55d5129

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Sources/SwiftParser/Expressions.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1972,7 +1972,7 @@ extension Parser.Lookahead {
19721972

19731973
// If this is the start of a get/set accessor, then it isn't a trailing
19741974
// closure.
1975-
guard !self.withLookahead({ $0.isStartOfGetSetAccessor() }) else {
1975+
guard !self.withLookahead({ $0.atStartOfGetSetAccessor() }) else {
19761976
return false
19771977
}
19781978

Sources/SwiftParser/Lookahead.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ extension Parser.Lookahead {
246246
// MARK: Lookahead
247247

248248
extension Parser.Lookahead {
249-
mutating func isStartOfGetSetAccessor() -> Bool {
249+
mutating func atStartOfGetSetAccessor() -> Bool {
250250
precondition(self.at(.leftBrace), "not checking a brace?")
251251

252252
// The only case this can happen is if the accessor label is immediately after

0 commit comments

Comments
 (0)