internal static bool Remove(IBookmarkedSymbol symbol) { return(_Bookmarks.TryRemove(symbol, out var dummy)); }
static int GetHashCode(IBookmarkedSymbol symbol) { const int M = -1521134295; return(symbol.Name.GetHashCode() + ((int)symbol.Kind * M)); }
//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))); }