75 references to DiagnosticLocation
Microsoft.AspNetCore.App.Analyzers.Test (51)
Components\DisallowNonLiteralSequenceNumbersTest.cs (3)
47
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
68
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
89
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
RouteEmbeddedLanguage\RoutePatternAnalyzerTests.cs (6)
46
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
78
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
111
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
139
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
167
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
196
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
RouteHandlers\DetectMisplacedLambdaAttributeTest.cs (6)
49
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
71
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
97
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
103
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
130
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
219
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
RouteHandlers\DisallowMvcBindArgumentsOnParametersTest.cs (2)
62
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
84
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
RouteHandlers\DisallowReturningActionResultsFromMapMethodsTest.cs (6)
131
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
154
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
182
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
214
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
252
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
290
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
WebApplicationBuilder\DisallowConfigureHostBuilderConfigureWebHostTest.cs (7)
46
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
67
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
89
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
129
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
157
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
186
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
220
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
WebApplicationBuilder\DisallowConfigureHostLoggingTest.cs (1)
274
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
WebApplicationBuilder\DisallowConfigureServicesTest.cs (1)
285
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
WebApplicationBuilder\DisallowConfigureWebHostBuilderConfigureTest.cs (4)
48
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
69
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
96
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
124
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
WebApplicationBuilder\DisallowConfigureWebHostBuilderUseStartupTest.cs (6)
47
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
68
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
88
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
109
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
136
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
164
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
WebApplicationBuilder\UseTopLevelRouteRegistrationInsteadOfUseEndpointsTest.cs (9)
123
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
164
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MM1"], diagnostic1.Location);
168
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MM2"], diagnostic2.Location);
172
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MM3"], diagnostic3.Location);
176
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MM4"], diagnostic4.Location);
208
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
234
AnalyzerAssert.
DiagnosticLocation
(source.DefaultMarkerLocation, diagnostic.Location);
264
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MM1"], diagnostic1.Location);
268
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MM2"], diagnostic2.Location);
Microsoft.AspNetCore.Components.Analyzers.Tests (11)
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (11)
35
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMBaseClass"], diagnostic.Location);
40
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMField"], diagnostic.Location);
45
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMInvocation"], diagnostic.Location);
50
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMProperty"], diagnostic.Location);
55
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMParameter"], diagnostic.Location);
60
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMReturnType"], diagnostic.Location);
79
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMField"], diagnostic.Location);
84
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMNewObject"], diagnostic.Location);
89
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMProperty"], diagnostic.Location);
94
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMNewObject2"], diagnostic.Location);
99
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMInvocation"], diagnostic.Location);
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (11)
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (11)
35
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMBaseClass"], diagnostic.Location);
40
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMField"], diagnostic.Location);
45
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMInvocation"], diagnostic.Location);
50
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMProperty"], diagnostic.Location);
55
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMParameter"], diagnostic.Location);
60
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMReturnType"], diagnostic.Location);
79
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMField"], diagnostic.Location);
84
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMNewObject"], diagnostic.Location);
89
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMProperty"], diagnostic.Location);
94
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMNewObject2"], diagnostic.Location);
99
AnalyzerAssert.
DiagnosticLocation
(source.MarkerLocations["MMInvocation"], diagnostic.Location);
Mvc.Api.Analyzers.Test (2)
ApiActionsDoNotRequireExplicitModelValidationCheckAnalyzerIntegrationTest.cs (1)
79
AnalyzerAssert.
DiagnosticLocation
(expectedLocation, diagnostic.Location);
ApiConventionAnalyzerIntegrationTest.cs (1)
295
AnalyzerAssert.
DiagnosticLocation
(expectedLocation, diagnostic.Location);