22 references to SymbolNames
Microsoft.AspNetCore.Mvc.Analyzers (22)
AttributesShouldNotBeAppliedToPageModelAnalyzer.cs (5)
147
PageModelAttribute = compilation.GetTypeByMetadataName(
SymbolNames
.PageModelAttributeType);
148
IFilterMetadata = compilation.GetTypeByMetadataName(
SymbolNames
.IFilterMetadataType);
149
AuthorizeAttribute = compilation.GetTypeByMetadataName(
SymbolNames
.AuthorizeAttribute);
150
AllowAnonymousAttribute = compilation.GetTypeByMetadataName(
SymbolNames
.AllowAnonymousAttribute);
151
IRouteTemplateProvider = compilation.GetTypeByMetadataName(
SymbolNames
.IRouteTemplateProvider);
AvoidHtmlPartialAnalyzer.cs (4)
29
if (string.Equals(
SymbolNames
.PartialMethod, method.Name, StringComparison.Ordinal))
34
new[] {
SymbolNames
.PartialMethod }));
36
else if (string.Equals(
SymbolNames
.RenderPartialMethod, method.Name, StringComparison.Ordinal))
41
new[] {
SymbolNames
.RenderPartialMethod }));
TagHelpersInCodeBlocksAnalyzer.cs (3)
151
if (!TryGetType(
SymbolNames
.TagHelperRunnerTypeName, out var tagHelperRunnerType))
156
if (!TryGetType(
SymbolNames
.TaskTypeName, out var taskType))
161
var members = tagHelperRunnerType.GetMembers(
SymbolNames
.RunAsyncMethodName);
TopLevelParameterNameAnalyzer.cs (8)
237
if (!TryGetType(
SymbolNames
.BindAttribute, out var bindAttribute))
242
if (!TryGetType(
SymbolNames
.ControllerAttribute, out var controllerAttribute))
247
if (!TryGetType(
SymbolNames
.FromBodyAttribute, out var fromBodyAttribute))
252
if (!TryGetType(
SymbolNames
.IApiBehaviorMetadata, out var apiBehaviorMetadata))
257
if (!TryGetType(
SymbolNames
.IBinderTypeProviderMetadata, out var iBinderTypeProviderMetadata))
262
if (!TryGetType(
SymbolNames
.IModelNameProvider, out var iModelNameProvider))
267
if (!TryGetType(
SymbolNames
.NonControllerAttribute, out var nonControllerAttribute))
272
if (!TryGetType(
SymbolNames
.NonActionAttribute, out var nonActionAttribute))
ViewFeaturesAnalyzerContext.cs (2)
16
HtmlHelperType = GetType(
SymbolNames
.IHtmlHelperType);
17
HtmlHelperPartialExtensionsType = GetType(
SymbolNames
.HtmlHelperPartialExtensionsType);