1 write to _typeIndex
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
ConfigurationBindingGenerator.Emitter.cs (1)
27
_typeIndex
= new TypeIndex(sourceGenSpec.ConfigTypes);
34 references to _typeIndex
Microsoft.Extensions.Configuration.Binder.SourceGeneration (34)
Emitter\ConfigurationBinder.cs (1)
155
if (
_typeIndex
.HasBindableMembers(type))
Emitter\CoreBindingHelpers.cs (33)
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);
258
Debug.Assert(
_typeIndex
.HasBindableMembers(type));
267
ComplexTypeSpec effectiveType = (ComplexTypeSpec)
_typeIndex
.GetEffectiveTypeSpec(type);
327
Debug.Assert(
_typeIndex
.CanInstantiate(type));
333
.Where(prop => prop.SetOnInit &&
_typeIndex
.ShouldBindTo(prop));
387
TypeSpec memberType =
_typeIndex
.GetTypeSpec(member.TypeRef);
720
switch (
_typeIndex
.GetEffectiveTypeSpec(elementTypeRef))
739
case ComplexTypeSpec complexType when
_typeIndex
.CanInstantiate(complexType):
774
ParsableFromStringSpec keyType = (ParsableFromStringSpec)
_typeIndex
.GetEffectiveTypeSpec(type.KeyTypeRef);
775
TypeSpec elementType =
_typeIndex
.GetEffectiveTypeSpec(type.ElementTypeRef);
828
if (
_typeIndex
.CanInstantiate(complexElementType))
881
Debug.Assert(
_typeIndex
.HasBindableMembers(type));
891
if (!
_typeIndex
.ShouldBindTo(property))
945
_typeIndex
.ShouldBindTo(property) &&
965
switch (
_typeIndex
.GetEffectiveTypeSpec(property.TypeRef))
979
_typeIndex
.HasBindableMembers(complexType) ||
982
(canSet &&
_typeIndex
.CanInstantiate(complexType));
995
switch (
_typeIndex
.GetEffectiveTypeSpec(member.TypeRef))
1117
return
_typeIndex
.CanInstantiate(complexType);
1132
TypeSpec memberType =
_typeIndex
.GetTypeSpec(member.TypeRef);
1133
ComplexTypeSpec effectiveMemberType = (ComplexTypeSpec)
_typeIndex
.GetEffectiveTypeSpec(memberType);
1146
if (!
_typeIndex
.HasBindableMembers(effectiveMemberType) &&
1148
_typeIndex
.CanInstantiate(effectiveMemberType))
1214
if (!bindingToLocal && member.CanGet &&
_typeIndex
.CanInstantiate(effectiveMemberType))
1246
bool hasBindableMembers =
_typeIndex
.HasBindableMembers(type);
1250
&&
_typeIndex
.CanInstantiate(type);
1256
if (
_typeIndex
.CanInstantiate(type))
1302
if (
_typeIndex
.CanInstantiate(type))