2 instantiations of EndpointParameter
Microsoft.AspNetCore.Http.RequestDelegateGenerator (2)
StaticRouteHandlerModel\Endpoint.cs (1)
63
var parameter = new
EndpointParameter
(this, parameterSymbol, wellKnownTypes);
StaticRouteHandlerModel\EndpointParameter.cs (1)
179
EndpointParameters = matchedProperties.Select(matchedParameter => new
EndpointParameter
(endpoint, matchedParameter.Property, matchedParameter.Parameter, wellKnownTypes));
53 references to EndpointParameter
Microsoft.AspNetCore.Http.RequestDelegateGenerator (53)
StaticRouteHandlerModel\Emitters\EmitterExtensions.cs (3)
12
public static string ToMessageString(this
EndpointParameter
endpointParameter) => endpointParameter.Source switch
36
public static string EmitHandlerArgument(this
EndpointParameter
endpointParameter) => $"{endpointParameter.SymbolName}_local";
38
public static string EmitArgument(this
EndpointParameter
endpointParameter) => endpointParameter.Source switch
StaticRouteHandlerModel\Emitters\EndpointEmitter.cs (8)
14
internal static string EmitParameterPreparation(this IEnumerable<
EndpointParameter
> endpointParameters, EmitterContext emitterContext, int baseIndent = 0)
20
foreach (
var
parameter in endpointParameters)
71
foreach (
var
parameter in endpoint.Parameters)
76
foreach (
var
innerParameter in innerParameters)
83
static void ProcessParameter(
EndpointParameter
parameter, CodeWriter codeWriter, Endpoint endpoint)
98
foreach (
var
parameter in endpoint.Parameters)
103
foreach (
var
innerParameter in innerParameters)
110
static void ProcessParameter(
EndpointParameter
parameter, CodeWriter codeWriter, ref bool serviceProviderEmitted)
StaticRouteHandlerModel\Emitters\EndpointJsonPreparationEmitter.cs (3)
22
foreach (
var
parameter in endpoint.Parameters)
27
foreach (
var
innerParameter in innerParameters)
34
static void ProcessParameter(
EndpointParameter
parameter, CodeWriter codeWriter)
StaticRouteHandlerModel\Emitters\EndpointParameterEmitter.cs (18)
14
internal static void EmitSpecialParameterPreparation(this
EndpointParameter
endpointParameter, CodeWriter codeWriter)
17
internal static void EmitQueryOrHeaderParameterPreparation(this
EndpointParameter
endpointParameter, CodeWriter codeWriter)
55
internal static void EmitFormParameterPreparation(this
EndpointParameter
endpointParameter, CodeWriter codeWriter, ref bool readFormEmitted)
90
internal static void EmitParsingBlock(this
EndpointParameter
endpointParameter, CodeWriter codeWriter)
175
static void EmitLogOrThrowException(
EndpointParameter
parameter, CodeWriter writer, string inputArgument)
190
internal static void EmitRouteParameterPreparation(this
EndpointParameter
endpointParameter, CodeWriter codeWriter)
217
internal static void EmitRouteOrQueryParameterPreparation(this
EndpointParameter
endpointParameter, CodeWriter codeWriter)
248
internal static void EmitJsonBodyParameterPreparationString(this
EndpointParameter
endpointParameter, CodeWriter codeWriter)
270
internal static void EmitJsonBodyOrServiceParameterPreparationString(this
EndpointParameter
endpointParameter, CodeWriter codeWriter)
298
internal static void EmitJsonBodyOrQueryParameterPreparationString(this
EndpointParameter
endpointParameter, CodeWriter codeWriter)
334
internal static void EmitBindAsyncPreparation(this
EndpointParameter
endpointParameter, CodeWriter codeWriter)
383
internal static void EmitServiceParameterPreparation(this
EndpointParameter
endpointParameter, CodeWriter codeWriter)
397
internal static void EmitKeyedServiceParameterPreparation(this
EndpointParameter
endpointParameter, CodeWriter codeWriter)
412
internal static void EmitAsParametersParameterPreparation(this
EndpointParameter
endpointParameter, CodeWriter codeWriter, EmitterContext emitterContext)
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 (5)
53
var parameters = new
EndpointParameter
[method.Parameters.Length];
63
var
parameter = new EndpointParameter(this, parameterSymbol, wellKnownTypes);
101
public
EndpointParameter
[] Parameters { get; } = Array.Empty<
EndpointParameter
>();
142
foreach (
var
parameter in endpoint.Parameters)
StaticRouteHandlerModel\EndpointParameter.cs (3)
287
public IEnumerable<
EndpointParameter
>? EndpointParameters { get; set; }
589
obj is
EndpointParameter
other &&
598
obj is
EndpointParameter
other &&
StaticRouteHandlerModel\Model\EndpointParameterExtensions.cs (2)
10
public static ITypeSymbol UnwrapParameterType(this
EndpointParameter
parameter)
54
public static ITypeSymbol? GetBindAsyncReturnType(this
EndpointParameter
parameter)
StaticRouteHandlerModel\StaticRouteHandlerModel.Emitter.cs (11)
37
private static string EmitUnwrappedParameterType(
EndpointParameter
p)
247
foreach (
var
parameter in endpoint.Parameters)
251
foreach (
var
innerParameter in innerParameters)
262
static void ProcessParameter(
EndpointParameter
parameter, CodeWriter codeWriter)
302
EndpointParameter
? explicitBodyParameter = null;
303
var potentialImplicitBodyParameters = new List<
EndpointParameter
>();
305
foreach (
var
parameter in endpoint.Parameters)
330
foreach (
var
parameter in potentialImplicitBodyParameters)
370
foreach (
var
parameter in endpoint.Parameters)
375
foreach (
var
propertyAsParameter in parameter.EndpointParameters)
391
static void EmitParameterBindingMetadataForParameter(
EndpointParameter
parameter, CodeWriter codeWriter)