James Price
d9f659670d
tint: Handle @diagnostic on block statements
...
Use expect_compound_statement() in all the places that use
compound_statement in the WGSL grammar.
Handle attributes on statements inside Resolver::StatementScope, so
that the logic can be reused for the various places where block
statements are used. This will also make it easier to reuse this logic
when we allow these attributes on other types of statement in the
future.
Add an `EmitBlockHeader()` helper to the WGSL writer to reuse the
logic for emitting attributes on block statements for all the places
that use them.
Bug: tint:1809
Change-Id: Iac3bb01f5031e6134c1798ddafdad080412c8bef
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/118000
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Commit-Queue: James Price <jrprice@google.com>
2023-02-01 23:14:10 +00:00
..
2023-01-21 23:44:38 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-08-02 17:03:35 +00:00
2022-08-02 17:03:35 +00:00
2022-08-02 17:03:35 +00:00
2022-05-05 20:23:40 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-04-07 18:39:35 +00:00
2022-08-02 17:03:35 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-10-18 23:57:25 +00:00
2022-09-08 01:04:34 +00:00
2022-09-08 01:04:34 +00:00
2022-09-08 01:04:34 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2023-02-01 23:14:10 +00:00
2023-02-01 23:14:10 +00:00
2023-02-01 23:14:10 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-10-20 22:45:50 +00:00
2022-10-20 22:45:50 +00:00
2022-10-24 17:49:20 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-07-27 18:48:06 +00:00
2022-07-27 18:48:06 +00:00
2022-07-27 18:48:06 +00:00
2023-01-23 16:24:12 +00:00
2023-01-23 16:24:12 +00:00
2022-10-11 18:26:18 +00:00
2022-07-27 22:21:30 +00:00
2022-10-12 18:49:15 +00:00
2022-07-27 22:21:30 +00:00
2022-10-12 18:49:15 +00:00
2022-07-27 22:21:30 +00:00
2022-10-12 18:49:15 +00:00
2022-10-11 19:49:17 +00:00
2022-08-02 17:03:35 +00:00
2022-08-02 17:03:35 +00:00
2022-08-02 17:03:35 +00:00
2022-08-02 17:03:35 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-10-19 15:55:02 +00:00
2022-10-19 15:55:02 +00:00
2022-10-19 15:55:02 +00:00
2023-02-01 23:14:10 +00:00
2022-10-19 15:55:02 +00:00
2022-10-19 15:55:02 +00:00
2022-05-05 20:23:40 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2023-01-24 14:59:43 +00:00
2023-01-24 14:59:43 +00:00
2023-01-24 14:59:43 +00:00
2022-10-20 13:38:28 +00:00
2022-10-20 13:38:28 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2023-01-21 19:16:15 +00:00
2023-01-21 19:16:15 +00:00
2023-01-21 19:16:15 +00:00
2023-01-21 19:16:15 +00:00
2023-01-21 19:16:15 +00:00
2023-01-21 19:16:15 +00:00
2023-01-24 18:44:27 +00:00
2023-01-24 18:44:27 +00:00
2023-01-24 18:44:27 +00:00
2023-01-25 01:24:46 +00:00
2023-01-24 21:01:36 +00:00
2023-01-25 01:24:46 +00:00
2023-01-24 21:01:36 +00:00
2023-01-25 01:24:46 +00:00
2023-01-24 21:01:36 +00:00
2023-01-25 01:24:46 +00:00
2023-01-25 01:24:46 +00:00
2022-11-17 17:27:27 +00:00
2022-11-17 17:27:27 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-18 22:41:48 +00:00
2022-07-18 20:50:02 +00:00
2022-08-02 17:03:35 +00:00
2022-07-18 20:50:02 +00:00
2022-12-08 00:32:27 +00:00
2022-11-30 19:13:29 +00:00
2022-07-27 18:32:19 +00:00
2022-11-30 19:13:29 +00:00
2022-07-27 18:32:19 +00:00
2022-11-30 19:13:29 +00:00
2022-07-27 18:32:19 +00:00
2022-11-30 19:13:29 +00:00
2022-08-17 18:07:20 +00:00
2023-01-21 19:16:15 +00:00
2023-01-21 19:16:15 +00:00
2022-07-18 20:50:02 +00:00
2022-05-13 12:01:11 +00:00
2022-07-18 20:50:02 +00:00
2022-07-20 15:53:14 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-31 20:45:59 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-05 20:23:40 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-08-02 17:03:35 +00:00
2022-08-02 17:03:35 +00:00
2022-08-02 17:03:35 +00:00
2022-09-08 01:04:34 +00:00
2022-09-08 01:04:34 +00:00
2022-09-08 01:04:34 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-09-08 01:04:34 +00:00
2022-09-08 01:04:34 +00:00
2022-09-08 01:04:34 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-02 14:53:36 +00:00
2022-07-18 20:50:02 +00:00
2022-10-11 16:31:52 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-31 20:45:59 +00:00
2022-07-18 20:50:02 +00:00
2022-07-20 15:53:14 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-12-01 11:40:24 +00:00
2022-12-01 11:40:24 +00:00
2022-12-01 11:40:24 +00:00
2022-12-01 11:40:24 +00:00
2022-10-12 18:49:15 +00:00
2022-10-11 19:49:17 +00:00
2022-10-12 18:49:15 +00:00
2022-10-11 19:49:17 +00:00
2022-04-07 18:39:35 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-10-20 13:38:28 +00:00
2022-10-20 13:38:28 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-09-08 01:04:34 +00:00
2022-09-08 01:04:34 +00:00
2022-09-08 01:04:34 +00:00
2022-08-02 17:03:35 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2023-01-21 23:44:38 +00:00
2022-07-18 20:50:02 +00:00
2022-10-20 13:38:28 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2023-01-24 23:13:38 +00:00
2023-01-24 21:01:36 +00:00
2023-01-24 21:01:36 +00:00
2023-01-24 21:01:36 +00:00
2023-01-21 23:44:38 +00:00
2023-01-21 19:16:15 +00:00
2023-01-21 19:16:15 +00:00
2022-12-09 12:34:36 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-10-20 13:38:28 +00:00
2022-10-20 13:38:28 +00:00
2022-08-02 17:03:35 +00:00
2022-08-02 17:03:35 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-01 14:40:55 +00:00
2022-04-07 18:39:35 +00:00
2023-01-21 23:44:38 +00:00
2023-01-21 23:44:38 +00:00
2023-01-21 23:44:38 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2023-01-21 19:16:15 +00:00
2023-01-21 19:16:15 +00:00
2023-01-21 19:16:15 +00:00
2023-01-23 16:24:12 +00:00
2023-01-23 16:24:12 +00:00
2023-01-23 16:24:12 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-11-15 00:30:33 +00:00
2022-08-02 17:03:35 +00:00
2023-01-21 23:51:25 +00:00
2023-01-21 23:51:25 +00:00
2023-01-21 23:51:25 +00:00
2022-06-29 14:38:15 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-09-08 01:04:34 +00:00
2022-09-08 01:04:34 +00:00
2022-09-08 01:04:34 +00:00
2022-09-09 14:49:09 +00:00
2022-09-09 14:49:09 +00:00
2022-09-09 14:49:09 +00:00
2022-09-09 14:49:09 +00:00
2022-09-09 14:49:09 +00:00
2022-09-09 14:49:09 +00:00
2022-09-09 14:49:09 +00:00
2022-08-02 17:03:35 +00:00
2022-08-02 17:03:35 +00:00
2022-09-02 19:19:10 +00:00
2022-08-02 17:03:35 +00:00
2022-08-02 17:03:35 +00:00
2022-10-19 15:55:02 +00:00
2022-08-02 17:03:35 +00:00
2022-10-17 21:45:34 +00:00
2022-04-07 18:39:35 +00:00
2023-01-21 19:16:15 +00:00
2023-01-21 19:16:15 +00:00
2023-01-21 19:16:15 +00:00
2022-08-02 17:03:35 +00:00
2023-01-12 22:52:57 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2023-01-26 10:49:19 +00:00
2022-07-18 20:50:02 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-01 14:40:55 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-01 14:40:55 +00:00
2022-05-01 14:40:55 +00:00
2023-01-21 23:44:38 +00:00
2023-01-21 23:44:38 +00:00
2022-08-19 17:28:53 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2023-01-21 19:56:49 +00:00
2022-10-20 13:38:28 +00:00
2023-01-21 23:44:38 +00:00
2022-06-29 14:38:15 +00:00
2022-07-18 20:50:02 +00:00
2022-10-20 13:38:28 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-06-16 12:01:27 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00
2022-05-05 20:23:40 +00:00
2022-07-18 20:50:02 +00:00
2022-07-18 20:50:02 +00:00