6 references to SumType
Microsoft.CodeAnalysis.LanguageServer.Protocol (6)
Handler\CodeActions\CodeActionResolveHelper.cs (1)
289
var edits = textChanges.Select(tc => new LSP.
SumType
<LSP.TextEdit, LSP.AnnotatedTextEdit>(ProtocolConversions.TextChangeToTextEdit(tc, oldText))).ToArray();
Handler\Diagnostics\Public\PublicWorkspacePullDiagnosticsHandler.cs (2)
40
=>
new
(new WorkspaceDiagnosticReport
56
=>
new
(new WorkspaceDiagnosticReport
Handler\Symbols\WorkspaceSymbolsHandler.cs (1)
58
(SymbolInformation[] t) => new
SumType
<SymbolInformation[], WorkspaceSymbol[]>(t));
Protocol\SumType.cs (2)
65
public static implicit operator SumType<T1, T2>(T1 val) => new
SumType
<T1, T2>(val);
71
public static implicit operator SumType<T1, T2>?(T1? val) => val is null ? null : new
SumType
<T1, T2>(val);