/// <summary>
        /// Return a sorted list of the file
        /// </summary>
        /// <returns></returns>
        internal MemberList GetSortedMembersList()
        {
            MemberList items = new MemberList();

            items.Add(Members);
            items.Sort();
            return(items);
        }
Exemple #2
0
        internal MemberList GetSortedMembersList()
        {
            MemberList items = new MemberList();

            foreach (MemberModel item in Members)
            {
                if ((item.Flags & FlagType.Constructor) == 0)
                {
                    items.Add(item);
                }
            }
            items.Sort();
            return(items);
        }
Exemple #3
0
        /// <summary>
        /// Returns all members inherited from super classes of this class.
        /// Does not take static inheritance into account.
        /// </summary>
        internal MemberList GetSortedInheritedMembersList()
        {
            MemberList items    = new MemberList();
            ClassModel curClass = this;

            do
            {
                curClass.ResolveExtends();
                curClass = curClass.Extends;
                MemberList newMembers = curClass.GetSortedMembersList();
                items.Merge(newMembers);
            } while (curClass.Extends != VoidClass);
            items.RemoveAllWithFlag(FlagType.Static);
            items.Sort();
            return(items);
        }
Exemple #4
0
 public void Sort()
 {
     Members.Sort();
 }