SymbolTable: Rename GetSymbol() to Get()
The Symbol suffix is unnecessary, given the class name
Change-Id: Ibf222555a8bf5c3e4b6cf27e8006573570b1bd48
Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/38542
Reviewed-by: dan sinclair <dsinclair@chromium.org>
diff --git a/src/program.cc b/src/program.cc
index b2abaa4..5ae2e26 100644
--- a/src/program.cc
+++ b/src/program.cc
@@ -52,7 +52,7 @@
}
Symbol Program::GetSymbol(const std::string& name) const {
- return symbol_table_.GetSymbol(name);
+ return symbol_table_.Get(name);
}
std::string Program::SymbolToName(const Symbol sym) const {
diff --git a/src/symbol_table.cc b/src/symbol_table.cc
index 11b903e..a814875 100644
--- a/src/symbol_table.cc
+++ b/src/symbol_table.cc
@@ -45,7 +45,7 @@
return sym;
}
-Symbol SymbolTable::GetSymbol(const std::string& name) const {
+Symbol SymbolTable::Get(const std::string& name) const {
auto it = name_to_symbol_.find(name);
return it != name_to_symbol_.end() ? it->second : Symbol();
}
diff --git a/src/symbol_table.h b/src/symbol_table.h
index b3bf3fe..f57e468 100644
--- a/src/symbol_table.h
+++ b/src/symbol_table.h
@@ -51,7 +51,7 @@
/// Returns the symbol for the given `name`
/// @param name the name to lookup
/// @returns the symbol for the name or symbol::kInvalid if not found.
- Symbol GetSymbol(const std::string& name) const;
+ Symbol Get(const std::string& name) const;
/// Returns the name for the given symbol
/// @param symbol the symbol to retrieve the name for