From 4c593c356b165b604396937839f6aba3aa592b0a Mon Sep 17 00:00:00 2001 From: Ben Clayton Date: Wed, 30 Nov 2022 11:50:54 +0000 Subject: [PATCH] tint/sem: Minor cleanup Change-Id: I71607570907de4d8cd79f6472413e30cd0cd2c17 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/112284 Reviewed-by: Dan Sinclair Kokoro: Kokoro Commit-Queue: Ben Clayton --- src/tint/sem/function.h | 4 ++-- src/tint/sem/variable.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/tint/sem/function.h b/src/tint/sem/function.h index 973aa43fff..8f21f7444a 100644 --- a/src/tint/sem/function.h +++ b/src/tint/sem/function.h @@ -141,7 +141,7 @@ class Function final : public Castable { /// @returns the list of direct calls to functions / builtins made by this /// function - std::vector DirectCallStatements() const { return direct_calls_; } + std::vector 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 { return nullptr; } - /// @returns the list of callsites of this function + /// @returns the list of callsites to this function std::vector CallSites() const { return callsites_; } /// Adds a record of a callsite to this function diff --git a/src/tint/sem/variable.h b/src/tint/sem/variable.h index 08ffe99114..08dfa98928 100644 --- a/src/tint/sem/variable.h +++ b/src/tint/sem/variable.h @@ -231,7 +231,7 @@ class Parameter final : public Castable { return static_cast(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