Remove fallthrough from WGSL parser.

This CL removes the `fallthrough` parsing from the WGSL parser. The
`fallthrough` token is left so we can generate a nicer error message
in the case `fallthrough` is used.

Bug: tint:1644
Change-Id: Ifb23d78d1219cba9c64b80c9b098a248bc68e5c5
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/109001
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair
2022-11-15 00:20:24 +00:00
committed by Dawn LUCI CQ
parent d8a986beae
commit bf586f6dfd
5 changed files with 6 additions and 132 deletions

View File

@@ -688,7 +688,6 @@ fn foo() -> i32 {
return 1;
}
bar = 6;
fallthrough;
}
case 2 {
bar = 5;
@@ -726,7 +725,6 @@ fn foo() -> i32 {
}
}
bar = 6;
fallthrough;
}
case 2: {
bar = 5;