3using Microsoft.CodeAnalysis;
7public readonly
struct ApiModel : IEquatable<ApiModel>
16 public ApiModel(
string ns,
string className,
MethodModel[] methods,
string apiName,
bool constructorPrivate, Diagnostic[] diagnostics)
36 public override bool Equals(
object? obj)
46 hashCode = hashCode * 397 ^
ClassName.GetHashCode();
47 hashCode = hashCode * 397 ^
ApiName.GetHashCode();
50 hashCode = hashCode * 397 ^
Diagnostics.GetHashCode();
63 return !left.
Equals(right);
ApiModel(string ns, string className, MethodModel[] methods, string apiName, bool constructorPrivate, Diagnostic[] diagnostics)
readonly MethodModel[] Methods
static bool operator!=(ApiModel left, ApiModel right)
bool Equals(ApiModel other)
readonly string ClassName
static bool operator==(ApiModel left, ApiModel right)
readonly string Namespace
readonly Diagnostic[] Diagnostics
readonly bool ConstructorPrivate
override bool Equals(object? obj)
override int GetHashCode()
override int GetHashCode()
bool Equals(MethodModel other)