Ben Clayton fcda15ef67 Move storage_class validation from wgsl to resolver
We don't want the WGSL parser to have to maintain type lookups.
If the WGSL language is updated to allow module-scope variables to be declared in any order, then the single-pass approach is going to fail horribly.

Instead do the check in the Resovler.
With this change, the AST nodes actually contain the correctly declared storage class.

Fix up the SPIR-V reader to generate StorageClass::kNone for handle types.
Fix all tests.

Bug: tint:724
Change-Id: I102e30c9bbef32de40e123c2676ea9a281dee74d
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/50306
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: Antonio Maiorano <amaiorano@google.com>
Reviewed-by: James Price <jrprice@google.com>
2021-05-10 18:01:51 +00:00
..
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-30 19:58:49 +00:00
2021-04-30 19:58:49 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-20 15:04:21 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-26 14:55:25 +00:00
2021-04-26 14:55:25 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-16 19:07:51 +00:00
2021-05-05 09:09:41 +00:00
2021-05-05 09:09:41 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-28 13:50:43 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-05-05 09:09:41 +00:00
2021-05-05 09:09:41 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-30 19:58:49 +00:00
2021-04-30 19:58:49 +00:00
2021-04-16 19:07:51 +00:00
2020-03-02 15:47:43 -05:00
2021-04-09 16:51:38 +00:00
2021-04-20 15:04:21 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-30 19:58:49 +00:00
2021-05-06 16:03:33 +00:00
2021-04-30 19:58:49 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2021-04-09 16:51:38 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-28 13:39:53 +00:00
2021-05-05 10:26:51 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00
2020-03-02 15:47:43 -05:00
2021-04-09 16:51:38 +00:00
2021-05-05 09:09:41 +00:00
2021-05-05 09:09:41 +00:00
2021-04-20 15:04:21 +00:00
2021-04-20 15:04:21 +00:00
2021-04-16 19:07:51 +00:00
2021-04-16 19:07:51 +00:00