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