File: Features\QuickInfo\XamlQuickInfo.cs
Web Access
Project: src\src\VisualStudio\Xaml\Impl\Microsoft.VisualStudio.LanguageServices.Xaml.csproj (Microsoft.VisualStudio.LanguageServices.Xaml)
// 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.CodeAnalysis;
using Microsoft.CodeAnalysis.Text;
 
namespace Microsoft.VisualStudio.LanguageServices.Xaml.Features.QuickInfo;
 
internal sealed class XamlQuickInfo
{
    public TextSpan Span { get; }
 
    public IEnumerable<TaggedText> Description { get; }
 
    public ISymbol Symbol { get; }
 
    private XamlQuickInfo(
        TextSpan span,
        IEnumerable<TaggedText> description,
        ISymbol symbol)
    {
        Span = span;
        Description = description;
        Symbol = symbol;
    }
 
    public static XamlQuickInfo Create(
        TextSpan span,
        IEnumerable<TaggedText> description,
        ISymbol symbol = null)
    {
        return new XamlQuickInfo(span, description, symbol);
    }
}