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