mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-08-30 23:40:22 +00:00
Currently when peeking, if there is placeholder then anything after the `peek(0)` will be off by 1 position as the placeholder will end up included in the index count. This CL updates the peek routine to correctly skip over any placeholder element between the current index and the requested peek token. Bug: tint:1633 Change-Id: Idd2905cc3b9c0a0dcbbcc94c0f6dd349b569ec3e Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/99900 Reviewed-by: Ben Clayton <bclayton@google.com> Commit-Queue: Dan Sinclair <dsinclair@chromium.org>