File: Peek\PeekableItem.cs
Web Access
Project: src\src\EditorFeatures\Core.Wpf\Microsoft.CodeAnalysis.EditorFeatures.Wpf_dp51ti4n_wpftmp.csproj (Microsoft.CodeAnalysis.EditorFeatures.Wpf)
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
 
#nullable disable
 
using System.Collections.Generic;
using Microsoft.VisualStudio.Language.Intellisense;
 
namespace Microsoft.CodeAnalysis.Editor.Implementation.Peek
{
    internal abstract class PeekableItem : IPeekableItem
    {
        protected readonly IPeekResultFactory PeekResultFactory;
 
        protected PeekableItem(IPeekResultFactory peekResultFactory)
            => this.PeekResultFactory = peekResultFactory;
 
        public string DisplayName
                // This is unused, and was supposed to have been removed from IPeekableItem.
                => null;
 
        public abstract IEnumerable<IPeekRelationship> Relationships { get; }
 
        public abstract IPeekResultSource GetOrCreateResultSource(string relationshipName);
    }
}