using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
namespace ComputeSharp.SourceGeneration.Models;
///
/// A model representing a value and an associated set of diagnostic errors.
///
/// The type of the wrapped value.
/// The wrapped value for the current result.
/// The associated diagnostic errors, if any.
internal sealed record Result(TValue Value, ImmutableArray Errors);