Fixed [AutoConstructor] repeating class attributes

このコミットが含まれているのは:
Sergio Pedri committed 2020-11-30 16:24:21 +01:00
1 親 2db612a7c6
コミット 2517996577
2ファイル変更
+5 -4

検索条件に一致するファイルはありません

+1
ファイルの表示
@@ -75,6 +75,7 @@ namespace ComputeSharp.SourceGenerators
.WithMembers(SingletonList<MemberDeclarationSyntax>(typeDeclarationSyntax))
.WithConstraintClauses(List<TypeParameterConstraintClauseSyntax>())
.WithBaseList(null)
.WithAttributeLists(List<AttributeListSyntax>())
.WithoutTrivia();
}
+4 -4
ファイルの表示
@@ -98,7 +98,7 @@ namespace ComputeSharp.Tests
[DataRow(typeof(ReadWriteBuffer<>), 2048, 2048)]
public void GetData_RangeToArray_Ok(Type bufferType, int offset, int count)
{
float[] array = Enumerable.Range(0, 4096).Select(i => (float)i).ToArray();
float[] array = Enumerable.Range(0, 4096).Select(static i => (float)i).ToArray();
using Buffer<float> buffer = Gpu.Default.AllocateBuffer(bufferType, array);
@@ -125,7 +125,7 @@ namespace ComputeSharp.Tests
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void GetData_RangeToArray_Fail(Type bufferType, int offset, int count)
{
float[] array = Enumerable.Range(0, 4096).Select(i => (float)i).ToArray();
float[] array = Enumerable.Range(0, 4096).Select(static i => (float)i).ToArray();
using Buffer<float> buffer = Gpu.Default.AllocateBuffer(bufferType, array);
@@ -147,7 +147,7 @@ namespace ComputeSharp.Tests
[DataRow(typeof(ReadWriteBuffer<>), 127, 1024, 587)]
public void GetData_RangeToVoid_Ok(Type bufferType, int destinationOffset, int bufferOffset, int count)
{
float[] array = Enumerable.Range(0, 4096).Select(i => (float)i).ToArray();
float[] array = Enumerable.Range(0, 4096).Select(static i => (float)i).ToArray();
using Buffer<float> buffer = Gpu.Default.AllocateBuffer(bufferType, array);
@@ -180,7 +180,7 @@ namespace ComputeSharp.Tests
[ExpectedException(typeof(ArgumentOutOfRangeException))]
public void GetData_RangeToVoid_Fail(Type bufferType, int destinationOffset, int bufferOffset, int count)
{
float[] array = Enumerable.Range(0, 4096).Select(i => (float)i).ToArray();
float[] array = Enumerable.Range(0, 4096).Select(static i => (float)i).ToArray();
using Buffer<float> buffer = Gpu.Default.AllocateBuffer(bufferType, array);