16 references to DiagnosticDescriptors
Microsoft.AspNetCore.Http.RequestDelegateGenerator (16)
StaticRouteHandlerModel\Emitters\DiagnosticEmitter.cs (5)
16
diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.TypeParametersNotSupported, location));
21
diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InaccessibleTypesNotSupported, location));
26
diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.UnableToResolveAnonymousReturnType, location));
37
diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.TypeParametersNotSupported, location));
45
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));