Remove deprecated APIs

Remove the Parser classes from the wgsl and spirv namespaces.
These have been replaced with a Parse() method.

Remove the TypeDeterminer::Run() method, this was not called by tint and
the TypeDeterminer is now non-public API.

Change-Id: I5ddb82768da04398ab3958d1647be44f9fe30c21
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/41840
Commit-Queue: Ben Clayton <bclayton@google.com>
Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Ben Clayton
2021-02-17 20:15:25 +00:00
committed by Commit Bot service account
parent 6b4924fb0e
commit 7206e25798
11 changed files with 10 additions and 177 deletions

View File

@@ -42,16 +42,12 @@ class TransformTest : public testing::Test {
std::string Transform(
std::string in,
std::vector<std::unique_ptr<transform::Transform>> transforms) {
Source::File file("test", in);
reader::wgsl::Parser parser(&file);
if (!parser.Parse()) {
return "WGSL reader failed:\n" + parser.error();
}
diag::Formatter::Style style;
style.print_newline_at_end = false;
auto program = parser.program();
Source::File file("test", in);
auto program = reader::wgsl::Parse(&file);
if (!program.IsValid()) {
return diag::Formatter(style).format(program.Diagnostics());
}