Exemple #1
0
 internal static bool Remove(IBookmarkedSymbol symbol)
 {
     return(_Bookmarks.TryRemove(symbol, out var dummy));
 }
Exemple #2
0
        static int GetHashCode(IBookmarkedSymbol symbol)
        {
            const int M = -1521134295;

            return(symbol.Name.GetHashCode() + ((int)symbol.Kind * M));
        }
Exemple #3
0
            //public SyntaxReference Reference => _Symbol.DeclaringSyntaxReferences.FirstOrDefault();

            public bool Equals(IBookmarkedSymbol other)
            {
                return(other != null && other.Kind == Kind && other.Name == Name &&
                       (ContainingType == other.ContainingType || ContainingType != null && other.ContainingType != null && ContainingType.Equals(other.ContainingType)) &&
                       (MemberType == other.MemberType || MemberType != null && other.MemberType != null && MemberType.Equals(other.MemberType)));
            }