Example #1
0
        //-----------------------------------------------------------------------------------------------------------------------------------------------------

        internal void AddMember(MemberBase member)
        {
            m_Members.Add(member);

            if (member.MemberDeclaration != null)
            {
                m_MembersByDeclarations.Add(member.MemberDeclaration, member);
                m_MembersByName[member.Name] = member;
            }
        }
Example #2
0
        //-----------------------------------------------------------------------------------------------------------------------------------------------------

        internal void MoveMember(MemberBase member, ClassType destination)
        {
            m_Members.Remove(member);

            MemberBase memberByName;

            if (m_MembersByName.TryGetValue(member.Name, out memberByName) && memberByName == member)
            {
                m_MembersByName.Remove(member.Name);
            }

            destination.AddMember(member);
        }