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)
152if (_typeIndex.HasBindableMembers(type))
Emitter\CoreBindingHelpers.cs (30)
54Debug.Assert(_typeIndex.HasBindableMembers(objectType)); 105TypeSpec effectiveType = _typeIndex.GetEffectiveTypeSpec(type); 107Debug.Assert(effectiveType is UnsupportedTypeSpec || _typeIndex.CanBindTo(type.TypeRef)); 137if (_typeIndex.CanInstantiate(complexType)) 196(ParsableFromStringSpec)_typeIndex.GetEffectiveTypeSpec(type), 229ComplexTypeSpec effectiveType = (ComplexTypeSpec)_typeIndex.GetEffectiveTypeSpec(type); 230Debug.Assert(_typeIndex.HasBindableMembers(effectiveType)); 254Debug.Assert(_typeIndex.HasBindableMembers(type)); 265ComplexTypeSpec effectiveType = (ComplexTypeSpec)_typeIndex.GetEffectiveTypeSpec(type); 316Debug.Assert(_typeIndex.CanInstantiate(type)); 322.Where(prop => prop.SetOnInit && _typeIndex.ShouldBindTo(prop)); 376TypeSpec memberType = _typeIndex.GetTypeSpec(member.TypeRef); 419TypeSpec typeSpec = _typeIndex.GetEffectiveTypeSpec(member.TypeRef); 712switch (_typeIndex.GetEffectiveTypeSpec(elementTypeRef)) 731case ComplexTypeSpec complexType when _typeIndex.CanInstantiate(complexType): 766ParsableFromStringSpec keyType = (ParsableFromStringSpec)_typeIndex.GetEffectiveTypeSpec(type.KeyTypeRef); 767TypeSpec elementType = _typeIndex.GetEffectiveTypeSpec(type.ElementTypeRef); 820if (_typeIndex.CanInstantiate(complexElementType)) 856Debug.Assert(_typeIndex.HasBindableMembers(type)); 864if (_typeIndex.ShouldBindTo(property)) 888switch (_typeIndex.GetEffectiveTypeSpec(member.TypeRef)) 961if (!_typeIndex.HasBindableMembers(complexType) && 962!_typeIndex.GetEffectiveTypeSpec(complexType).IsValueType && 992return _typeIndex.CanInstantiate(complexType); 1006TypeSpec memberType = _typeIndex.GetTypeSpec(member.TypeRef); 1007ComplexTypeSpec effectiveMemberType = (ComplexTypeSpec)_typeIndex.GetEffectiveTypeSpec(memberType); 1064if (member.CanGet && _typeIndex.CanInstantiate(effectiveMemberType)) 1095if (!_typeIndex.HasBindableMembers(type)) 1099if (_typeIndex.CanInstantiate(type)) 1132if (_typeIndex.CanInstantiate(type))