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