Beispiel #1
0
 public bool Equals(IncrementalStubGenerationContext?other)
 {
     return(other is not null &&
            StubEnvironment.AreCompilationSettingsEqual(Environment, other.Environment) &&
            SignatureContext.Equals(other.SignatureContext) &&
            ContainingSyntaxContext.Equals(other.ContainingSyntaxContext) &&
            StubMethodSyntaxTemplate.Equals(other.StubMethodSyntaxTemplate) &&
            JSExportData.Equals(other.JSExportData) &&
            DiagnosticLocation.Equals(DiagnosticLocation) &&
            GeneratorFactoryKey.Equals(other.GeneratorFactoryKey) &&
            Diagnostics.SequenceEqual(other.Diagnostics));
 }
Beispiel #2
0
 public bool Equals(IncrementalStubGenerationContext?other)
 {
     return(other is not null &&
            StubEnvironment.AreCompilationSettingsEqual(Environment, other.Environment) &&
            SignatureContext.Equals(other.SignatureContext) &&
            ContainingSyntaxContext.Equals(other.ContainingSyntaxContext) &&
            StubMethodSyntaxTemplate.Equals(other.StubMethodSyntaxTemplate) &&
            LibraryImportData.Equals(other.LibraryImportData) &&
            DiagnosticLocation.Equals(DiagnosticLocation) &&
            ForwardedAttributes.SequenceEqual(other.ForwardedAttributes, (IEqualityComparer <AttributeSyntax>)SyntaxEquivalentComparer.Instance) &&
            GeneratorFactoryKey.Equals(other.GeneratorFactoryKey) &&
            Diagnostics.SequenceEqual(other.Diagnostics));
 }