// 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. // This file is ported and adapted from ComputeSharp (Sergio0694/ComputeSharp), // more info in ThirdPartyNotices.txt in the root of the project. using System.Collections.Immutable; using Microsoft.CodeAnalysis; namespace CommunityToolkit.Mvvm.SourceGenerators.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);