| File: DocumentationComments\OmniSharpDocumentationCommentSnippet.cs | Web Access |
| Project: src\roslyn\src\Features\ExternalAccess\OmniSharp\Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.csproj (Microsoft.CodeAnalysis.ExternalAccess.OmniSharp) |
// 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 Microsoft.CodeAnalysis.Text; namespace Microsoft.CodeAnalysis.ExternalAccess.OmniSharp.DocumentationComments; internal sealed class OmniSharpDocumentationCommentSnippet { /// <summary> /// The span in the original text that should be replaced with the documentation comment. /// </summary> public TextSpan SpanToReplace { get; } /// <summary> /// The documentation comment text to replace the span with /// </summary> public string SnippetText { get; } /// <summary> /// The offset within <see cref="SnippetText"/> where the caret should be positioned after replacement /// </summary> public int CaretOffset { get; } internal OmniSharpDocumentationCommentSnippet(TextSpan spanToReplace, string snippetText, int caretOffset) { SpanToReplace = spanToReplace; SnippetText = snippetText; CaretOffset = caretOffset; } }