swiftlang/swift-syntax

Rename `backtrack` variables to `lookahead`

ahoppen opened this issue · 2 comments

The new parser does not actually backtrack, it only looks ahead. The variables named backtrack are a leftover of migrating the parser from C++ and should all be named lookahead.

Originated from #2487 (comment)

Tracked in Apple’s issue tracker as rdar://122807373

@ahoppen I think this can be closed?