mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Expand the "skip" functions in the parser to be more careful about not skipping passed a #endif or a code completion token, since they are synchronization points for the parser. The fix was to change Parser::delayParseFromBeginningToHere to use a manual loop instead of skipUntil (which can stop early for non-EOF tokens).
6 lines
144 B
Swift
6 lines
144 B
Swift
// RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
|
|
class#^A^#{
|
|
protocol e:A
|
|
protocol A:A
|
|
protocol c:e
|