1 write to AnalyzerReferences
Microsoft.CodeAnalysis.Workspaces (1)
Workspace\Solution\ProjectInfo.cs (1)
174AnalyzerReferences = analyzerReferences;
11 references to AnalyzerReferences
Microsoft.CodeAnalysis.Workspaces (4)
Workspace\Solution\ProjectInfo.cs (2)
302var newAnalyzerReferences = analyzerReferences ?? AnalyzerReferences; 313newAnalyzerReferences == AnalyzerReferences &&
Workspace\Solution\ProjectState.cs (1)
667public IReadOnlyList<AnalyzerReference> AnalyzerReferences => this.ProjectInfo.AnalyzerReferences;
Workspace\Solution\SolutionCompilationState.cs (1)
599.WithProjectAnalyzerReferences(projectId, info.AnalyzerReferences);
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
CommandLineProject\CommandLineProjectTests.cs (2)
153var analyzerRef = info.AnalyzerReferences.Single(); 167var analyzerRef = info.AnalyzerReferences.Single();
SolutionTests\ProjectInfoTests.cs (5)
154Assert.Same(analyzerReference, ((ImmutableArray<AnalyzerReference>)info1.AnalyzerReferences).Single()); 157Assert.True(((ImmutableArray<AnalyzerReference>)info2.AnalyzerReferences).IsEmpty); 160Assert.True(((ImmutableArray<AnalyzerReference>)info3.AnalyzerReferences).IsEmpty); 163Assert.True(((ImmutableArray<AnalyzerReference>)info4.AnalyzerReferences).IsEmpty); 203SolutionTestHelpers.TestListProperty(instance, (old, value) => old.WithAnalyzerReferences(value), opt => opt.AnalyzerReferences, (AnalyzerReference)new TestAnalyzerReference(), allowDuplicates: false);