24 references to CSharpShortErrorMessageFormat
Microsoft.AspNetCore.Components.Analyzers (4)
InternalUsageAnalyzer.cs (4)
140
symbol.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
)));
150
containingType.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
)));
169
symbol.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
)));
179
containingType.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
)));
Microsoft.AspNetCore.Components.SdkAnalyzers (4)
InternalUsageAnalyzer.cs (4)
140
symbol.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
)));
150
containingType.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
)));
169
symbol.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
)));
179
containingType.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
)));
Microsoft.AspNetCore.Http.RequestDelegateGenerator (15)
StaticRouteHandlerModel\Emitters\EmitterExtensions.cs (2)
20
? $"{endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
)}.BindAsync(HttpContext)"
21
: $"{endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
)}.BindAsync(HttpContext, ParameterInfo)",
StaticRouteHandlerModel\Emitters\EndpointEmitter.cs (1)
120
var shortParameterTypeName = parameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
);
StaticRouteHandlerModel\Emitters\EndpointParameterEmitter.cs (10)
47
codeWriter.WriteLine($@"logOrThrowExceptionHelper.RequiredParameterNotProvided({SymbolDisplay.FormatLiteral(endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
), true)}, {SymbolDisplay.FormatLiteral(endpointParameter.SymbolName, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.ToMessageString(), true)});");
64
var shortParameterTypeName = endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
);
83
codeWriter.WriteLine($@"logOrThrowExceptionHelper.RequiredParameterNotProvided({SymbolDisplay.FormatLiteral(endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
), true)}, {SymbolDisplay.FormatLiteral(endpointParameter.SymbolName, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.ToMessageString(), true)});");
180
writer.WriteLine($@"logOrThrowExceptionHelper.RequiredParameterNotProvided({SymbolDisplay.FormatLiteral(parameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
), true)}, {SymbolDisplay.FormatLiteral(parameter.SymbolName, true)}, {SymbolDisplay.FormatLiteral(parameter.ToMessageString(), true)});");
184
writer.WriteLine($@"logOrThrowExceptionHelper.ParameterBindingFailed({SymbolDisplay.FormatLiteral(parameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
), true)}, {SymbolDisplay.FormatLiteral(parameter.SymbolName, true)}, {inputArgument});");
209
codeWriter.WriteLine($@"logOrThrowExceptionHelper.RequiredParameterNotProvided({SymbolDisplay.FormatLiteral(endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
), true)}, {SymbolDisplay.FormatLiteral(endpointParameter.SymbolName, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.ToMessageString(), true)});");
240
codeWriter.WriteLine($@"logOrThrowExceptionHelper.RequiredParameterNotProvided({SymbolDisplay.FormatLiteral(endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
), true)}, {SymbolDisplay.FormatLiteral(endpointParameter.SymbolName, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.ToMessageString(), true)});");
255
var shortParameterTypeName = endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
);
316
var shortParameterTypeName = endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
);
376
codeWriter.WriteLine($@"logOrThrowExceptionHelper.RequiredParameterNotProvided({SymbolDisplay.FormatLiteral(endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
), true)}, {SymbolDisplay.FormatLiteral(endpointParameter.SymbolName, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.ToMessageString(), true)});");
StaticRouteHandlerModel\EndpointParameter.cs (2)
167
endpoint.Diagnostics.Add(Diagnostic.Create(DiagnosticDescriptors.InvalidAsParametersNullable, location, Type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
)));
461
var parameterTypeString = type.ToDisplayString(SymbolDisplayFormat.
CSharpShortErrorMessageFormat
);
Microsoft.CodeAnalysis.CSharp (1)
Errors\MessageProvider.cs (1)
106
return SymbolDisplay.ToDisplayString(symbol, SymbolDisplayFormat.
CSharpShortErrorMessageFormat
);