Ben Clayton 7b6bcb6e0b Fix AST declaration order when cloning Programs
Change 41302 correctly fixed up Module::Clone(), but this wasn't actually called by the CloneContext, as Module::Clone() returns a new Module, where as the CloneContext needs to clone into an existing Module.

Refactor the code so that this duplicated logic is moved into a single Module::Copy() method.

Fixed: 1177275
Change-Id: Ia8c45ef05e03b2891b5785ee6f425dd01cb989c6
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/41542
Reviewed-by: James Price <jrprice@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
2021-02-11 20:23:03 +00:00
..
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2020-12-10 18:42:41 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-02-03 16:43:20 +00:00
2021-02-03 16:43:20 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2020-03-02 15:47:43 -05:00
2020-03-02 15:47:43 -05:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2020-12-10 18:42:41 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2021-01-29 10:55:40 +00:00
2020-03-02 15:47:43 -05:00
2020-03-02 15:47:43 -05:00
2020-12-10 18:42:41 +00:00
2021-02-03 17:51:09 +00:00
2021-02-03 17:51:09 +00:00