Remove name fields
This CL removes the name fields from the various AST nodes now that the
symbols are used everywhere.
Change-Id: I73e8fa8958aa6e6f0159b12b63176b12c418f525
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/36762
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Ryan Harrison <rharrison@chromium.org>
diff --git a/src/ast/identifier_expression.h b/src/ast/identifier_expression.h
index 82ffca0..b6b9b62 100644
--- a/src/ast/identifier_expression.h
+++ b/src/ast/identifier_expression.h
@@ -16,7 +16,6 @@
#define SRC_AST_IDENTIFIER_EXPRESSION_H_
#include <memory>
-#include <string>
#include <utility>
#include "src/ast/expression.h"
@@ -32,10 +31,7 @@
/// Constructor
/// @param source the source
/// @param sym the symbol for the identifier
- /// @param name the name
- IdentifierExpression(const Source& source,
- Symbol sym,
- const std::string& name);
+ IdentifierExpression(const Source& source, Symbol sym);
/// Move constructor
IdentifierExpression(IdentifierExpression&&);
~IdentifierExpression() override;
@@ -82,7 +78,6 @@
IdentifierExpression(const IdentifierExpression&) = delete;
Symbol const sym_;
- std::string const name_;
Intrinsic intrinsic_ = Intrinsic::kNone; // Semantic info
std::unique_ptr<intrinsic::Signature> intrinsic_sig_; // Semantic info