Switch methods to block bodies
このコミットが含まれているのは:
1 親
16c0fc9aab
コミット
b2afb88f30
53ファイル変更
+426
-132
検索条件に一致するファイルはありません
@@ -20,10 +20,16 @@ internal sealed record DispatchDataInfo(
|
||||
int Root32BitConstantCount)
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(DispatchDataInfo? obj) => Comparer.Default.Equals(this, obj);
|
||||
public bool Equals(DispatchDataInfo? obj)
|
||||
{
|
||||
return Comparer.Default.Equals(this, obj);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Comparer.Default.GetHashCode(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="DispatchDataInfo"/>.
|
||||
|
||||
@@ -13,10 +13,16 @@ namespace ComputeSharp.SourceGenerators.Models;
|
||||
internal sealed record DispatchIdInfo(ImmutableArray<string> Delegates)
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(DispatchIdInfo? obj) => Comparer.Default.Equals(this, obj);
|
||||
public bool Equals(DispatchIdInfo? obj)
|
||||
{
|
||||
return Comparer.Default.Equals(this, obj);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Comparer.Default.GetHashCode(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="DispatchIdInfo"/>.
|
||||
|
||||
@@ -18,10 +18,16 @@ internal sealed record DispatchMetadataInfo(
|
||||
ImmutableArray<ResourceDescriptor> ResourceDescriptors)
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(DispatchMetadataInfo? obj) => Comparer.Default.Equals(this, obj);
|
||||
public bool Equals(DispatchMetadataInfo? obj)
|
||||
{
|
||||
return Comparer.Default.Equals(this, obj);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Comparer.Default.GetHashCode(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="DispatchMetadataInfo"/>.
|
||||
|
||||
@@ -16,10 +16,16 @@ namespace ComputeSharp.SourceGenerators.Models;
|
||||
internal sealed record EmbeddedBytecodeInfo(int X, int Y, int Z, ImmutableArray<byte> Bytecode)
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(EmbeddedBytecodeInfo? obj) => Comparer.Default.Equals(this, obj);
|
||||
public bool Equals(EmbeddedBytecodeInfo? obj)
|
||||
{
|
||||
return Comparer.Default.Equals(this, obj);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Comparer.Default.GetHashCode(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="EmbeddedBytecodeInfo"/>.
|
||||
|
||||
@@ -20,10 +20,16 @@ internal abstract record FieldInfo
|
||||
public sealed record Resource(string FieldName, string TypeName, int Offset) : FieldInfo
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(Resource? obj) => Comparer.Default.Equals(this, obj);
|
||||
public bool Equals(Resource? obj)
|
||||
{
|
||||
return Comparer.Default.Equals(this, obj);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Comparer.Default.GetHashCode(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="Resource"/>.
|
||||
@@ -58,10 +64,16 @@ internal abstract record FieldInfo
|
||||
public sealed record Primitive(ImmutableArray<string> FieldPath, string TypeName, int Offset) : FieldInfo
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(Primitive? obj) => Comparer.Default.Equals(this, obj);
|
||||
public bool Equals(Primitive? obj)
|
||||
{
|
||||
return Comparer.Default.Equals(this, obj);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Comparer.Default.GetHashCode(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="Primitive"/>.
|
||||
@@ -105,10 +117,16 @@ internal abstract record FieldInfo
|
||||
ImmutableArray<int> Offsets) : FieldInfo
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(NonLinearMatrix? obj) => Comparer.Default.Equals(this, obj);
|
||||
public bool Equals(NonLinearMatrix? obj)
|
||||
{
|
||||
return Comparer.Default.Equals(this, obj);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Comparer.Default.GetHashCode(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="NonLinearMatrix"/>.
|
||||
|
||||
@@ -22,10 +22,16 @@ internal sealed record HlslMethodSourceInfo(
|
||||
ImmutableArray<(string Signature, string Definition)> DependentMethods)
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(HlslMethodSourceInfo? obj) => Comparer.Default.Equals(this, obj);
|
||||
public bool Equals(HlslMethodSourceInfo? obj)
|
||||
{
|
||||
return Comparer.Default.Equals(this, obj);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Comparer.Default.GetHashCode(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="HlslMethodSourceInfo"/>.
|
||||
|
||||
@@ -40,10 +40,16 @@ internal sealed record HlslShaderSourceInfo(
|
||||
ImmutableArray<string> Delegates)
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(HlslShaderSourceInfo? obj) => Comparer.Default.Equals(this, obj);
|
||||
public bool Equals(HlslShaderSourceInfo? obj)
|
||||
{
|
||||
return Comparer.Default.Equals(this, obj);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Comparer.Default.GetHashCode(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="HlslShaderSourceInfo"/>.
|
||||
|
||||
@@ -27,10 +27,16 @@ internal sealed record ShaderInfo(
|
||||
ImmutableArray<DiagnosticInfo> Diagnostcs)
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(ShaderInfo? obj) => Comparer.Default.Equals(this, obj);
|
||||
public bool Equals(ShaderInfo? obj)
|
||||
{
|
||||
return Comparer.Default.Equals(this, obj);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Comparer.Default.GetHashCode(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="ShaderInfo"/>.
|
||||
|
||||
@@ -15,10 +15,16 @@ namespace ComputeSharp.SourceGenerators.Models;
|
||||
internal sealed record ShaderMethodInfo(HlslMethodSourceInfo HlslMethodSource, ImmutableArray<DiagnosticInfo> Diagnostcs)
|
||||
{
|
||||
/// <inheritdoc/>
|
||||
public bool Equals(ShaderMethodInfo? obj) => Comparer.Default.Equals(this, obj);
|
||||
public bool Equals(ShaderMethodInfo? obj)
|
||||
{
|
||||
return Comparer.Default.Equals(this, obj);
|
||||
}
|
||||
|
||||
/// <inheritdoc/>
|
||||
public override int GetHashCode() => Comparer.Default.GetHashCode(this);
|
||||
public override int GetHashCode()
|
||||
{
|
||||
return Comparer.Default.GetHashCode(this);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// An <see cref="IEqualityComparer{T}"/> implementation for <see cref="ShaderMethodInfo"/>.
|
||||
|
||||
新しいイシューから参照
ユーザーをブロックする