1 write to SymbolName
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
StaticRouteHandlerModel\EndpointParameter.cs (1)
56
SymbolName
= parameterName;
38 references to SymbolName
Microsoft.AspNetCore.Http.RequestDelegateGenerator (38)
StaticRouteHandlerModel\Emitters\EmitterExtensions.cs (1)
36
public static string EmitHandlerArgument(this EndpointParameter endpointParameter) => $"{endpointParameter.
SymbolName
}_local";
StaticRouteHandlerModel\Emitters\EndpointEmitter.cs (3)
87
var parameterName = parameter.
SymbolName
;
119
codeWriter.Write($@"var {parameter.
SymbolName
}_JsonBodyOrServiceResolver = ");
121
codeWriter.WriteLine($"ResolveJsonBodyOrService<{parameter.Type.ToDisplayString(EmitterConstants.DisplayFormat)}>(logOrThrowExceptionHelper, {SymbolDisplay.FormatLiteral(shortParameterTypeName, true)}, {SymbolDisplay.FormatLiteral(parameter.
SymbolName
, true)}, jsonSerializerOptions, serviceProviderIsService);");
StaticRouteHandlerModel\Emitters\EndpointJsonPreparationEmitter.cs (1)
41
codeWriter.WriteLine($"var {parameter.
SymbolName
}_JsonTypeInfo = (JsonTypeInfo<{typeName}>)jsonSerializerOptions.GetTypeInfo(typeof({parameter.Type.ToDisplayString(EmitterConstants.DisplayFormatWithoutNullability)}));");
StaticRouteHandlerModel\Emitters\EndpointParameterEmitter.cs (23)
47
codeWriter.WriteLine($@"logOrThrowExceptionHelper.RequiredParameterNotProvided({SymbolDisplay.FormatLiteral(endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.CSharpShortErrorMessageFormat), true)}, {SymbolDisplay.FormatLiteral(endpointParameter.
SymbolName
, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.ToMessageString(), true)});");
65
var assigningCode = $"await GeneratedRouteBuilderExtensionsCore.TryResolveFormAsync(httpContext, logOrThrowExceptionHelper, {SymbolDisplay.FormatLiteral(shortParameterTypeName, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.
SymbolName
, true)})";
66
var resolveFormResult = $"{endpointParameter.
SymbolName
}_resolveFormResult";
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)});");
221
var parameterName = endpointParameter.
SymbolName
;
240
codeWriter.WriteLine($@"logOrThrowExceptionHelper.RequiredParameterNotProvided({SymbolDisplay.FormatLiteral(endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.CSharpShortErrorMessageFormat), true)}, {SymbolDisplay.FormatLiteral(endpointParameter.
SymbolName
, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.ToMessageString(), true)});");
256
var assigningCode = $"await GeneratedRouteBuilderExtensionsCore.TryResolveBodyAsync<{endpointParameter.Type.ToDisplayString(EmitterConstants.DisplayFormat)}>(httpContext, logOrThrowExceptionHelper, {(endpointParameter.IsOptional ? "true" : "false")}, {SymbolDisplay.FormatLiteral(shortParameterTypeName, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.
SymbolName
, true)}, {endpointParameter.
SymbolName
}_JsonTypeInfo)";
257
var resolveBodyResult = $"{endpointParameter.
SymbolName
}_resolveBodyResult";
278
var assigningCode = $"await {endpointParameter.
SymbolName
}_JsonBodyOrServiceResolver(httpContext, {(endpointParameter.IsOptional ? "true" : "false")})";
279
var resolveJsonBodyOrServiceResult = $"{endpointParameter.
SymbolName
}_resolveJsonBodyOrServiceResult";
317
var assigningCode = $"await GeneratedRouteBuilderExtensionsCore.TryResolveBodyAsync<{endpointParameter.Type.ToDisplayString(EmitterConstants.DisplayFormat)}>(httpContext, logOrThrowExceptionHelper, {(endpointParameter.IsOptional ? "true" : "false")}, {SymbolDisplay.FormatLiteral(shortParameterTypeName, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.
SymbolName
, true)}, {endpointParameter.
SymbolName
}_JsonTypeInfo)";
318
var resolveBodyResult = $"{endpointParameter.
SymbolName
}_resolveBodyResult";
319
codeWriter.WriteLine($"var {endpointParameter.
SymbolName
}_JsonTypeInfo = (JsonTypeInfo<{endpointParameter.Type.ToDisplayString(EmitterConstants.DisplayFormat)}>)jsonOptions.SerializerOptions.GetTypeInfo(typeof({endpointParameter.Type.ToDisplayString(EmitterConstants.DisplayFormatWithoutNullability)}));");
376
codeWriter.WriteLine($@"logOrThrowExceptionHelper.RequiredParameterNotProvided({SymbolDisplay.FormatLiteral(endpointParameter.Type.ToDisplayString(SymbolDisplayFormat.CSharpShortErrorMessageFormat), true)}, {SymbolDisplay.FormatLiteral(endpointParameter.
SymbolName
, true)}, {SymbolDisplay.FormatLiteral(endpointParameter.ToMessageString(), true)});");
419
private static string EmitParameterDiagnosticComment(this EndpointParameter endpointParameter) => $"// Endpoint Parameter: {endpointParameter.
SymbolName
} (Type = {endpointParameter.Type}, IsOptional = {endpointParameter.IsOptional}, IsParsable = {endpointParameter.IsParsable}, IsArray = {endpointParameter.IsArray}, Source = {endpointParameter.Source})";
421
private static string EmitTempArgument(this EndpointParameter endpointParameter) => $"{endpointParameter.
SymbolName
}_temp";
423
private static string EmitParsedTempArgument(this EndpointParameter endpointParameter) => $"{endpointParameter.
SymbolName
}_parsed_temp";
424
private static string EmitAssigningCodeResult(this EndpointParameter endpointParameter) => $"{endpointParameter.
SymbolName
}_raw";
StaticRouteHandlerModel\Endpoint.cs (1)
80
parameter.
SymbolName
));
StaticRouteHandlerModel\EndpointParameter.cs (6)
182
var parameterList = string.Join(", ", EndpointParameters.Select(p => $"{p.
SymbolName
} = {p.EmitHandlerArgument()}"));
591
other.
SymbolName
==
SymbolName
&&
603
other.
SymbolName
==
SymbolName
&&
609
hashCode.Add(
SymbolName
);
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (3)
274
codeWriter.WriteLine($"var {parameter.
SymbolName
}_ParameterInfo = {resolveParameterInfo};");
275
codeWriter.WriteLine($"PopulateMetadataForParameter<{parameterType.ToDisplayString(EmitterConstants.DisplayFormat)}>({parameter.
SymbolName
}_ParameterInfo, options.EndpointBuilder);");
393
var parameterName = SymbolDisplay.FormatLiteral(parameter.
SymbolName
, true);