public MessageNodeImpl(ITreeNodeGroup treeNodeGroup, Guid guid, ImageReference imgRef, string msg) { TreeNodeGroup = treeNodeGroup; Guid = guid; this.imgRef = imgRef; Message = msg; }
public BaseTypeNodeImpl(ITreeNodeGroup treeNodeGroup, ITypeDefOrRef typeDefOrRef, bool isBaseType) { TreeNodeGroup = treeNodeGroup; this.isBaseType = isBaseType; // Keep weak refs to them so we won't prevent removed modules from being GC'd. weakRefTypeDefOrRef = new WeakReference(typeDefOrRef); weakRefResolvedTypeDef = new WeakReference(null); }
public AssemblyReferenceNodeImpl(ITreeNodeGroup treeNodeGroup, ModuleDef asmRefOwnerModule, AssemblyRef assemblyRef) { TreeNodeGroup = treeNodeGroup; this.asmRefOwnerModule = new WeakReference(asmRefOwnerModule); // Make sure we don't hold on to the original reference since it could prevent GC of the // owner module. AssemblyRef = assemblyRef.ToAssemblyRef(); AssemblyRef.Rid = assemblyRef.Rid; }
public TypeSpecsFolderNodeImpl(ITreeNodeGroup treeNodeGroup, Dictionary <ITypeDefOrRef, TypeRefInfo> typeDict) { TreeNodeGroup = treeNodeGroup; this.typeDict = typeDict; foreach (var kv in typeDict) { scope = kv.Key.Scope; if (!(scope is null)) { break; } } }
public FieldReferencesFolderNodeImpl(ITreeNodeGroup treeNodeGroup, Dictionary <MemberRef, MemberRef> fieldDict) { TreeNodeGroup = treeNodeGroup; this.fieldDict = fieldDict; foreach (var kv in fieldDict) { scope = kv.Key.DeclaringType?.Scope; if (!(scope is null)) { break; } } }
public EventReferencesFolderNodeImpl(ITreeNodeGroup treeNodeGroup, Dictionary <IMethod, HashSet <IMethod> > eventDict) { TreeNodeGroup = treeNodeGroup; this.eventDict = eventDict; foreach (var kv in eventDict) { scope = kv.Key.DeclaringType?.Scope; if (!(scope is null)) { break; } } }
public PropertyReferencesFolderNodeImpl(ITreeNodeGroup treeNodeGroup, Dictionary <IMethod, HashSet <IMethod> > propertyDict) { TreeNodeGroup = treeNodeGroup; this.propertyDict = propertyDict; foreach (var kv in propertyDict) { scope = kv.Key.DeclaringType?.Scope; if (scope is not null) { break; } } }
public DerivedTypesFolderNodeImpl(ITreeNodeGroup treeNodeGroup, TypeDef type) { TreeNodeGroup = treeNodeGroup; this.type = type; }
public TypeReferencesFolderNodeImpl(ITreeNodeGroup treeNodeGroup, ModuleDocumentNode moduleNode) { Debug.Assert(!(moduleNode.Document.ModuleDef is null)); TreeNodeGroup = treeNodeGroup; this.moduleNode = moduleNode; }
public TypeReferenceNodeImpl(ITreeNodeGroup treeNodeGroup, ITypeDefOrRef type, TypeRefInfo typeInfo) : base(type) { TreeNodeGroup = treeNodeGroup; this.typeInfo = typeInfo; }
public DerivedTypeNodeImpl(ITreeNodeGroup treeNodeGroup, TypeDef type) { TreeNodeGroup = treeNodeGroup; weakRefTypeDef = new WeakReference(type); }
public NamespaceNodeImpl(ITreeNodeGroup treeNodeGroup, string name, List <TypeDef> types) : base(name) { TreeNodeGroup = treeNodeGroup; typesToCreate = types; }
public BaseTypeFolderNodeImpl(ITreeNodeGroup treeNodeGroup, TypeDef type) { TreeNodeGroup = treeNodeGroup; this.type = type; }
public ResourcesFolderNodeImpl(ITreeNodeGroup treeNodeGroup, ModuleDef module) { TreeNodeGroup = treeNodeGroup; this.module = module; }