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)
71
if (
_documentType
is not null)
187
[MemberNotNull(nameof(
_documentType
))]
195
Debug.Assert(
_documentType
is null && _documentNamespace is null, "We have no compile unit but we still have a type or namespace. Our state is inconsistent.");
210
if (
_documentType
is null)
331
if (
_documentType
is not null)
338
if (
_documentType
is null)
372
LoaderHost.AddService(
_documentType
);
383
[MemberNotNull(nameof(
_documentType
))]
387
CodeTypeDeclaration docDeclaration =
_documentType
;
636
if (
_documentType
is null)
652
string oldTypeName =
_documentType
.Name;
672
reload |= (
_documentType
is null || !
_documentType
.Name.Equals(oldTypeName));
831
Debug.Assert(
_documentType
is not null, "EnsureDocument didn't create a document type");
837
_rootSerializer.Deserialize(manager,
_documentType
);
841
_typeSerializer!.Deserialize(manager,
_documentType
);
844
SetBaseComponentClassName($"{_documentNamespace.Name}.{
_documentType
.Name}");
855
if (
_documentType
is not null)
857
_documentType
.Name = newName;
863
if (
_documentType
is null)
868
CodeTypeMemberCollection members =
_documentType
.Members;
887
if (
_documentType
is null)
892
CodeTypeMemberCollection members =
_documentType
.Members;
1037
CodeTypeDeclaration? type =
_documentType
;
1144
CodeTypeDeclaration? type =
_documentType
;
1236
CodeTypeDeclaration? type =
_documentType
;