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)
152if (_typeIndex.HasBindableMembers(type))
Emitter\CoreBindingHelpers.cs (31)
55Debug.Assert(_typeIndex.HasBindableMembers(objectType)); 106TypeSpec effectiveType = _typeIndex.GetEffectiveTypeSpec(type); 108Debug.Assert(effectiveType is UnsupportedTypeSpec || _typeIndex.CanBindTo(type.TypeRef)); 138if (_typeIndex.CanInstantiate(complexType)) 197(ParsableFromStringSpec)_typeIndex.GetEffectiveTypeSpec(type), 230ComplexTypeSpec effectiveType = (ComplexTypeSpec)_typeIndex.GetEffectiveTypeSpec(type); 231Debug.Assert(_typeIndex.HasBindableMembers(effectiveType)); 255Debug.Assert(_typeIndex.HasBindableMembers(type)); 264ComplexTypeSpec effectiveType = (ComplexTypeSpec)_typeIndex.GetEffectiveTypeSpec(type); 324Debug.Assert(_typeIndex.CanInstantiate(type)); 330.Where(prop => prop.SetOnInit && _typeIndex.ShouldBindTo(prop)); 384TypeSpec memberType = _typeIndex.GetTypeSpec(member.TypeRef); 717switch (_typeIndex.GetEffectiveTypeSpec(elementTypeRef)) 736case ComplexTypeSpec complexType when _typeIndex.CanInstantiate(complexType): 771ParsableFromStringSpec keyType = (ParsableFromStringSpec)_typeIndex.GetEffectiveTypeSpec(type.KeyTypeRef); 772TypeSpec elementType = _typeIndex.GetEffectiveTypeSpec(type.ElementTypeRef); 825if (_typeIndex.CanInstantiate(complexElementType)) 878Debug.Assert(_typeIndex.HasBindableMembers(type)); 888if (!_typeIndex.ShouldBindTo(property)) 942_typeIndex.ShouldBindTo(property) && 962switch (_typeIndex.GetEffectiveTypeSpec(property.TypeRef)) 971return _typeIndex.HasBindableMembers(complexType) || 991switch (_typeIndex.GetEffectiveTypeSpec(member.TypeRef)) 1085if (!_typeIndex.HasBindableMembers(complexType) && 1116return _typeIndex.CanInstantiate(complexType); 1131TypeSpec memberType = _typeIndex.GetTypeSpec(member.TypeRef); 1132ComplexTypeSpec effectiveMemberType = (ComplexTypeSpec)_typeIndex.GetEffectiveTypeSpec(memberType); 1206if (!bindingToLocal && member.CanGet && _typeIndex.CanInstantiate(effectiveMemberType)) 1238if (!_typeIndex.HasBindableMembers(type)) 1242if (_typeIndex.CanInstantiate(type)) 1288if (_typeIndex.CanInstantiate(type))