1 write to _typeIndex
Microsoft.Extensions.Configuration.Binder.SourceGeneration (1)
ConfigurationBindingGenerator.Emitter.cs (1)
27
_typeIndex
= new TypeIndex(sourceGenSpec.ConfigTypes);
31 references to _typeIndex
Microsoft.Extensions.Configuration.Binder.SourceGeneration (31)
Emitter\ConfigurationBinder.cs (1)
152
if (
_typeIndex
.HasBindableMembers(type))
Emitter\CoreBindingHelpers.cs (30)
54
Debug.Assert(
_typeIndex
.HasBindableMembers(objectType));
105
TypeSpec effectiveType =
_typeIndex
.GetEffectiveTypeSpec(type);
107
Debug.Assert(effectiveType is UnsupportedTypeSpec ||
_typeIndex
.CanBindTo(type.TypeRef));
137
if (
_typeIndex
.CanInstantiate(complexType))
196
(ParsableFromStringSpec)
_typeIndex
.GetEffectiveTypeSpec(type),
229
ComplexTypeSpec effectiveType = (ComplexTypeSpec)
_typeIndex
.GetEffectiveTypeSpec(type);
230
Debug.Assert(
_typeIndex
.HasBindableMembers(effectiveType));
254
Debug.Assert(
_typeIndex
.HasBindableMembers(type));
265
ComplexTypeSpec effectiveType = (ComplexTypeSpec)
_typeIndex
.GetEffectiveTypeSpec(type);
316
Debug.Assert(
_typeIndex
.CanInstantiate(type));
322
.Where(prop => prop.SetOnInit &&
_typeIndex
.ShouldBindTo(prop));
376
TypeSpec memberType =
_typeIndex
.GetTypeSpec(member.TypeRef);
419
TypeSpec typeSpec =
_typeIndex
.GetEffectiveTypeSpec(member.TypeRef);
712
switch (
_typeIndex
.GetEffectiveTypeSpec(elementTypeRef))
731
case ComplexTypeSpec complexType when
_typeIndex
.CanInstantiate(complexType):
766
ParsableFromStringSpec keyType = (ParsableFromStringSpec)
_typeIndex
.GetEffectiveTypeSpec(type.KeyTypeRef);
767
TypeSpec elementType =
_typeIndex
.GetEffectiveTypeSpec(type.ElementTypeRef);
820
if (
_typeIndex
.CanInstantiate(complexElementType))
856
Debug.Assert(
_typeIndex
.HasBindableMembers(type));
864
if (
_typeIndex
.ShouldBindTo(property))
888
switch (
_typeIndex
.GetEffectiveTypeSpec(member.TypeRef))
961
if (!
_typeIndex
.HasBindableMembers(complexType) &&
962
!
_typeIndex
.GetEffectiveTypeSpec(complexType).IsValueType &&
992
return
_typeIndex
.CanInstantiate(complexType);
1006
TypeSpec memberType =
_typeIndex
.GetTypeSpec(member.TypeRef);
1007
ComplexTypeSpec effectiveMemberType = (ComplexTypeSpec)
_typeIndex
.GetEffectiveTypeSpec(memberType);
1064
if (member.CanGet &&
_typeIndex
.CanInstantiate(effectiveMemberType))
1095
if (!
_typeIndex
.HasBindableMembers(type))
1099
if (
_typeIndex
.CanInstantiate(type))
1132
if (
_typeIndex
.CanInstantiate(type))