18 writes to Locations
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (18)
ComponentParameterCaptureUnmatchedValuesHasWrongTypeTest.cs (1)
67
Locations
= new[]
ComponentParameterCaptureUnmatchedValuesMustBeUniqueTest.cs (1)
55
Locations
= new[]
ComponentParameterSettersShouldBePublicTest.cs (3)
81
Locations
= new[]
91
Locations
= new[]
101
Locations
= new[]
ComponentParametersShouldBePublicCodeFixProviderTest.cs (4)
48
Locations
= new[]
88
Locations
= new[]
98
Locations
= new[]
108
Locations
= new[]
ComponentParametersShouldBePublicTest.cs (4)
66
Locations
= new[]
76
Locations
= new[]
86
Locations
= new[]
96
Locations
= new[]
ComponentParameterUsageAnalyzerTest.cs (5)
53
Locations
= new[]
84
Locations
= new[]
115
Locations
= new[]
146
Locations
= new[]
177
Locations
= new[]
10 references to Locations
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (10)
Helpers\DiagnosticResult.cs (6)
71
return this.
Locations
.Length > 0 ? this.
Locations
[0].Path : "";
79
return this.
Locations
.Length > 0 ? this.
Locations
[0].Line : -1;
87
return this.
Locations
.Length > 0 ? this.
Locations
[0].Column : -1;
Verifiers\DiagnosticVerifier.cs (4)
135
VerifyDiagnosticLocation(analyzer, actual, actual.Location, expected.
Locations
.First());
138
if (additionalLocations.Length != expected.
Locations
.Length - 1)
144
expected.
Locations
.Length - 1, additionalLocations.Length,
150
VerifyDiagnosticLocation(analyzer, actual, additionalLocations[j], expected.
Locations
[j + 1]);