24 references to ApiSymbolNames
Microsoft.AspNetCore.Mvc.Api.Analyzers (24)
ActualApiResponseMetadataFactory.cs (3)
181else if (HasAttributeNamed(property, ApiSymbolNames.ActionResultObjectValueAttribute)) 199if (HasAttributeNamed(parameter, ApiSymbolNames.ActionResultStatusCodeAttribute)) 207if (HasAttributeNamed(parameter, ApiSymbolNames.ActionResultObjectValueAttribute))
AddResponseTypeAttributeCodeFixAction.cs (5)
135var statusCodesType = semanticModel.Compilation.GetTypeByMetadataName(ApiSymbolNames.HttpStatusCodes); 207SyntaxFactory.ParseName(ApiSymbolNames.ProducesResponseTypeAttribute) 223SyntaxFactory.ParseName(ApiSymbolNames.ProducesResponseTypeAttribute) 237SyntaxFactory.ParseTypeName(ApiSymbolNames.HttpStatusCodes) 249SyntaxFactory.ParseName(ApiSymbolNames.ProducesDefaultResponseTypeAttribute)
ApiControllerSymbolCache.cs (16)
15if (!TryGetType(ApiSymbolNames.ApiConventionMethodAttribute, out var apiConventionMethodAttribute)) 20if (!TryGetType(ApiSymbolNames.ApiConventionNameMatchAttribute, out var apiConventionNameMatchAttribute)) 25if (!TryGetType(ApiSymbolNames.ApiConventionTypeAttribute, out var apiConventionTypeAttribute)) 30if (!TryGetType(ApiSymbolNames.ApiConventionTypeMatchAttribute, out var apiConventionTypeMatchAttribute)) 35if (!TryGetType(ApiSymbolNames.ControllerAttribute, out var controllerAttribute)) 40if (!TryGetType(ApiSymbolNames.DefaultStatusCodeAttribute, out var defaultStatusCodeAttribute)) 45if (!TryGetType(ApiSymbolNames.IActionResult, out var iActionResult)) 50if (!TryGetType(ApiSymbolNames.IApiBehaviorMetadata, out var iApiBehaviorMetadata)) 55if (!TryGetType(ApiSymbolNames.ModelStateDictionary, out var modelStateDictionary)) 60if (!TryGetType(ApiSymbolNames.NonActionAttribute, out var nonActionAttribute)) 65if (!TryGetType(ApiSymbolNames.NonControllerAttribute, out var nonControllerAttribute)) 70if (!TryGetType(ApiSymbolNames.ProblemDetails, out var problemDetails)) 75if (!TryGetType(ApiSymbolNames.ProducesDefaultResponseTypeAttribute, out var producesDefaultResponseTypeAttribute)) 80if (!TryGetType(ApiSymbolNames.ProducesErrorResponseTypeAttribute, out var producesErrorResponseTypeAttribute)) 85if (!TryGetType(ApiSymbolNames.ProducesResponseTypeAttribute, out var producesResponseTypeAttribute)) 90var statusCodeActionResult = compilation.GetTypeByMetadataName(ApiSymbolNames.IStatusCodeActionResult);