1 write to _typeIndex
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
ConfigurationBindingGenerator.Emitter.cs (1)
27
_typeIndex
= new TypeIndex(sourceGenSpec.ConfigTypes);
32 references to _typeIndex
Microsoft.Extensions.Configuration.Binder.SourceGeneration (32)
Emitter\ConfigurationBinder.cs (1)
152
if (
_typeIndex
.HasBindableMembers(type))
Emitter\CoreBindingHelpers.cs (31)
55
Debug.Assert(
_typeIndex
.HasBindableMembers(objectType));
106
TypeSpec effectiveType =
_typeIndex
.GetEffectiveTypeSpec(type);
108
Debug.Assert(effectiveType is UnsupportedTypeSpec ||
_typeIndex
.CanBindTo(type.TypeRef));
138
if (
_typeIndex
.CanInstantiate(complexType))
197
(ParsableFromStringSpec)
_typeIndex
.GetEffectiveTypeSpec(type),
230
ComplexTypeSpec effectiveType = (ComplexTypeSpec)
_typeIndex
.GetEffectiveTypeSpec(type);
231
Debug.Assert(
_typeIndex
.HasBindableMembers(effectiveType));
255
Debug.Assert(
_typeIndex
.HasBindableMembers(type));
264
ComplexTypeSpec effectiveType = (ComplexTypeSpec)
_typeIndex
.GetEffectiveTypeSpec(type);
324
Debug.Assert(
_typeIndex
.CanInstantiate(type));
330
.Where(prop => prop.SetOnInit &&
_typeIndex
.ShouldBindTo(prop));
384
TypeSpec memberType =
_typeIndex
.GetTypeSpec(member.TypeRef);
717
switch (
_typeIndex
.GetEffectiveTypeSpec(elementTypeRef))
736
case ComplexTypeSpec complexType when
_typeIndex
.CanInstantiate(complexType):
771
ParsableFromStringSpec keyType = (ParsableFromStringSpec)
_typeIndex
.GetEffectiveTypeSpec(type.KeyTypeRef);
772
TypeSpec elementType =
_typeIndex
.GetEffectiveTypeSpec(type.ElementTypeRef);
825
if (
_typeIndex
.CanInstantiate(complexElementType))
878
Debug.Assert(
_typeIndex
.HasBindableMembers(type));
888
if (!
_typeIndex
.ShouldBindTo(property))
942
_typeIndex
.ShouldBindTo(property) &&
962
switch (
_typeIndex
.GetEffectiveTypeSpec(property.TypeRef))
971
return
_typeIndex
.HasBindableMembers(complexType) ||
991
switch (
_typeIndex
.GetEffectiveTypeSpec(member.TypeRef))
1085
if (!
_typeIndex
.HasBindableMembers(complexType) &&
1116
return
_typeIndex
.CanInstantiate(complexType);
1131
TypeSpec memberType =
_typeIndex
.GetTypeSpec(member.TypeRef);
1132
ComplexTypeSpec effectiveMemberType = (ComplexTypeSpec)
_typeIndex
.GetEffectiveTypeSpec(memberType);
1206
if (!bindingToLocal && member.CanGet &&
_typeIndex
.CanInstantiate(effectiveMemberType))
1238
if (!
_typeIndex
.HasBindableMembers(type))
1242
if (
_typeIndex
.CanInstantiate(type))
1288
if (
_typeIndex
.CanInstantiate(type))