13 references to Instance
Microsoft.CodeAnalysis.CodeStyle (13)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\ITypeSymbolExtensions.cs (8)
103
symbols ??= new HashSet<INamedTypeSymbol>(SymbolEquivalenceComparer.
Instance
);
164
return type.GetBaseTypesAndThis().Concat(type.AllInterfaces).Contains(t => SymbolEquivalenceComparer.
Instance
.Equals(t, baseType));
172
return type.GetBaseTypesAndThis().Contains(t => SymbolEquivalenceComparer.
Instance
.Equals(t, baseType));
183
if (SymbolEquivalenceComparer.
Instance
.Equals(type, originalBaseType))
189
return baseTypes.Contains(t => SymbolEquivalenceComparer.
Instance
.Equals(t.OriginalDefinition, originalBaseType));
205
if (SymbolEquivalenceComparer.
Instance
.Equals(currentBaseType.OriginalDefinition, originalBaseType))
220
return type.AllInterfaces.Any(static (t, originalInterfaceType) => SymbolEquivalenceComparer.
Instance
.Equals(t.OriginalDefinition, originalInterfaceType), originalInterfaceType);
226
return type.AllInterfaces.Contains(t => SymbolEquivalenceComparer.
Instance
.Equals(t, interfaceType));
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SemanticEquivalence.cs (1)
137
: SymbolEquivalenceComparer.
Instance
.Equals(info1.Symbol, info2.Symbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.AliasSymbolKey.cs (1)
72
SymbolEquivalenceComparer.
Instance
.Equals(aliasSymbol.Target, target))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\SymbolKey\SymbolKey.SymbolKeyReader.cs (1)
378
: SymbolEquivalenceComparer.
Instance
;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\AbstractSpeculationAnalyzer.cs (1)
487
return SymbolEquivalenceComparer.
Instance
.Equals(symbol, newSymbol);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\SignatureComparer.cs (1)
15
public static readonly SignatureComparer Instance = new(SymbolEquivalenceComparer.
Instance
);