mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-18 01:15:39 +00:00
Update internals to initializer instead of constructor.
This CL catches up the internals (along with a few error messages) to say `initializer` instead of `constructor. Bug: tint:1600 Change-Id: I8e56572c310d77da1130380bdd32b334f27c8e46 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/106462 Reviewed-by: Antonio Maiorano <amaiorano@google.com> Auto-Submit: Dan Sinclair <dsinclair@chromium.org> Kokoro: Kokoro <noreply+kokoro@google.com> Commit-Queue: Antonio Maiorano <amaiorano@google.com>
This commit is contained in:
committed by
Dawn LUCI CQ
parent
56ce1a2155
commit
6e77b47ed9
@@ -59,18 +59,18 @@ func TestFixSubstr(t *testing.T) {
|
||||
}, { ///////////////////////////////////////////////////////////////////
|
||||
body: `Return{
|
||||
{
|
||||
ScalarConstructor[not set]{42u}
|
||||
ScalarInitializer[not set]{42u}
|
||||
}
|
||||
}
|
||||
`,
|
||||
substr: `Return{
|
||||
{
|
||||
ScalarConstructor[not set]{42}
|
||||
ScalarInitializer[not set]{42}
|
||||
}
|
||||
}`,
|
||||
expect: `Return{
|
||||
{
|
||||
ScalarConstructor[not set]{42u}
|
||||
ScalarInitializer[not set]{42u}
|
||||
}
|
||||
}`,
|
||||
}, { ///////////////////////////////////////////////////////////////////
|
||||
@@ -83,29 +83,29 @@ func TestFixSubstr(t *testing.T) {
|
||||
}
|
||||
Assignment{
|
||||
Identifier[not set]{x_1}
|
||||
ScalarConstructor[not set]{42u}
|
||||
ScalarInitializer[not set]{42u}
|
||||
}
|
||||
Assignment{
|
||||
Identifier[not set]{x_1}
|
||||
ScalarConstructor[not set]{0u}
|
||||
ScalarInitializer[not set]{0u}
|
||||
}
|
||||
Return{}
|
||||
`,
|
||||
substr: `Assignment{
|
||||
Identifier[not set]{x_1}
|
||||
ScalarConstructor[not set]{42}
|
||||
ScalarInitializer[not set]{42}
|
||||
}
|
||||
Assignment{
|
||||
Identifier[not set]{x_1}
|
||||
ScalarConstructor[not set]{0}
|
||||
ScalarInitializer[not set]{0}
|
||||
}`,
|
||||
expect: `Assignment{
|
||||
Identifier[not set]{x_1}
|
||||
ScalarConstructor[not set]{42u}
|
||||
ScalarInitializer[not set]{42u}
|
||||
}
|
||||
Assignment{
|
||||
Identifier[not set]{x_1}
|
||||
ScalarConstructor[not set]{0u}
|
||||
ScalarInitializer[not set]{0u}
|
||||
}`,
|
||||
}, { ///////////////////////////////////////////////////////////////////
|
||||
body: `VariableDeclStatement{
|
||||
@@ -114,7 +114,7 @@ Assignment{
|
||||
function
|
||||
__bool
|
||||
{
|
||||
ScalarConstructor[not set]{true}
|
||||
ScalarInitializer[not set]{true}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -124,7 +124,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__bool
|
||||
{
|
||||
ScalarConstructor[not set]{false}
|
||||
ScalarInitializer[not set]{false}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -134,7 +134,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__i32
|
||||
{
|
||||
ScalarConstructor[not set]{-1}
|
||||
ScalarInitializer[not set]{-1}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -144,7 +144,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__u32
|
||||
{
|
||||
ScalarConstructor[not set]{1u}
|
||||
ScalarInitializer[not set]{1u}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -154,7 +154,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__f32
|
||||
{
|
||||
ScalarConstructor[not set]{1.500000}
|
||||
ScalarInitializer[not set]{1.500000}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -165,7 +165,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__bool
|
||||
{
|
||||
ScalarConstructor[not set]{true}
|
||||
ScalarInitializer[not set]{true}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -175,7 +175,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__bool
|
||||
{
|
||||
ScalarConstructor[not set]{false}
|
||||
ScalarInitializer[not set]{false}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -185,7 +185,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__i32
|
||||
{
|
||||
ScalarConstructor[not set]{-1}
|
||||
ScalarInitializer[not set]{-1}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -195,7 +195,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__u32
|
||||
{
|
||||
ScalarConstructor[not set]{1}
|
||||
ScalarInitializer[not set]{1}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -205,7 +205,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__f32
|
||||
{
|
||||
ScalarConstructor[not set]{1.500000}
|
||||
ScalarInitializer[not set]{1.500000}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -216,7 +216,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__bool
|
||||
{
|
||||
ScalarConstructor[not set]{true}
|
||||
ScalarInitializer[not set]{true}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -226,7 +226,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__bool
|
||||
{
|
||||
ScalarConstructor[not set]{false}
|
||||
ScalarInitializer[not set]{false}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -236,7 +236,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__i32
|
||||
{
|
||||
ScalarConstructor[not set]{-1}
|
||||
ScalarInitializer[not set]{-1}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -246,7 +246,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__u32
|
||||
{
|
||||
ScalarConstructor[not set]{1u}
|
||||
ScalarInitializer[not set]{1u}
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -256,7 +256,7 @@ VariableDeclStatement{
|
||||
function
|
||||
__f32
|
||||
{
|
||||
ScalarConstructor[not set]{1.500000}
|
||||
ScalarInitializer[not set]{1.500000}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user