Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
70 changes: 70 additions & 0 deletions src/libs/Weave/Generated/Weave.AnyOf.10.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickValue2(
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -98,6 +112,13 @@ public bool TryPickValue3(
return IsValue3;
}

/// <summary>
///
/// </summary>
public T3 PickValue3() => IsValue3
? Value3!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -128,6 +149,13 @@ public bool TryPickValue4(
return IsValue4;
}

/// <summary>
///
/// </summary>
public T4 PickValue4() => IsValue4
? Value4!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -158,6 +186,13 @@ public bool TryPickValue5(
return IsValue5;
}

/// <summary>
///
/// </summary>
public T5 PickValue5() => IsValue5
? Value5!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -188,6 +223,13 @@ public bool TryPickValue6(
return IsValue6;
}

/// <summary>
///
/// </summary>
public T6 PickValue6() => IsValue6
? Value6!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -218,6 +260,13 @@ public bool TryPickValue7(
return IsValue7;
}

/// <summary>
///
/// </summary>
public T7 PickValue7() => IsValue7
? Value7!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -248,6 +297,13 @@ public bool TryPickValue8(
return IsValue8;
}

/// <summary>
///
/// </summary>
public T8 PickValue8() => IsValue8
? Value8!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -278,6 +334,13 @@ public bool TryPickValue9(
return IsValue9;
}

/// <summary>
///
/// </summary>
public T9 PickValue9() => IsValue9
? Value9!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -307,6 +370,13 @@ public bool TryPickValue10(
value = Value10;
return IsValue10;
}

/// <summary>
///
/// </summary>
public T10 PickValue10() => IsValue10
? Value10!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value10' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
91 changes: 91 additions & 0 deletions src/libs/Weave/Generated/Weave.AnyOf.13.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickValue2(
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -98,6 +112,13 @@ public bool TryPickValue3(
return IsValue3;
}

/// <summary>
///
/// </summary>
public T3 PickValue3() => IsValue3
? Value3!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -128,6 +149,13 @@ public bool TryPickValue4(
return IsValue4;
}

/// <summary>
///
/// </summary>
public T4 PickValue4() => IsValue4
? Value4!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value4' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -158,6 +186,13 @@ public bool TryPickValue5(
return IsValue5;
}

/// <summary>
///
/// </summary>
public T5 PickValue5() => IsValue5
? Value5!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value5' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -188,6 +223,13 @@ public bool TryPickValue6(
return IsValue6;
}

/// <summary>
///
/// </summary>
public T6 PickValue6() => IsValue6
? Value6!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value6' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -218,6 +260,13 @@ public bool TryPickValue7(
return IsValue7;
}

/// <summary>
///
/// </summary>
public T7 PickValue7() => IsValue7
? Value7!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value7' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -248,6 +297,13 @@ public bool TryPickValue8(
return IsValue8;
}

/// <summary>
///
/// </summary>
public T8 PickValue8() => IsValue8
? Value8!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value8' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -278,6 +334,13 @@ public bool TryPickValue9(
return IsValue9;
}

/// <summary>
///
/// </summary>
public T9 PickValue9() => IsValue9
? Value9!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value9' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -308,6 +371,13 @@ public bool TryPickValue10(
return IsValue10;
}

/// <summary>
///
/// </summary>
public T10 PickValue10() => IsValue10
? Value10!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value10' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -338,6 +408,13 @@ public bool TryPickValue11(
return IsValue11;
}

/// <summary>
///
/// </summary>
public T11 PickValue11() => IsValue11
? Value11!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value11' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -368,6 +445,13 @@ public bool TryPickValue12(
return IsValue12;
}

/// <summary>
///
/// </summary>
public T12 PickValue12() => IsValue12
? Value12!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value12' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -397,6 +481,13 @@ public bool TryPickValue13(
value = Value13;
return IsValue13;
}

/// <summary>
///
/// </summary>
public T13 PickValue13() => IsValue13
? Value13!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value13' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
14 changes: 14 additions & 0 deletions src/libs/Weave/Generated/Weave.AnyOf.2.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -67,6 +74,13 @@ public bool TryPickValue2(
value = Value2;
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
21 changes: 21 additions & 0 deletions src/libs/Weave/Generated/Weave.AnyOf.3.g.cs
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,13 @@ public bool TryPickValue1(
return IsValue1;
}

/// <summary>
///
/// </summary>
public T1 PickValue1() => IsValue1
? Value1!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value1' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -68,6 +75,13 @@ public bool TryPickValue2(
return IsValue2;
}

/// <summary>
///
/// </summary>
public T2 PickValue2() => IsValue2
? Value2!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value2' but the value was {ToString()}.");

/// <summary>
///
/// </summary>
Expand Down Expand Up @@ -97,6 +111,13 @@ public bool TryPickValue3(
value = Value3;
return IsValue3;
}

/// <summary>
///
/// </summary>
public T3 PickValue3() => IsValue3
? Value3!
: throw new global::System.InvalidOperationException($"Expected union variant 'Value3' but the value was {ToString()}.");
/// <summary>
///
/// </summary>
Expand Down
Loading