2 writes to _documentType
System.Windows.Forms.Design (2)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (2)
74_documentType = null; 324_documentType = typeDeclaration;
26 references to _documentType
System.Windows.Forms.Design (26)
System\ComponentModel\Design\Serialization\CodeDomDesignerLoader.cs (26)
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; 636if (_documentType is null) 652string oldTypeName = _documentType.Name; 672reload |= (_documentType is null || !_documentType.Name.Equals(oldTypeName)); 831Debug.Assert(_documentType is not null, "EnsureDocument didn't create a document type"); 837_rootSerializer.Deserialize(manager, _documentType); 841_typeSerializer!.Deserialize(manager, _documentType); 844SetBaseComponentClassName($"{_documentNamespace.Name}.{_documentType.Name}"); 855if (_documentType is not null) 857_documentType.Name = newName; 863if (_documentType is null) 868CodeTypeMemberCollection members = _documentType.Members; 887if (_documentType is null) 892CodeTypeMemberCollection members = _documentType.Members; 1037CodeTypeDeclaration? type = _documentType; 1144CodeTypeDeclaration? type = _documentType; 1236CodeTypeDeclaration? type = _documentType;