42 references to AnalyzerReferences
Microsoft.CodeAnalysis.EditorFeatures (1)
EditorConfigSettings\DataProvider\Analyzer\AnalyzerSettingsProvider.cs (1)
31var analyzerReferences = RoslynEnumerableExtensions.DistinctBy(projectsInScope.SelectMany(p => p.AnalyzerReferences), a => a.Id).ToImmutableArray();
Microsoft.CodeAnalysis.Features (5)
Common\AbstractProjectExtensionProvider.cs (1)
52return GetExtensions(project.Language, project.AnalyzerReferences);
Completion\CompletionService.cs (1)
127/// We pass the project here to retrieve information about the <see cref="Project.AnalyzerReferences"/>,
Completion\CompletionService.ProviderManager.cs (3)
110return ProjectCompletionProvider.GetExtensions(_service.Language, project.AnalyzerReferences); 113if (ProjectCompletionProvider.TryGetCachedExtensions(project.AnalyzerReferences, out var providers)) 116_projectProvidersWorkQueue.AddWork(project.AnalyzerReferences);
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
EditAndContinue\EditAndContinueWorkspaceTestBase.cs (1)
283var generators = generatorProject.AnalyzerReferences.SelectMany(r => r.GetGenerators(language: generatorProject.Language));
Microsoft.CodeAnalysis.LanguageServer.Protocol (8)
Features\CodeFixes\CodeFixService.cs (1)
962: _projectFixersMap.GetValue(document.Project.AnalyzerReferences, _ => ComputeProjectFixers(document));
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.cs (1)
45/// This will be raised whenever <see cref="StateManager"/> finds <see cref="Project.AnalyzerReferences"/> change
Features\Diagnostics\EngineV2\DiagnosticIncrementalAnalyzer.StateManager.ProjectStates.cs (6)
61entry.AnalyzerReferences.SequenceEqual(project.AnalyzerReferences)) 77if (project.AnalyzerReferences.Count == 0) 91return new ProjectAnalyzerStateSets(project.AnalyzerReferences, analyzersPerReference, newMap, skippedAnalyzersInfo); 142Debug.Assert(!entry.AnalyzerReferences.Equals(project.AnalyzerReferences)); 145var addedStates = DiffStateSets(project.AnalyzerReferences.Except(entry.AnalyzerReferences), newMapPerReference, newMap); 146var removedStates = DiffStateSets(entry.AnalyzerReferences.Except(project.AnalyzerReferences), entry.MapPerReferences, entry.StateSetMap);
Microsoft.CodeAnalysis.Remote.ServiceHub (1)
Services\DiagnosticAnalyzer\DiagnosticComputer.cs (1)
589foreach (var reference in _project.AnalyzerReferences)
Microsoft.CodeAnalysis.Workspaces (13)
Diagnostics\HostDiagnosticAnalyzers.cs (5)
88var map = _hostAnalyzerReferencesMap.AddRange(CreateProjectAnalyzerReferencesMap(project.AnalyzerReferences)); 127var projectAnalyzerReferences = CreateProjectDiagnosticAnalyzersPerReference(project.AnalyzerReferences, project.Language); 137=> CreateProjectDiagnosticAnalyzersPerReference(project.AnalyzerReferences, project.Language); 301var box = _skippedHostAnalyzers.GetOrCreateValue(project.AnalyzerReferences); 314info = SkippedHostAnalyzersInfo.Create(this, project.AnalyzerReferences, project.Language, infoCache);
Workspace\ProjectSystem\ProjectSystemProject.cs (2)
785foreach (var analyzerReference in project.AnalyzerReferences) 1380originalAnalyzerReferences = project.AnalyzerReferences;
Workspace\ProjectSystem\ProjectSystemProjectFactory.cs (1)
841getReferences: static project => project.AnalyzerReferences.Select(r => r.FullPath!),
Workspace\Solution\ProjectChanges.cs (4)
74var oldAnalyzerReferences = new HashSet<AnalyzerReference>(OldProject.AnalyzerReferences); 75foreach (var analyzerReference in NewProject.AnalyzerReferences) 86var newAnalyzerReferences = new HashSet<AnalyzerReference>(NewProject.AnalyzerReferences); 87foreach (var analyzerReference in OldProject.AnalyzerReferences)
Workspace\Workspace.cs (1)
2037project.AnalyzerReferences,
Microsoft.CodeAnalysis.Workspaces.MSBuild.UnitTests (2)
VisualStudioMSBuildWorkspaceTests.cs (2)
2327Assert.Equal(1, proj.AnalyzerReferences.Count); 2328var analyzerReference = proj.AnalyzerReferences[0] as AnalyzerFileReference;
Microsoft.CodeAnalysis.Workspaces.UnitTests (10)
SolutionTests\SolutionTests.cs (10)
2151opt => opt.GetProject(projectId)!.AnalyzerReferences, 2173AssertEx.Equal((AnalyzerReference[])[analyzerRef1, analyzerRef2], solution3.GetProject(projectId)!.AnalyzerReferences); 2199AssertEx.Equal((AnalyzerReference[])[analyzerRef2], solution2.GetProject(projectId)!.AnalyzerReferences); 2202Assert.Empty(solution3.GetProject(projectId)!.AnalyzerReferences); 2984Assert.Empty(solution.Projects.Single().AnalyzerReferences); 2991var actualAnalyzerReferences = newSolution.Projects.Single().AnalyzerReferences; 3008actualAnalyzerReferences = solution.Projects.Single().AnalyzerReferences; 3017actualAnalyzerReferences = solution.Projects.Single().AnalyzerReferences; 3023actualAnalyzerReferences = solution.Projects.Single().AnalyzerReferences; 3029actualAnalyzerReferences = solution.Projects.Single().AnalyzerReferences;
Microsoft.VisualStudio.LanguageServices (1)
Workspace\SourceGeneratedFileManager.cs (1)
358if (project.AnalyzerReferences.Any(a => a.FullPath == _documentIdentity.Generator.AssemblyPath))