#include "gmock/gmock.h"
#include "src/tint/lang/core/type/reference.h"
#include "src/tint/lang/core/type/texture_dimension.h"
#include "src/tint/lang/wgsl/resolver/resolver.h"
#include "src/tint/lang/wgsl/resolver/resolver_helper_test.h"
namespace tint::resolver {
namespace {
usingnamespacetint::core::fluent_types;
usingnamespacetint::core::number_suffixes;
struct ResolverVariableTest : public resolver::TestHelper, public testing::Test { … };
TEST_F(ResolverVariableTest, LocalVar_NoInitializer) { … }
TEST_F(ResolverVariableTest, LocalVar_WithInitializer) { … }
TEST_F(ResolverVariableTest, LocalVar_ShadowsAlias) { … }
TEST_F(ResolverVariableTest, LocalVar_ShadowsStruct) { … }
TEST_F(ResolverVariableTest, LocalVar_ShadowsFunction) { … }
TEST_F(ResolverVariableTest, LocalVar_ShadowsGlobalVar) { … }
TEST_F(ResolverVariableTest, LocalVar_ShadowsGlobalConst) { … }
TEST_F(ResolverVariableTest, LocalVar_ShadowsLocalVar) { … }
TEST_F(ResolverVariableTest, LocalVar_ShadowsLocalConst) { … }
TEST_F(ResolverVariableTest, LocalVar_ShadowsLocalLet) { … }
TEST_F(ResolverVariableTest, LocalVar_ShadowsParam) { … }
TEST_F(ResolverVariableTest, LocalLet) { … }
TEST_F(ResolverVariableTest, LocalLet_InheritsAccessFromOriginatingVariable) { … }
TEST_F(ResolverVariableTest, LocalLet_ShadowsAlias) { … }
TEST_F(ResolverVariableTest, LocalLet_ShadowsStruct) { … }
TEST_F(ResolverVariableTest, LocalLet_ShadowsFunction) { … }
TEST_F(ResolverVariableTest, LocalLet_ShadowsGlobalVar) { … }
TEST_F(ResolverVariableTest, LocalLet_ShadowsGlobalConst) { … }
TEST_F(ResolverVariableTest, LocalLet_ShadowsLocalVar) { … }
TEST_F(ResolverVariableTest, LocalLet_ShadowsLocalConst) { … }
TEST_F(ResolverVariableTest, LocalLet_ShadowsLocalLet) { … }
TEST_F(ResolverVariableTest, LocalLet_ShadowsParam) { … }
TEST_F(ResolverVariableTest, LocalConst_ShadowsAlias) { … }
TEST_F(ResolverVariableTest, LocalConst_ShadowsStruct) { … }
TEST_F(ResolverVariableTest, LocalConst_ShadowsFunction) { … }
TEST_F(ResolverVariableTest, LocalConst_ShadowsGlobalVar) { … }
TEST_F(ResolverVariableTest, LocalConst_ShadowsGlobalConst) { … }
TEST_F(ResolverVariableTest, LocalConst_ShadowsLocalVar) { … }
TEST_F(ResolverVariableTest, LocalConst_ShadowsLocalConst) { … }
TEST_F(ResolverVariableTest, LocalConst_ShadowsLocalLet) { … }
TEST_F(ResolverVariableTest, LocalConst_ShadowsParam) { … }
TEST_F(ResolverVariableTest, LocalConst_ExplicitType_Decls) { … }
TEST_F(ResolverVariableTest, LocalConst_ImplicitType_Decls) { … }
TEST_F(ResolverVariableTest, LocalConst_PropagateConstValue) { … }
TEST_F(ResolverVariableTest, LocalConst_ConstEval) { … }
TEST_F(ResolverVariableTest, GlobalVar_AddressSpace) { … }
TEST_F(ResolverVariableTest, GlobalVar_ExplicitAddressSpace) { … }
TEST_F(ResolverVariableTest, GlobalConst_ExplicitType_Decls) { … }
TEST_F(ResolverVariableTest, GlobalConst_ImplicitType_Decls) { … }
TEST_F(ResolverVariableTest, GlobalConst_PropagateConstValue) { … }
TEST_F(ResolverVariableTest, GlobalConst_ConstEval) { … }
TEST_F(ResolverVariableTest, Param_ShadowsFunction) { … }
TEST_F(ResolverVariableTest, Param_ShadowsGlobalVar) { … }
TEST_F(ResolverVariableTest, Param_ShadowsGlobalConst) { … }
TEST_F(ResolverVariableTest, Param_ShadowsAlias) { … }
TEST_F(ResolverVariableTest, GlobalVar_UseTemplatedIdent) { … }
TEST_F(ResolverVariableTest, GlobalConst_UseTemplatedIdent) { … }
TEST_F(ResolverVariableTest, GlobalOverride_UseTemplatedIdent) { … }
TEST_F(ResolverVariableTest, Param_UseTemplatedIdent) { … }
TEST_F(ResolverVariableTest, LocalVar_UseTemplatedIdent) { … }
TEST_F(ResolverVariableTest, Let_UseTemplatedIdent) { … }
}
}