17 references to DiagnosticDescriptors
Microsoft.AspNetCore.Http.RequestDelegateGenerator (17)
StaticRouteHandlerModel\Emitters\DiagnosticEmitter.cs (6)
16
diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.UnableToResolveReturnType, location));
22
diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.TypeParametersNotSupported, location));
27
diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InaccessibleTypesNotSupported, location));
32
diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.UnableToResolveAnonymousReturnType, location));
43
diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.TypeParametersNotSupported, location));
51
diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InaccessibleTypesNotSupported, location, typeSymbol.Name));
StaticRouteHandlerModel\Endpoint.cs (2)
31
Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.UnableToResolveMethod, Operation.Syntax.GetLocation()));
78
DiagnosticDescriptors
.UnableToResolveParameterDescriptor,
StaticRouteHandlerModel\EndpointParameter.cs (9)
117
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.UnableToResolveParameterDescriptor, location, symbol.Name));
153
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.KeyedAndNotKeyedServiceAttributesNotSupported, location));
168
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersNullable, location, Type.ToDisplayString(SymbolDisplayFormat.CSharpShortErrorMessageFormat)));
176
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersNested, location));
466
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersAbstractType, location, parameterTypeString));
472
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersEnumerableType, location, parameterTypeString));
511
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersSignature, location, parameterTypeString));
530
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersSingleConstructorOnly, location, parameterTypeString));
534
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersNoConstructorFound, location, parameterTypeString));