5 references to ValueAndDiagnostic
Microsoft.Interop.SourceGeneration (5)
DiagnosticOr.cs (5)
70
Val v => new
ValueAndDiagnostic
(v.Value, ImmutableArray.Create(diagnostic)),
71
ValueAndDiagnostic vad => new
ValueAndDiagnostic
(vad.Value, vad.Diagnostics.Add(diagnostic)),
80
Diag d => new
ValueAndDiagnostic
(value, d.Diagnostics),
82
ValueAndDiagnostic vad => new
ValueAndDiagnostic
(value, vad.Diagnostics),
110
return new
ValueAndDiagnostic
(value, ImmutableArray.Create(diagnostics));