Add missing doc comments.
This cl adds some missing doc comments. Change-Id: Ic5452c2f9a40ddcc4642062a338f602632f3e057 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/27520 Reviewed-by: David Neto <dneto@google.com> Commit-Queue: David Neto <dneto@google.com>
This commit is contained in:
parent
63b007d34f
commit
8d72a2bc4e
|
@ -1991,12 +1991,12 @@ std::unique_ptr<ast::LoopStatement> ParserImpl::loop_stmt() {
|
|||
std::move(continuing));
|
||||
}
|
||||
|
||||
ForHeader::ForHeader(std::unique_ptr<ast::Statement> _initializer,
|
||||
std::unique_ptr<ast::Expression> _condition,
|
||||
std::unique_ptr<ast::Statement> _continuing)
|
||||
: initializer(std::move(_initializer)),
|
||||
condition(std::move(_condition)),
|
||||
continuing(std::move(_continuing)) {}
|
||||
ForHeader::ForHeader(std::unique_ptr<ast::Statement> init,
|
||||
std::unique_ptr<ast::Expression> cond,
|
||||
std::unique_ptr<ast::Statement> cont)
|
||||
: initializer(std::move(init)),
|
||||
condition(std::move(cond)),
|
||||
continuing(std::move(cont)) {}
|
||||
|
||||
ForHeader::~ForHeader() = default;
|
||||
|
||||
|
|
|
@ -52,16 +52,24 @@ namespace wgsl {
|
|||
|
||||
class Lexer;
|
||||
|
||||
/// Struct holding information for a for loop
|
||||
struct ForHeader {
|
||||
std::unique_ptr<ast::Statement> initializer;
|
||||
std::unique_ptr<ast::Expression> condition;
|
||||
std::unique_ptr<ast::Statement> continuing;
|
||||
|
||||
ForHeader(std::unique_ptr<ast::Statement> _initializer,
|
||||
std::unique_ptr<ast::Expression> _condition,
|
||||
std::unique_ptr<ast::Statement> _continuing);
|
||||
/// Constructor
|
||||
/// @param init the initializer statement
|
||||
/// @param cond the condition statement
|
||||
/// @param cont the continuing statement
|
||||
ForHeader(std::unique_ptr<ast::Statement> init,
|
||||
std::unique_ptr<ast::Expression> cond,
|
||||
std::unique_ptr<ast::Statement> cont);
|
||||
|
||||
~ForHeader();
|
||||
|
||||
/// The for loop initializer
|
||||
std::unique_ptr<ast::Statement> initializer;
|
||||
/// The for loop condition
|
||||
std::unique_ptr<ast::Expression> condition;
|
||||
/// The for loop continuing statement
|
||||
std::unique_ptr<ast::Statement> continuing;
|
||||
};
|
||||
|
||||
/// ParserImpl for WGSL source data
|
||||
|
|
Loading…
Reference in New Issue