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