public override uint CategoryField(LIB_CATEGORY category) { switch (category) { case LIB_CATEGORY.LC_NODETYPE: return (uint)_LIBCAT_NODETYPE.LCNT_HIERARCHY; } return base.CategoryField(category); }
protected virtual uint CategoryField(LIB_CATEGORY category) { uint fieldValue = 0; switch (category) { case LIB_CATEGORY.LC_LISTTYPE: { LibraryNodeType subTypes = LibraryNodeType.None; foreach (LibraryNode node in children) { subTypes |= node.type; } fieldValue = (uint)subTypes; } break; case (LIB_CATEGORY)_LIB_CATEGORY2.LC_HIERARCHYTYPE: fieldValue = (uint)_LIBCAT_HIERARCHYTYPE.LCHT_UNKNOWN; break; case LIB_CATEGORY.LC_VISIBILITY: case LIB_CATEGORY.LC_NODETYPE: case LIB_CATEGORY.LC_MODIFIER: case LIB_CATEGORY.LC_CLASSTYPE: case LIB_CATEGORY.LC_CLASSACCESS: case LIB_CATEGORY.LC_MEMBERACCESS: case LIB_CATEGORY.LC_MEMBERTYPE: default: break; } return(fieldValue); }
protected virtual uint CategoryField(LIB_CATEGORY category) { uint fieldValue = 0; switch (category) { case LIB_CATEGORY.LC_LISTTYPE: { LibraryNodeType subTypes = LibraryNodeType.None; foreach (LibraryNode node in children) { subTypes |= node.type; } fieldValue = (uint)subTypes; } break; case (LIB_CATEGORY)_LIB_CATEGORY2.LC_HIERARCHYTYPE: fieldValue = (uint)_LIBCAT_HIERARCHYTYPE.LCHT_UNKNOWN; break; default: throw new NotImplementedException(); } return(fieldValue); }
protected override uint CategoryField(LIB_CATEGORY category) { switch (category) { case (LIB_CATEGORY)_LIB_CATEGORY2.LC_MEMBERINHERITANCE: if (this.NodeType == LibraryNodeType.Members) { return((uint)_LIBCAT_MEMBERINHERITANCE.LCMI_IMMEDIATE); } break; case LIB_CATEGORY.LC_MEMBERTYPE: return((uint)_LIBCAT_MEMBERTYPE.LCMT_VARIABLE); case LIB_CATEGORY.LC_MEMBERACCESS: return((uint)_LIBCAT_MEMBERACCESS.LCMA_PRIVATE); case LIB_CATEGORY.LC_CLASSTYPE: return((uint)_LIBCAT_CLASSTYPE.LCCT_CLASS); case LIB_CATEGORY.LC_CLASSACCESS: return((uint)_LIBCAT_CLASSACCESS.LCCA_PUBLIC); case LIB_CATEGORY.LC_VISIBILITY: if (Visible) { return((uint)_LIBCAT_VISIBILITY.LCV_VISIBLE); } return((uint)_LIBCAT_VISIBILITY.LCV_HIDDEN); case LIB_CATEGORY.LC_MODIFIER: return((uint)_LIBCAT_MODIFIERTYPE.LCMDT_NONVIRTUAL); } return(base.CategoryField(category)); }
public override uint CategoryField(LIB_CATEGORY category) { switch (category) { case LIB_CATEGORY.LC_NODETYPE: return((uint)_LIBCAT_NODETYPE.LCNT_HIERARCHY); } return(base.CategoryField(category)); }
public override uint CategoryField(LIB_CATEGORY category) { switch (category) { case (LIB_CATEGORY)_LIB_CATEGORY2.LC_MEMBERINHERITANCE: if (NodeType == LibraryNodeType.Members || NodeType == LibraryNodeType.Definitions) { return (uint)_LIBCAT_MEMBERINHERITANCE.LCMI_IMMEDIATE; } break; } return base.CategoryField(category); }
int CategoryField(LIB_CATEGORY Category, out uint pfCatField) { pfCatField = 0; switch ((LIB_CATEGORY)Category) { case LIB_CATEGORY.LC_MEMBERTYPE: pfCatField = (uint)_LIBCAT_MEMBERTYPE.LCMT_METHOD; break; case LIB_CATEGORY.LC_MEMBERACCESS: { if (_declaration.Type == SQDeclarationType.Variable && _declaration.Parent.Type == SQDeclarationType.Function) { pfCatField = (uint)_LIBCAT_MEMBERACCESS.LCMA_PRIVATE; } else { pfCatField = (uint)_LIBCAT_MEMBERACCESS.LCMA_PUBLIC; } /*else if (method.IsPrivate) * { * pfCatField = (uint)_LIBCAT_MEMBERACCESS.LCMA_PRIVATE; * } * else if (method.IsFamily) * { * pfCatField = (uint)_LIBCAT_MEMBERACCESS.LCMA_PROTECTED; * } * else if (method.IsFamilyOrAssembly) * { * pfCatField = (uint)_LIBCAT_MEMBERACCESS.LCMA_PROTECTED | * (uint)_LIBCAT_MEMBERACCESS.LCMA_PACKAGE; * } * else * { * // Show everything else as internal. * pfCatField = (uint)_LIBCAT_MEMBERACCESS.LCMA_PACKAGE; * }*/ } break; case LIB_CATEGORY.LC_VISIBILITY: pfCatField = (uint)_LIBCAT_VISIBILITY.LCV_VISIBLE; break; case LIB_CATEGORY.LC_LISTTYPE: pfCatField = (uint)_LIB_LISTTYPE.LLT_MEMBERS; break; default: return(Microsoft.VisualStudio.VSConstants.S_FALSE); } return(VSConstants.S_OK); }
public override uint CategoryField(LIB_CATEGORY category) { switch (category) { case (LIB_CATEGORY)_LIB_CATEGORY2.LC_MEMBERINHERITANCE: if (NodeType == LibraryNodeType.Members || NodeType == LibraryNodeType.Definitions) { return((uint)_LIBCAT_MEMBERINHERITANCE.LCMI_IMMEDIATE); } break; } return(base.CategoryField(category)); }
protected override uint CategoryField(LIB_CATEGORY category) { switch (category) { case (LIB_CATEGORY)_LIB_CATEGORY2.LC_MEMBERINHERITANCE: if (this.NodeType == LibraryNodeType.Members) { return((uint)_LIBCAT_MEMBERINHERITANCE.LCMI_IMMEDIATE); } break; } return(base.CategoryField(category)); }
public override uint CategoryField(LIB_CATEGORY category) { uint fieldValue = 0; switch (category) { case (LIB_CATEGORY)_LIB_CATEGORY2.LC_PHYSICALCONTAINERTYPE: fieldValue = (uint)_LIBCAT_PHYSICALCONTAINERTYPE.LCPT_PROJECT; break; case LIB_CATEGORY.LC_NODETYPE: fieldValue = (uint)_LIBCAT_NODETYPE.LCNT_SYMBOL; break; case LIB_CATEGORY.LC_LISTTYPE: { var subTypes = LibraryNodeType.None; foreach (var node in this.Children) { subTypes |= node.NodeType; } fieldValue = (uint)subTypes; } break; case (LIB_CATEGORY)_LIB_CATEGORY2.LC_HIERARCHYTYPE: fieldValue = (uint)_LIBCAT_HIERARCHYTYPE.LCHT_UNKNOWN; break; case LIB_CATEGORY.LC_VISIBILITY: fieldValue = (uint)_LIBCAT_VISIBILITY.LCV_VISIBLE; break; case LIB_CATEGORY.LC_MEMBERTYPE: fieldValue = (uint)_LIBCAT_MEMBERTYPE.LCMT_METHOD; break; case LIB_CATEGORY.LC_MEMBERACCESS: fieldValue = (uint)_LIBCAT_MEMBERACCESS.LCMA_PUBLIC; break; default: throw new NotImplementedException(); } return(fieldValue); }
protected override uint CategoryField(LIB_CATEGORY category) { switch (category) { case (LIB_CATEGORY)_LIB_CATEGORY2.LC_MEMBERINHERITANCE: if (this.NodeType == LibraryNodeType.Members) { return((uint)_LIBCAT_MEMBERINHERITANCE.LCMI_IMMEDIATE); } break; case LIB_CATEGORY.LC_MEMBERTYPE: return((uint)MemberType()); case LIB_CATEGORY.LC_MEMBERACCESS: return(this.MemberAccess()); case LIB_CATEGORY.LC_CLASSTYPE: return((uint)this.ClassType()); case LIB_CATEGORY.LC_CLASSACCESS: return((uint)this.ClassAccess()); case LIB_CATEGORY.LC_ACTIVEPROJECT: return((uint)_LIBCAT_ACTIVEPROJECT.LCAP_SHOWALWAYS); case LIB_CATEGORY.LC_LISTTYPE: break; case LIB_CATEGORY.LC_VISIBILITY: return((uint)_LIBCAT_VISIBILITY.LCV_VISIBLE); case LIB_CATEGORY.LC_MODIFIER: return((uint)ModifierType()); case LIB_CATEGORY.LC_NODETYPE: break; default: break; } return(base.CategoryField(category)); }
protected virtual uint CategoryField(LIB_CATEGORY category) { switch (category) { case LIB_CATEGORY.LC_LISTTYPE: LibraryNodeType subTypes = LibraryNodeType.None; foreach (LibraryNode node in _children) { subTypes |= node._type; } return((uint)subTypes); case (LIB_CATEGORY)_LIB_CATEGORY2.LC_HIERARCHYTYPE: return((uint)_LIBCAT_HIERARCHYTYPE.LCHT_UNKNOWN); default: throw new NotImplementedException(); } }
public virtual uint CategoryField(LIB_CATEGORY lIB_CATEGORY) { return(0); }
int IVsLibrary.GetSupportedCategoryFields(LIB_CATEGORY category, out uint pCatField) { pCatField = 0; return VSConstants.E_NOTIMPL; }
int CategoryFieldex(LIB_CATEGORY category, out uint fieldValue) { fieldValue = 0; switch (category) { case LIB_CATEGORY.LC_LISTTYPE: { /*LibraryNodeType subTypes = LibraryNodeType.None; * foreach (SQObjectLibraryNode node in Children) * { * subTypes |= node._type; * }*/ fieldValue = (uint)_LIB_LISTTYPE.LLT_MEMBERS; } break; case (LIB_CATEGORY)_LIB_CATEGORY2.LC_HIERARCHYTYPE: fieldValue = (uint)_LIBCAT_HIERARCHYTYPE.LCHT_UNKNOWN; break; case (LIB_CATEGORY)_LIB_CATEGORY2.LC_MEMBERINHERITANCE: if (this._type == LibraryNodeType.Members) { fieldValue = (uint)_LIBCAT_MEMBERINHERITANCE.LCMI_IMMEDIATE; } break; case LIB_CATEGORY.LC_MEMBERACCESS: /*if (Name.StartsWith("_")) * { * return (uint)_LIBCAT_MEMBERACCESS.LCMA_PRIVATE; * } * else*/ { fieldValue = (uint)_LIBCAT_MEMBERACCESS.LCMA_PUBLIC; } break; case LIB_CATEGORY.LC_MEMBERTYPE: if (_type == LibraryNodeType.Members) { fieldValue = (uint)_LIBCAT_MEMBERTYPE.LCMT_METHOD; } else { fieldValue = (uint)_LIBCAT_MEMBERTYPE.LCMT_FIELD; } break; case LIB_CATEGORY.LC_VISIBILITY: fieldValue = (uint)_LIBCAT_VISIBILITY.LCV_VISIBLE; break; case LIB_CATEGORY.LC_NODETYPE: fieldValue = (uint)_LIBCAT_NODETYPE.LCNT_SYMBOL; break; case LIB_CATEGORY.LC_CLASSTYPE: //we should eleborate on this fieldValue = (uint)_LIBCAT_CLASSTYPE.LCCT_CLASS; break; default: return(VSConstants.S_FALSE); } return(VSConstants.S_OK); }
protected override uint CategoryField(LIB_CATEGORY category) { switch (category) { case (LIB_CATEGORY)_LIB_CATEGORY2.LC_MEMBERINHERITANCE: if (this.NodeType == LibraryNodeType.Members) { return (uint)_LIBCAT_MEMBERINHERITANCE.LCMI_IMMEDIATE; } break; } return base.CategoryField(category); }
public override uint CategoryField(LIB_CATEGORY lIB_CATEGORY) { return((uint)(_LIB_LISTTYPE.LLT_MEMBERS | _LIB_LISTTYPE.LLT_PACKAGE)); }
protected override uint CategoryField(LIB_CATEGORY category) { return((uint)LibraryNodeType.None); }
protected virtual uint CategoryField(LIB_CATEGORY category) { switch (category) { case LIB_CATEGORY.LC_LISTTYPE: LibraryNodeType subTypes = LibraryNodeType.None; foreach (LibraryNode node in _children) subTypes |= node._type; return (uint)subTypes; case (LIB_CATEGORY)_LIB_CATEGORY2.LC_HIERARCHYTYPE: return (uint)_LIBCAT_HIERARCHYTYPE.LCHT_UNKNOWN; default: throw new NotImplementedException(); } }
int IVsLibrary.GetSupportedCategoryFields(LIB_CATEGORY category, out uint pCatField) { pCatField = 0; return(VSConstants.E_NOTIMPL); }
public virtual uint CategoryField(LIB_CATEGORY lIB_CATEGORY) { return 0; }
protected virtual uint CategoryField(LIB_CATEGORY category) { uint fieldValue = 0; switch (category) { case LIB_CATEGORY.LC_LISTTYPE: { LibraryNodeType subTypes = LibraryNodeType.None; foreach (LibraryNode node in children) { subTypes |= node.type; } fieldValue = (uint)subTypes; } break; case (LIB_CATEGORY)_LIB_CATEGORY2.LC_HIERARCHYTYPE: fieldValue = (uint)_LIBCAT_HIERARCHYTYPE.LCHT_UNKNOWN; break; case (LIB_CATEGORY)_LIB_CATEGORY2.LC_MEMBERINHERITANCE: if (this.NodeType == LibraryNodeType.Members) { return((uint)_LIBCAT_MEMBERINHERITANCE.LCMI_IMMEDIATE); } break; case LIB_CATEGORY.LC_MEMBERACCESS: if (name.StartsWith("_")) { return((uint)_LIBCAT_MEMBERACCESS.LCMA_PRIVATE); } else { return((uint)_LIBCAT_MEMBERACCESS.LCMA_PUBLIC); } case LIB_CATEGORY.LC_MEMBERTYPE: if (type == LibraryNodeType.Members) { return((uint)_LIBCAT_MEMBERTYPE.LCMT_METHOD); } else { return((uint)_LIBCAT_MEMBERTYPE.LCMT_FIELD); } case LIB_CATEGORY.LC_VISIBILITY: return((uint)_LIBCAT_VISIBILITY.LCV_VISIBLE); case LIB_CATEGORY.LC_NODETYPE: return((uint)_LIBCAT_NODETYPE.LCNT_SYMBOL); case LIB_CATEGORY.LC_CLASSTYPE: //we should eleborate on this return((uint)_LIBCAT_CLASSTYPE.LCCT_CLASS); default: throw new NotImplementedException(); } return(fieldValue); }
protected virtual uint CategoryField(LIB_CATEGORY category) { uint fieldValue = 0; switch (category) { case LIB_CATEGORY.LC_LISTTYPE: { LibraryNodeType subTypes = LibraryNodeType.None; foreach (LibraryNode node in children) { subTypes |= node.type; } fieldValue = (uint)subTypes; } break; case (LIB_CATEGORY)_LIB_CATEGORY2.LC_HIERARCHYTYPE: fieldValue = (uint)_LIBCAT_HIERARCHYTYPE.LCHT_UNKNOWN; break; default: throw new NotImplementedException(); } return fieldValue; }
protected override uint CategoryField(LIB_CATEGORY category) { return (uint)LibraryNodeType.None; }