Unrevert "[ast] Remove unused constructors and setters".

Hopefully the trybot issue is now resolved.

This reverts commit 5792783e72,
unreverting commit 4d28b27935.

Change-Id: I2855bf17c5025a3d349e7fce16fdca342517aad3
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/34564
Reviewed-by: dan sinclair <dsinclair@chromium.org>
Commit-Queue: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
Ben Clayton
2020-12-02 18:48:58 +00:00
committed by Commit Bot service account
parent 89ea705766
commit c15d0a73ee
71 changed files with 189 additions and 376 deletions

View File

@@ -14,6 +14,7 @@
#include "src/scope_stack.h"
#include "gtest/gtest.h"
#include "src/ast/type/f32_type.h"
#include "src/ast/variable.h"
namespace tint {
@@ -31,7 +32,8 @@ TEST_F(ScopeStackTest, Global) {
}
TEST_F(ScopeStackTest, Global_SetWithPointer) {
ast::Variable v;
ast::type::F32 f32;
ast::Variable v("test", ast::StorageClass::kNone, &f32);
v.set_name("my_var");
ScopeStack<ast::Variable*> s;