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