mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-14 07:36:15 +00:00
Move all Source constructor params to be the first
This consistency can be utilized by the ast::Builder to inject the source parameter if it isn't provided. Bug: tint:396 Bug: tint:390 Change-Id: I2f19002131e79daae799b8cbe918eb192d6bfc75 Reviewed-on: https://dawn-review.googlesource.com/c/tint/+/35503 Commit-Queue: Ben Clayton <bclayton@google.com> Reviewed-by: dan sinclair <dsinclair@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
7b2f8d010f
commit
5aad70a069
@@ -398,7 +398,7 @@ TEST_F(ValidatorTest, UsingUndefinedVariableGlobalVariable_Pass) {
|
||||
Source{}, mod()->RegisterSymbol("my_func"), "my_func", params, &void_type,
|
||||
body,
|
||||
ast::FunctionDecorationList{
|
||||
create<ast::StageDecoration>(ast::PipelineStage::kVertex, Source{}),
|
||||
create<ast::StageDecoration>(Source{}, ast::PipelineStage::kVertex),
|
||||
});
|
||||
mod()->AddFunction(func);
|
||||
|
||||
@@ -848,7 +848,7 @@ TEST_F(ValidatorTest, RedeclaredIdentifierDifferentFunctions_Pass) {
|
||||
Source{}, mod()->RegisterSymbol("func1"), "func1", params1, &void_type,
|
||||
body1,
|
||||
ast::FunctionDecorationList{
|
||||
create<ast::StageDecoration>(ast::PipelineStage::kVertex, Source{}),
|
||||
create<ast::StageDecoration>(Source{}, ast::PipelineStage::kVertex),
|
||||
});
|
||||
|
||||
mod()->AddFunction(func0);
|
||||
|
||||
Reference in New Issue
Block a user