6 references to Instance
Microsoft.CodeAnalysis.Workspaces (6)
ExtensionManager\AbstractExtensionManager.cs (2)
12
private readonly ConcurrentSet<object> _disabledProviders = new(ReferenceEqualityComparer.
Instance
);
13
private readonly ConcurrentSet<object> _ignoredProviders = new(ReferenceEqualityComparer.
Instance
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefLanguageServices.cs (1)
30
private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.
Instance
);
src\Workspaces\SharedUtilitiesAndExtensions\Workspace\Core\Workspace\Mef\MefWorkspaceServices.cs (1)
32
private readonly HashSet<IDisposable> _ownedDisposableServices = new(ReferenceEqualityComparer.
Instance
);
Workspace\Solution\SolutionCompilationState.cs (2)
762
var addedReferences = stateChange.NewProjectState.AnalyzerReferences.Except<AnalyzerReference>(stateChange.OldProjectState.AnalyzerReferences, ReferenceEqualityComparer.
Instance
).ToImmutableArray();
763
var removedReferences = stateChange.OldProjectState.AnalyzerReferences.Except<AnalyzerReference>(stateChange.NewProjectState.AnalyzerReferences, ReferenceEqualityComparer.
Instance
).ToImmutableArray();