tint/sem: Rename Expression to ValueExpression
ast::IdentifierExpression may also resolve to a type or core enumerator
Bug: tint:1810
Change-Id: I85e3bea67e1146215079ec47430784f2fb39043d
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/118402
Kokoro: Kokoro <noreply+kokoro@google.com>
Reviewed-by: James Price <jrprice@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
diff --git a/src/tint/sem/info.cc b/src/tint/sem/info.cc
index a3f5b48..a6a563e 100644
--- a/src/tint/sem/info.cc
+++ b/src/tint/sem/info.cc
@@ -14,10 +14,10 @@
#include "src/tint/sem/info.h"
-#include "src/tint/sem/expression.h"
#include "src/tint/sem/function.h"
#include "src/tint/sem/module.h"
#include "src/tint/sem/statement.h"
+#include "src/tint/sem/value_expression.h"
namespace tint::sem {
@@ -75,7 +75,7 @@
TINT_ASSERT(Resolver, sem != nullptr);
auto severity = Switch(
sem, //
- [&](const sem::Expression* expr) { return check_stmt(expr->Stmt()); },
+ [&](const sem::ValueExpression* expr) { return check_stmt(expr->Stmt()); },
[&](const sem::Statement* stmt) { return check_stmt(stmt); },
[&](const sem::Function* func) { return check_func(func); },
[&](Default) {