1 instantiation of ObjectSpec
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
ConfigurationBindingGenerator.Parser.cs (1)
831return new ObjectSpec(
24 references to ObjectSpec
Microsoft.Extensions.Configuration.Binder.SourceGeneration (24)
ConfigurationBindingGenerator.Parser.cs (1)
653private ObjectSpec CreateObjectSpec(TypeParseInfo typeParseInfo)
Emitter\CoreBindingHelpers.cs (16)
50if (type is not ObjectSpec objectType) 143else if (type is ObjectSpec { InitExceptionMessage: string exMsg }) 292case ObjectSpec objectType: 309if (_bindingHelperInfo.TypesForGen_Initialize is not ImmutableEquatableArray<ObjectSpec> types) 314foreach (ObjectSpec type in types) 321private void EmitInitializeMethod(ObjectSpec type) 876private void EmitBindCoreImplForObject(ObjectSpec type) 939type is ObjectSpec { Properties: { } properties } objectType && 951private static bool IsBoundInInitialize(ObjectSpec type, PropertySpec property) => 974complexType is not ObjectSpec { InstantiationStrategy: ObjectInstantiationStrategy.ParameterizedConstructor }; 1088((ObjectSpec)complexType).InstantiationStrategy == ObjectInstantiationStrategy.ParameterizedConstructor) 1246else if (type is ObjectSpec { InitExceptionMessage: string exMsg }) 1329if (type is ObjectSpec { InitExceptionMessage: string exMsg }) 1393ObjectSpec? objectType = type as ObjectSpec; 1433string initMethodIdentifier = GetInitializeMethodDisplayString(((ObjectSpec)type));
Emitter\Helpers.cs (1)
279private static string GetInitializeMethodDisplayString(ObjectSpec type) =>
Specs\BindingHelperInfo.cs (3)
22public required ImmutableEquatableArray<ObjectSpec>? TypesForGen_Initialize { get; init; } 55TypesForGen_Initialize = GetTypesForGen_CoreBindingHelper<ObjectSpec>(MethodsToGen_CoreBindingHelper.Initialize), 162case ObjectSpec objectSpec:
Specs\TypeIndex.cs (3)
25ObjectSpec objectSpec => objectSpec is { InstantiationStrategy: not ObjectInstantiationStrategy.None, InitExceptionMessage: null }, 34ObjectSpec objectSpec => objectSpec.Properties?.Any(ShouldBindTo) is true, 116public static string GetConfigKeyCacheFieldName(ObjectSpec type) => $"s_configKeys_{type.IdentifierCompatibleSubstring}";