73 references to MethodsToGen
ConfigurationSchemaGenerator (73)
ConfigurationBindingGenerator.ForSchemaGeneration.cs (1)
47
var typeParseInfo = TypeParseInfo.Create(type,
MethodsToGen
.None, invocation: null);
RuntimeSource\Configuration.Binder\ConfigurationBindingGenerator.Parser.cs (5)
127
MethodsToGen
overload = typeParseInfo.BindingOverload;
129
if ((
MethodsToGen
.ConfigBinder_Any & overload) is not 0)
133
else if ((
MethodsToGen
.OptionsBuilderExt_Any & overload) is not 0)
139
Debug.Assert((
MethodsToGen
.ServiceCollectionExt_Any & overload) is not 0);
145
private void EnqueueTargetTypeForRootInvocation(ITypeSymbol? typeSymbol,
MethodsToGen
overload, BinderInvocation invocation)
RuntimeSource\Configuration.Binder\Parser\ConfigurationBinder.cs (27)
50
MethodsToGen
overload =
MethodsToGen
.None;
54
overload =
MethodsToGen
.ConfigBinder_Bind_instance;
60
overload =
MethodsToGen
.ConfigBinder_Bind_key_instance;
64
overload =
MethodsToGen
.ConfigBinder_Bind_instance_BinderOptions;
68
if (overload is
MethodsToGen
.None)
75
MethodsToGen
.ConfigBinder_Bind_instance => 1,
76
MethodsToGen
.ConfigBinder_Bind_instance_BinderOptions => 1,
77
MethodsToGen
.ConfigBinder_Bind_key_instance => 2,
145
MethodsToGen
overload =
MethodsToGen
.None;
159
overload =
MethodsToGen
.ConfigBinder_Get_T;
163
overload =
MethodsToGen
.ConfigBinder_Get_T_BinderOptions;
177
overload =
MethodsToGen
.ConfigBinder_Get_TypeOf;
181
overload =
MethodsToGen
.ConfigBinder_Get_TypeOf_BinderOptions;
195
MethodsToGen
overload =
MethodsToGen
.None;
209
overload =
MethodsToGen
.ConfigBinder_GetValue_T_key;
213
overload =
MethodsToGen
.ConfigBinder_GetValue_T_key_defaultValue;
232
overload =
MethodsToGen
.ConfigBinder_GetValue_TypeOf_key;
236
overload =
MethodsToGen
.ConfigBinder_GetValue_TypeOf_key_defaultValue;
256
MethodsToGen
overload = typeParseInfo.BindingOverload;
258
Debug.Assert((
MethodsToGen
.ConfigBinder_Any & overload) is not 0);
260
if ((
MethodsToGen
.ConfigBinder_Bind & overload) is not 0)
270
Debug.Assert((
MethodsToGen
.ConfigBinder_Get & overload) is not 0 ||
271
(
MethodsToGen
.ConfigBinder_GetValue & overload) is not 0);
273
bool registered = (
MethodsToGen
.ConfigBinder_Get & overload) is not 0
RuntimeSource\Configuration.Binder\Parser\Extensions.cs (2)
23
public
MethodsToGen
BindingOverload { get; private init; }
27
public static TypeParseInfo Create(ITypeSymbol typeSymbol,
MethodsToGen
overload, BinderInvocation invocation, ContainingTypeDiagnosticInfo? containingTypeDiagInfo = null) =>
RuntimeSource\Configuration.Binder\Parser\OptionsBuilderConfigurationExtensions.cs (10)
56
MethodsToGen
overload = paramCount switch
58
2 =>
MethodsToGen
.OptionsBuilderExt_Bind_T,
60
MethodsToGen
.OptionsBuilderExt_Bind_T_BinderOptions,
61
_ =>
MethodsToGen
.None
64
if (overload is not
MethodsToGen
.None)
82
EnqueueTargetTypeForRootInvocation(type,
MethodsToGen
.OptionsBuilderExt_BindConfiguration_T_path_BinderOptions, invocation);
88
MethodsToGen
overload = typeParseInfo.BindingOverload;
89
Debug.Assert((
MethodsToGen
.OptionsBuilderExt_Any & overload) is not 0);
96
if ((
MethodsToGen
.OptionsBuilderExt_Bind & overload) is not 0)
98
if (!TryRegisterTypeForOverloadGen_ServiceCollectionExt(
MethodsToGen
.ServiceCollectionExt_Configure_T_name_BinderOptions, complexTypeSpec))
RuntimeSource\Configuration.Binder\Parser\OptionsConfigurationServiceCollectionExtensions.cs (8)
33
MethodsToGen
overload;
37
overload =
MethodsToGen
.ServiceCollectionExt_Configure_T;
47
overload =
MethodsToGen
.ServiceCollectionExt_Configure_T_name;
52
overload =
MethodsToGen
.ServiceCollectionExt_Configure_T_BinderOptions;
64
overload =
MethodsToGen
.ServiceCollectionExt_Configure_T_name_BinderOptions;
81
MethodsToGen
overload = typeParseInfo.BindingOverload;
90
private bool TryRegisterTypeForOverloadGen_ServiceCollectionExt(
MethodsToGen
overload, ComplexTypeSpec typeSpec)
92
Debug.Assert((
MethodsToGen
.ServiceCollectionExt_Any & overload) is not 0);
RuntimeSource\Configuration.Binder\Specs\BindingHelperInfo.cs (1)
17
public required MethodsToGen_CoreBindingHelper
MethodsToGen
{ get; init; }
RuntimeSource\Configuration.Binder\Specs\InterceptorInfo.cs (19)
18
public required MethodsToGen
MethodsToGen
{ get; init; }
29
public IEnumerable<InvocationLocationInfo>? GetInfo(
MethodsToGen
interceptor)
31
Debug.Assert((
MethodsToGen
.ConfigBinder_Bind & interceptor) is 0);
34
if ((
MethodsToGen
.ConfigBinder_Any ^
MethodsToGen
.ConfigBinder_Bind & interceptor) is not 0)
38
else if ((
MethodsToGen
.OptionsBuilderExt_Any & interceptor) is not 0)
44
Debug.Assert((
MethodsToGen
.ServiceCollectionExt_Any & interceptor) is not 0);
61
public
MethodsToGen
MethodsToGen { get; set; }
63
public void RegisterInterceptor_ConfigBinder_Bind(
MethodsToGen
overload, ComplexTypeSpec type, IInvocationOperation invocation)
65
Debug.Assert((
MethodsToGen
.ConfigBinder_Bind & overload) is not 0);
69
case
MethodsToGen
.ConfigBinder_Bind_instance:
72
case
MethodsToGen
.ConfigBinder_Bind_instance_BinderOptions:
75
case
MethodsToGen
.ConfigBinder_Bind_key_instance:
89
public void RegisterInterceptor(
MethodsToGen
overload, IInvocationOperation operation)
91
Debug.Assert((
MethodsToGen
.ConfigBinder_Bind & overload) is 0);
93
if ((
MethodsToGen
.ConfigBinder_Any ^
MethodsToGen
.ConfigBinder_Bind & overload) is not 0)
97
else if ((
MethodsToGen
.OptionsBuilderExt_Any & overload) is not 0)
103
Debug.Assert((
MethodsToGen
.ServiceCollectionExt_Any & overload) is not 0);