Add missing doc comment.

This CL should fix the doxygen error on kokoro.

Change-Id: I820e6e6674edbc1af2b51ceb3cf87d724d7c0962
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/87300
Reviewed-by: Ben Clayton <bclayton@google.com>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Dan Sinclair <dsinclair@chromium.org>
This commit is contained in:
dan sinclair 2022-04-19 21:40:05 +00:00 committed by Dawn LUCI CQ
parent 89d6a1f376
commit b3741f5036
1 changed files with 8 additions and 0 deletions

View File

@ -21,12 +21,18 @@
#include "src/tint/program_builder.h"
namespace tint::resolver {
/// Helper class to retrieve sem information.
class SemHelper {
public:
/// Constructor
/// @param builder the program builder
explicit SemHelper(ProgramBuilder* builder);
~SemHelper();
/// Get is a helper for obtaining the semantic node for the given AST node.
/// @param ast the ast node to get the sem for
/// @returns the sem node for the provided |ast|
template <typename SEM = sem::Info::InferFromAST,
typename AST_OR_TYPE = CastableBase>
auto* Get(const AST_OR_TYPE* ast) const {
@ -51,10 +57,12 @@ class SemHelper {
/// @returns the type name of the given semantic type, unwrapping
/// references.
/// @param ty the type to look up
std::string TypeNameOf(const sem::Type* ty) const;
/// @returns the type name of the given semantic type, without unwrapping
/// references.
/// @param ty the type to look up
std::string RawTypeNameOf(const sem::Type* ty) const;
private: