mirror of
https://github.com/space-wizards/RobustToolbox.git
synced 2026-02-15 03:30:53 +01:00
Refactor serialization copying to use source generators (#4286)
This commit is contained in:
17
Robust.Serialization.Generator/DataDefinitionComparer.cs
Normal file
17
Robust.Serialization.Generator/DataDefinitionComparer.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using System.Collections.Generic;
|
||||
using Microsoft.CodeAnalysis.CSharp.Syntax;
|
||||
|
||||
namespace Robust.Serialization.Generator;
|
||||
|
||||
public sealed class DataDefinitionComparer : IEqualityComparer<TypeDeclarationSyntax>
|
||||
{
|
||||
public bool Equals(TypeDeclarationSyntax x, TypeDeclarationSyntax y)
|
||||
{
|
||||
return x.Equals(y);
|
||||
}
|
||||
|
||||
public int GetHashCode(TypeDeclarationSyntax type)
|
||||
{
|
||||
return type.GetHashCode();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user