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; 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}"); 855_documentType?.Name = newName; 860if (_documentType is null) 865CodeTypeMemberCollection members = _documentType.Members; 884if (_documentType is null) 889CodeTypeMemberCollection members = _documentType.Members; 1034CodeTypeDeclaration? type = _documentType; 1141CodeTypeDeclaration? type = _documentType; 1233CodeTypeDeclaration? type = _documentType;