From cee712105850ac3385cd0091a923438167433f9f Mon Sep 17 00:00:00 2001 From: TSR Berry <20988865+TSRBerry@users.noreply.github.com> Date: Sat, 8 Apr 2023 01:22:00 +0200 Subject: Move solution and projects to src --- Spv.Generator/TypeDeclarationKey.cs | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 Spv.Generator/TypeDeclarationKey.cs (limited to 'Spv.Generator/TypeDeclarationKey.cs') diff --git a/Spv.Generator/TypeDeclarationKey.cs b/Spv.Generator/TypeDeclarationKey.cs deleted file mode 100644 index a4aa9563..00000000 --- a/Spv.Generator/TypeDeclarationKey.cs +++ /dev/null @@ -1,30 +0,0 @@ -using System; -using System.Diagnostics.CodeAnalysis; - -namespace Spv.Generator -{ - internal struct TypeDeclarationKey : IEquatable - { - private Instruction _typeDeclaration; - - public TypeDeclarationKey(Instruction typeDeclaration) - { - _typeDeclaration = typeDeclaration; - } - - public override int GetHashCode() - { - return DeterministicHashCode.Combine(_typeDeclaration.Opcode, _typeDeclaration.GetHashCodeContent()); - } - - public bool Equals(TypeDeclarationKey other) - { - return _typeDeclaration.Opcode == other._typeDeclaration.Opcode && _typeDeclaration.EqualsContent(other._typeDeclaration); - } - - public override bool Equals([NotNullWhen(true)] object obj) - { - return obj is TypeDeclarationKey && Equals((TypeDeclarationKey)obj); - } - } -} -- cgit v1.2.3