2 writes to _documentType
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (2)
74_documentType = null; 324_documentType = typeDeclaration;
25 references to _documentType
System.Windows.Forms.Design (25)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (25)
71if (_documentType is not null) 187[MemberNotNull(nameof(_documentType))] 195Debug.Assert(_documentType is null && _documentNamespace is null, "We have no compile unit but we still have a type or namespace. Our state is inconsistent."); 210if (_documentType is null) 331if (_documentType is not null) 338if (_documentType is null) 372LoaderHost.AddService(_documentType); 383[MemberNotNull(nameof(_documentType))] 387CodeTypeDeclaration docDeclaration = _documentType; 630if (_documentType is null) 646string oldTypeName = _documentType.Name; 666reload |= (_documentType is null || !_documentType.Name.Equals(oldTypeName)); 825Debug.Assert(_documentType is not null, "EnsureDocument didn't create a document type"); 831_rootSerializer.Deserialize(manager, _documentType); 835_typeSerializer!.Deserialize(manager, _documentType); 838SetBaseComponentClassName($"{_documentNamespace.Name}.{_documentType.Name}"); 849_documentType?.Name = newName; 854if (_documentType is null) 859CodeTypeMemberCollection members = _documentType.Members; 878if (_documentType is null) 883CodeTypeMemberCollection members = _documentType.Members; 1028CodeTypeDeclaration? type = _documentType; 1135CodeTypeDeclaration? type = _documentType; 1227CodeTypeDeclaration? type = _documentType;