mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
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:
committed by
Dawn LUCI CQ
parent
d8a986beae
commit
bf586f6dfd
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user