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