15 references to DiagnosticDescriptors
Microsoft.AspNetCore.Http.RequestDelegateGenerator (15)
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 (8)
116
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.UnableToResolveParameterDescriptor, location, symbol.Name));
152
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.KeyedAndNotKeyedServiceAttributesNotSupported, location));
167
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersNullable, location, Type.ToDisplayString(SymbolDisplayFormat.CSharpShortErrorMessageFormat)));
175
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersNested, location));
465
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersAbstractType, location, parameterTypeString));
504
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersSignature, location, parameterTypeString));
523
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersSingleConstructorOnly, location, parameterTypeString));
527
endpoint.Diagnostics.Add(Diagnostic.Create(
DiagnosticDescriptors
.InvalidAsParametersNoConstructorFound, location, parameterTypeString));