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