| File: Copilot\GenerateImplementation\ImplementationDetailsWrapper.cs | Web Access |
| Project: src\roslyn\src\Features\ExternalAccess\Core\Microsoft.CodeAnalysis.Features.ExternalAccess.csproj (Microsoft.CodeAnalysis.Features.ExternalAccess) |
// 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. namespace Microsoft.CodeAnalysis.ExternalAccess.Copilot.GenerateImplementation; /// <summary> /// Holds details about a replacement node, providing either a message explaining the absence of a replacement or the /// replacement syntax node itself. One of <see cref="Message"/> or <see cref="ReplacementNode"/> must always be set. /// </summary> internal sealed class ImplementationDetailsWrapper { /// <summary> /// Gets the message explaining why a replacement node is not provided. Either this property or <see cref="ReplacementNode"/> must be set. /// </summary> public string? Message { get; init; } /// <summary> /// Gets the replacement syntax node. Either this property or <see cref="Message"/> must be set. /// </summary> public SyntaxNode? ReplacementNode { get; init; } }