14 instantiations of SumType
Microsoft.CodeAnalysis.LanguageServer.Protocol (14)
Handler\Hover\HoverHandler.cs (1)
124
Contents = new
SumType
<string, MarkedString, SumType<string, MarkedString>[], MarkupContent>(string.Empty),
Protocol\SumType.cs (13)
573
public static implicit operator SumType<T1, T2, T3, T4>(T1 val) => new
SumType
<T1, T2, T3, T4>(val);
579
public static implicit operator SumType<T1, T2, T3, T4>?(T1? val) => val is null ? null : new
SumType
<T1, T2, T3, T4>(val);
585
public static implicit operator SumType<T1, T2, T3, T4>(T2 val) => new
SumType
<T1, T2, T3, T4>(val);
591
public static implicit operator SumType<T1, T2, T3, T4>?(T2? val) => val is null ? null : new
SumType
<T1, T2, T3, T4>(val);
597
public static implicit operator SumType<T1, T2, T3, T4>(T3 val) => new
SumType
<T1, T2, T3, T4>(val);
603
public static implicit operator SumType<T1, T2, T3, T4>?(T3? val) => val is null ? null : new
SumType
<T1, T2, T3, T4>(val);
609
public static implicit operator SumType<T1, T2, T3, T4>(T4 val) => new
SumType
<T1, T2, T3, T4>(val);
615
public static implicit operator SumType<T1, T2, T3, T4>?(T4? val) => val is null ? null : new
SumType
<T1, T2, T3, T4>(val);
623
(v) => new
SumType
<T1, T2, T3, T4>(v),
624
(v) => new
SumType
<T1, T2, T3, T4>(v));
632
(v) => new
SumType
<T1, T2, T3, T4>(v),
633
(v) => new
SumType
<T1, T2, T3, T4>(v),
634
(v) => new
SumType
<T1, T2, T3, T4>(v));
56 references to SumType
Microsoft.CodeAnalysis.LanguageServer.Protocol (56)
Handler\CodeActions\CodeActionResolveHelper.cs (1)
46
using var _1 = ArrayBuilder<
SumType
<TextDocumentEdit, CreateFile, RenameFile, DeleteFile>>.GetInstance(out var textDocumentEdits);
Protocol\Hover.cs (1)
23
public
SumType
<string, MarkedString, SumType<string, MarkedString>[], MarkupContent> Contents { get; set; }
Protocol\Internal\VSInternalHover.cs (2)
33
public new
SumType
<string, MarkedString, SumType<string, MarkedString>[], MarkupContent>? Contents
35
get => contentsIsNull ? (
SumType
<string, MarkedString, SumType<string, MarkedString>[], MarkupContent>?)null : base.Contents;
Protocol\SumType.cs (51)
496
internal struct SumType<T1, T2, T3, T4> : ISumType, IEquatable<
SumType
<T1, T2, T3, T4>>
511
/// Initializes a new instance of the <see cref="
SumType
{T1, T2, T3, T4}"/> struct containing a <typeparamref name="T1"/>.
513
/// <param name="val">The value to store in the <see cref="
SumType
{T1, T2, T3, T4}"/>.</param>
520
/// Initializes a new instance of the <see cref="
SumType
{T1, T2, T3, T4}"/> struct containing a <typeparamref name="T2"/>.
522
/// <param name="val">The value to store in the <see cref="
SumType
{T1, T2, T3, T4}"/>.</param>
529
/// Initializes a new instance of the <see cref="
SumType
{T1, T2, T3, T4}"/> struct containing a <typeparamref name="T3"/>.
531
/// <param name="val">The value to store in the <see cref="
SumType
{T1, T2, T3, T4}"/>.</param>
538
/// Initializes a new instance of the <see cref="
SumType
{T1, T2, T3, T4}"/> struct containing a <typeparamref name="T4"/>.
540
/// <param name="val">The value to store in the <see cref="
SumType
{T1, T2, T3, T4}"/>.</param>
570
/// Implicitly wraps a value of type <typeparamref name="T1"/> with a <see cref="
SumType
{T1, T2, T3, T4}"/>.
573
public static implicit operator
SumType
<T1, T2, T3, T4>(T1 val) => new SumType<T1, T2, T3, T4>(val);
576
/// Implicitly wraps a value of type <typeparamref name="T1?"/> with a <see cref="
SumType
{T1, T2, T3, T4}"/>.
579
public static implicit operator
SumType
<T1, T2, T3, T4>?(T1? val) => val is null ? null : new SumType<T1, T2, T3, T4>(val);
582
/// Implicitly wraps a value of type <typeparamref name="T2"/> with a <see cref="
SumType
{T1, T2, T3, T4}"/>.
585
public static implicit operator
SumType
<T1, T2, T3, T4>(T2 val) => new SumType<T1, T2, T3, T4>(val);
588
/// Implicitly wraps a value of type <typeparamref name="T2?"/> with a <see cref="
SumType
{T1, T2, T3, T4}"/>.
591
public static implicit operator
SumType
<T1, T2, T3, T4>?(T2? val) => val is null ? null : new SumType<T1, T2, T3, T4>(val);
594
/// Implicitly wraps a value of type <typeparamref name="T3"/> with a <see cref="
SumType
{T1, T2, T3, T4}"/>.
597
public static implicit operator
SumType
<T1, T2, T3, T4>(T3 val) => new SumType<T1, T2, T3, T4>(val);
600
/// Implicitly wraps a value of type <typeparamref name="T3?"/> with a <see cref="
SumType
{T1, T2, T3, T4}"/>.
603
public static implicit operator
SumType
<T1, T2, T3, T4>?(T3? val) => val is null ? null : new SumType<T1, T2, T3, T4>(val);
606
/// Implicitly wraps a value of type <typeparamref name="T4"/> with a <see cref="
SumType
{T1, T2, T3, T4}"/>.
609
public static implicit operator
SumType
<T1, T2, T3, T4>(T4 val) => new SumType<T1, T2, T3, T4>(val);
612
/// Implicitly wraps a value of type <typeparamref name="T4?"/> with a <see cref="
SumType
{T1, T2, T3, T4}"/>.
615
public static implicit operator
SumType
<T1, T2, T3, T4>?(T4? val) => val is null ? null : new SumType<T1, T2, T3, T4>(val);
618
/// Implicitly wraps an instance of <see cref="SumType{A, B}"/> with a <see cref="
SumType
{T1, T2, T3, T4}"/>.
621
public static implicit operator
SumType
<T1, T2, T3, T4>(SumType<T1, T2> sum)
627
/// Implicitly wraps an instance of <see cref="SumType{T1, T2, T3}"/> with a <see cref="
SumType
{T1, T2, T3, T4}"/>.
630
public static implicit operator
SumType
<T1, T2, T3, T4>(SumType<T1, T2, T3> sum)
637
/// Attempts to cast an instance of <see cref="
SumType
{T1, T2, T3, T4}"/> into a <see cref="SumType{T1, T2}"/>.
640
public static explicit operator SumType<T1, T2>(
SumType
<T1, T2, T3, T4> sum)
656
/// Attempts to cast an instance of <see cref="
SumType
{T1, T2, T3, T4}"/> into a <see cref="SumType{T1, T2, T3}"/>.
659
public static explicit operator SumType<T1, T2, T3>(
SumType
<T1, T2, T3, T4> sum)
680
/// Attempts to cast an instance of <see cref="
SumType
{T1, T2, T3, T4}"/> to an instance of <typeparamref name="T1"/>.
682
/// <exception cref="InvalidCastException">Thrown if this instance of <see cref="
SumType
{T1, T2, T3, T4}"/> does not contain an instance of <typeparamref name="T1"/>.</exception>
684
public static explicit operator T1(
SumType
<T1, T2, T3, T4> sum) => sum.Value is T1 tVal ? tVal : throw new InvalidCastException();
687
/// Attempts to cast an instance of <see cref="
SumType
{T1, T2, T3, T4}"/> to an instance of <typeparamref name="T2"/>.
689
/// <exception cref="InvalidCastException">Thrown if this instance of <see cref="
SumType
{T1, T2, T3, T4}"/> does not contain an instance of <typeparamref name="T2"/>.</exception>
691
public static explicit operator T2(
SumType
<T1, T2, T3, T4> sum) => sum.Value is T2 tVal ? tVal : throw new InvalidCastException();
694
/// Attempts to cast an instance of <see cref="
SumType
{T1, T2, T3, T4}"/> to an instance of <typeparamref name="T3"/>.
696
/// <exception cref="InvalidCastException">Thrown if this instance of <see cref="
SumType
{T1, T2, T3, T4}"/> does not contain an instance of <typeparamref name="T3"/>.</exception>
698
public static explicit operator T3(
SumType
<T1, T2, T3, T4> sum) => sum.Value is T3 tVal ? tVal : throw new InvalidCastException();
701
/// Attempts to cast an instance of <see cref="
SumType
{T1, T2, T3, T4}"/> to an instance of <typeparamref name="T4"/>.
703
/// <exception cref="InvalidCastException">Thrown if this instance of <see cref="
SumType
{T1, T2, T3, T4}"/> does not contain an instance of <typeparamref name="T4"/>.</exception>
705
public static explicit operator T4(
SumType
<T1, T2, T3, T4> sum) => sum.Value is T4 tVal ? tVal : throw new InvalidCastException();
707
public static bool operator ==(
SumType
<T1, T2, T3, T4> left,
SumType
<T1, T2, T3, T4> right)
712
public static bool operator !=(
SumType
<T1, T2, T3, T4> left,
SumType
<T1, T2, T3, T4> right)
853
return obj is
SumType
<T1, T2, T3, T4> type && this.Equals(type);
857
public bool Equals(
SumType
<T1, T2, T3, T4> other)
Protocol\WorkspaceEdit.cs (1)
42
public SumType<TextDocumentEdit[],
SumType
<TextDocumentEdit, CreateFile, RenameFile, DeleteFile>[]>? DocumentChanges { get; set; }