[type-determiner] Move ast::Module to constructor.

This CL moves the ast::Module to be provided to the type determiner
constructor so we can access it for things like the imports.

Change-Id: I110fffe669a8a007461bf84d30d85d70405e37be
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/19761
Reviewed-by: David Neto <dneto@google.com>
This commit is contained in:
dan sinclair
2020-04-20 14:20:01 +00:00
committed by dan sinclair
parent cd077b01a9
commit b950e80a59
7 changed files with 102 additions and 100 deletions

View File

@@ -305,8 +305,8 @@ int main(int argc, const char** argv) {
return 1;
}
tint::TypeDeterminer td(&ctx);
if (!td.Determine(&mod)) {
tint::TypeDeterminer td(&ctx, &mod);
if (!td.Determine()) {
std::cerr << td.error() << std::endl;
return 1;
}