Move common models to shared generation project

このコミットが含まれているのは:
Sergio Pedri committed 2022-04-24 21:04:27 +02:00
1 親 4cc849f245
コミット 6e247639ed
17ファイル変更
+15 -264

検索条件に一致するファイルはありません

+12
ファイルの表示
@@ -0,0 +1,12 @@
using System.Collections.Immutable;
using Microsoft.CodeAnalysis;
namespace ComputeSharp.SourceGeneration.Models;
/// <summary>
/// A model representing a value and an associated set of diagnostic errors.
/// </summary>
/// <typeparam name="TValue">The type of the wrapped value.</typeparam>
/// <param name="Value">The wrapped value for the current result.</param>
/// <param name="Errors">The associated diagnostic errors, if any.</param>
internal sealed record Result<TValue>(TValue Value, ImmutableArray<Diagnostic> Errors);