| File: QuickInfo\OnTheFlyDocsInfo.cs | Web Access |
| Project: src\roslyn\src\Features\Core\Portable\Microsoft.CodeAnalysis.Features.csproj (Microsoft.CodeAnalysis.Features) |
// 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. using System.Collections.Immutable; namespace Microsoft.CodeAnalysis.QuickInfo; /// <summary> /// Represents the data needed to provide on-the-fly documentation from the symbol. /// </summary> /// <param name="symbolSignature">formatted string representation of a symbol/></param> /// <param name="declarationCode">the symbol's declaration code</param> /// <param name="language">the language of the symbol</param> /// <param name="hasComments">whether the symbol has comments</param> internal sealed class OnTheFlyDocsInfo(string symbolSignature, ImmutableArray<OnTheFlyDocsRelevantFileInfo?> declarationCode, string language, bool isContentExcluded, ImmutableArray<OnTheFlyDocsRelevantFileInfo?> additionalContext, bool hasComments = false) { public string SymbolSignature { get; } = symbolSignature; public ImmutableArray<OnTheFlyDocsRelevantFileInfo?> DeclarationCode { get; } = declarationCode; public string Language { get; } = language; public bool IsContentExcluded { get; } = isContentExcluded; public ImmutableArray<OnTheFlyDocsRelevantFileInfo?> AdditionalContext { get; } = additionalContext; // Added for telemetry collection purposes. public bool HasComments { get; set; } = hasComments; }