public TypeEntry(TypeDef type, TypeEntry parent) { Type = type; Namespace = parent.Namespace; Namespace.Types.Add(this); Nested = new List<TypeEntry>(); Parent.Nested.Add(this); }
private void OpenModule() { if (typeEntry == null) { typeEntry = new TypeEntry(type, fileNamespaceEntry); } else { typeEntry = new TypeEntry(type, typeEntry); } }
private TypeDef CloseType() { this.type.SetFileNamespaceEntry(fileNamespaceEntry); if (typeEntry.Parent == null) { typeEntry = null; } else { typeEntry = typeEntry.Parent; } TypeDef type = this.type; this.type = this.type.Parent; return type; }