tint/sem: Minor cleanup

Change-Id: I71607570907de4d8cd79f6472413e30cd0cd2c17
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/112284
Reviewed-by: Dan Sinclair <dsinclair@chromium.org>
Kokoro: Kokoro <noreply+kokoro@google.com>
Commit-Queue: Ben Clayton <bclayton@google.com>
This commit is contained in:
Ben Clayton 2022-11-30 11:50:54 +00:00 committed by Dawn LUCI CQ
parent d91cd622a3
commit 4c593c356b
2 changed files with 3 additions and 3 deletions

View File

@ -141,7 +141,7 @@ class Function final : public Castable<Function, CallTarget> {
/// @returns the list of direct calls to functions / builtins made by this
/// function
std::vector<const Call*> DirectCallStatements() const { return direct_calls_; }
std::vector<const Call*> DirectCalls() const { return direct_calls_; }
/// Adds a record of the direct function / builtin calls made by this
/// function
@ -160,7 +160,7 @@ class Function final : public Castable<Function, CallTarget> {
return nullptr;
}
/// @returns the list of callsites of this function
/// @returns the list of callsites to this function
std::vector<const Call*> CallSites() const { return callsites_; }
/// Adds a record of a callsite to this function

View File

@ -231,7 +231,7 @@ class Parameter final : public Castable<Parameter, Variable> {
return static_cast<const ast::Parameter*>(Variable::Declaration());
}
/// @return the index of the parmeter in the function
/// @return the index of the parameter in the function
uint32_t Index() const { return index_; }
/// @returns the semantic usage for the parameter