35 references to Contains
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
394return memberType.AllInterfaces.Contains(constructed, equalityComparer: SymbolEqualityComparer.Default);
Microsoft.CodeAnalysis.CSharp (5)
Compiler\MethodCompiler.cs (1)
831if (!interfaces.Contains(synthesizedExplicitImpl.ExplicitInterfaceImplementations[0].ContainingType,
Compiler\SynthesizedMetadataCompiler.cs (1)
80if (!interfaces.Contains(synthesizedExplicitImpl.ExplicitInterfaceImplementations[0].ContainingType,
Emitter\Model\NamedTypeSymbolAdapter.cs (1)
392if (!interfaces.Contains(implemented.ContainingType, SymbolEqualityComparer.ConsiderEverything))
Symbols\Source\SourceMemberContainerSymbol_ImplementationChecks.cs (2)
257implementingMember.GetExplicitInterfaceImplementations().Contains(interfaceMember, ExplicitInterfaceImplementationTargetMemberEqualityComparer.Instance))) 1815if (implementingMethod.ExplicitInterfaceImplementations.Contains(interfaceMethod, ExplicitInterfaceImplementationTargetMemberEqualityComparer.Instance))
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (24)
Semantics\OutVarTests.cs (16)
1113Assert.True(dataFlow.VariablesDeclared.Contains(symbol, ReferenceEqualityComparer.Instance)); 1117Assert.True(dataFlow.AlwaysAssigned.Contains(symbol, ReferenceEqualityComparer.Instance)); 1118Assert.True(dataFlow.WrittenInside.Contains(symbol, ReferenceEqualityComparer.Instance)); 1122dataFlow.DataFlowsIn.Contains(symbol, ReferenceEqualityComparer.Instance)); 1124dataFlow.ReadInside.Contains(symbol, ReferenceEqualityComparer.Instance)); 1127dataFlow.DataFlowsOut.Contains(symbol, ReferenceEqualityComparer.Instance)); 1129dataFlow.ReadOutside.Contains(symbol, ReferenceEqualityComparer.Instance)); 1132dataFlow.WrittenOutside.Contains(symbol, ReferenceEqualityComparer.Instance)); 32799Assert.False(dataFlow.VariablesDeclared.Contains(symbol, ReferenceEqualityComparer.Instance)); 32800Assert.False(dataFlow.AlwaysAssigned.Contains(symbol, ReferenceEqualityComparer.Instance)); 32801Assert.False(dataFlow.WrittenInside.Contains(symbol, ReferenceEqualityComparer.Instance)); 32802Assert.False(dataFlow.DataFlowsIn.Contains(symbol, ReferenceEqualityComparer.Instance)); 32803Assert.False(dataFlow.ReadInside.Contains(symbol, ReferenceEqualityComparer.Instance)); 32804Assert.False(dataFlow.DataFlowsOut.Contains(symbol, ReferenceEqualityComparer.Instance)); 32805Assert.False(dataFlow.ReadOutside.Contains(symbol, ReferenceEqualityComparer.Instance)); 32806Assert.False(dataFlow.WrittenOutside.Contains(symbol, ReferenceEqualityComparer.Instance));
Semantics\PatternMatchingTestBase.cs (8)
335Assert.False(dataFlow.VariablesDeclared.Contains(symbol, ReferenceEqualityComparer.Instance)); 336Assert.False(dataFlow.AlwaysAssigned.Contains(symbol, ReferenceEqualityComparer.Instance)); 337Assert.False(dataFlow.WrittenInside.Contains(symbol, ReferenceEqualityComparer.Instance)); 338Assert.False(dataFlow.DataFlowsIn.Contains(symbol, ReferenceEqualityComparer.Instance)); 339Assert.False(dataFlow.ReadInside.Contains(symbol, ReferenceEqualityComparer.Instance)); 340Assert.False(dataFlow.DataFlowsOut.Contains(symbol, ReferenceEqualityComparer.Instance)); 341Assert.False(dataFlow.ReadOutside.Contains(symbol, ReferenceEqualityComparer.Instance)); 342Assert.False(dataFlow.WrittenOutside.Contains(symbol, ReferenceEqualityComparer.Instance));
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Simplification\Simplifiers\ExpressionSimplifier.cs (2)
250return speculativeSymbols.Contains(actualSymbol, CandidateSymbolEqualityComparer.Instance) 251|| speculativeNamespacesAndTypes.Contains(actualSymbol, CandidateSymbolEqualityComparer.Instance);
Microsoft.CodeAnalysis.VisualBasic (1)
Symbols\Source\ImplementsHelper.vb (1)
611currType.InterfacesNoUseSiteDiagnostics.Contains(interfaceType, EqualsIgnoringComparer.InstanceCLRSignatureCompare) Then
Microsoft.CodeAnalysis.Workspaces (2)
Recommendations\AbstractRecommendationServiceRunner.cs (1)
126if (!parameterTypeSymbols.Contains(parameter.Type, SymbolEqualityComparer.Default))
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Extensions\SyntaxGeneratorExtensions_CreateEqualsMethod.cs (1)
394return memberType.AllInterfaces.Contains(constructed, equalityComparer: SymbolEqualityComparer.Default);