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 }) 295case ObjectSpec objectType: 312if (_bindingHelperInfo.TypesForGen_Initialize is not ImmutableEquatableArray<ObjectSpec> types) 317foreach (ObjectSpec type in types) 324private void EmitInitializeMethod(ObjectSpec type) 879private void EmitBindCoreImplForObject(ObjectSpec type) 942type is ObjectSpec { Properties: { } properties } objectType && 954private static bool IsBoundInInitialize(ObjectSpec type, PropertySpec property) => 981complexType is not ObjectSpec { InstantiationStrategy: ObjectInstantiationStrategy.ParameterizedConstructor } || 1147effectiveMemberType is ObjectSpec { InstantiationStrategy: ObjectInstantiationStrategy.ParameterizedConstructor } && 1260else if (type is ObjectSpec { InitExceptionMessage: string exMsg }) 1343if (type is ObjectSpec { InitExceptionMessage: string exMsg }) 1411ObjectSpec? objectType = type as ObjectSpec; 1451string initMethodIdentifier = GetInitializeMethodDisplayString(((ObjectSpec)type));
Emitter\Helpers.cs (1)
283private 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), 172case ObjectSpec objectSpec:
Specs\TypeIndex.cs (3)
25ObjectSpec objectSpec => objectSpec is { InstantiationStrategy: not ObjectInstantiationStrategy.None, InitExceptionMessage: null }, 40ObjectSpec objectSpec => objectSpec.Properties?.Any(ShouldBindTo) is true, 140public static string GetConfigKeyCacheFieldName(ObjectSpec type) => $"s_configKeys_{type.IdentifierCompatibleSubstring}";