@@ -357,7 +357,7 @@ public static implicit operator DateTimeOffset(Timestamp t) =>
357357 DateTimeOffset . UnixEpoch . AddTicks ( t . MicrosecondsSinceUnixEpoch * Util . TicksPerMicrosecond ) ;
358358
359359 public static implicit operator Timestamp ( DateTimeOffset offset ) =>
360- new Timestamp ( offset . Subtract ( DateTimeOffset . UnixEpoch ) . Ticks / Util . TicksPerMicrosecond ) ;
360+ new ( offset . Subtract ( DateTimeOffset . UnixEpoch ) . Ticks / Util . TicksPerMicrosecond ) ;
361361
362362 // For backwards-compatibility.
363363 public readonly DateTimeOffset ToStd ( ) => this ;
@@ -373,7 +373,7 @@ public override readonly string ToString()
373373 public static readonly Timestamp UNIX_EPOCH = new ( 0 ) ;
374374
375375 public static Timestamp FromTimeDurationSinceUnixEpoch ( TimeDuration timeDuration ) =>
376- new Timestamp ( timeDuration . Microseconds ) ;
376+ new ( timeDuration . Microseconds ) ;
377377
378378 public readonly TimeDuration ToTimeDurationSinceUnixEpoch ( ) => TimeDurationSince ( UNIX_EPOCH ) ;
379379
@@ -383,13 +383,13 @@ public static Timestamp FromTimeSpanSinceUnixEpoch(TimeSpan timeSpan) =>
383383 public readonly TimeSpan ToTimeSpanSinceUnixEpoch ( ) => ( TimeSpan ) ToTimeDurationSinceUnixEpoch ( ) ;
384384
385385 public readonly TimeDuration TimeDurationSince ( Timestamp earlier ) =>
386- new TimeDuration ( checked ( MicrosecondsSinceUnixEpoch - earlier . MicrosecondsSinceUnixEpoch ) ) ;
386+ new ( checked ( MicrosecondsSinceUnixEpoch - earlier . MicrosecondsSinceUnixEpoch ) ) ;
387387
388388 public static Timestamp operator + ( Timestamp point , TimeDuration interval ) =>
389- new Timestamp ( checked ( point . MicrosecondsSinceUnixEpoch + interval . Microseconds ) ) ;
389+ new ( checked ( point . MicrosecondsSinceUnixEpoch + interval . Microseconds ) ) ;
390390
391391 public static Timestamp operator - ( Timestamp point , TimeDuration interval ) =>
392- new Timestamp ( checked ( point . MicrosecondsSinceUnixEpoch - interval . Microseconds ) ) ;
392+ new ( checked ( point . MicrosecondsSinceUnixEpoch - interval . Microseconds ) ) ;
393393
394394 public readonly int CompareTo ( Timestamp that )
395395 {
@@ -492,10 +492,10 @@ public static implicit operator TimeDuration(TimeSpan timeSpan) =>
492492 new ( timeSpan . Ticks / Util . TicksPerMicrosecond ) ;
493493
494494 public static TimeDuration operator + ( TimeDuration lhs , TimeDuration rhs ) =>
495- new TimeDuration ( checked ( lhs . Microseconds + rhs . Microseconds ) ) ;
495+ new ( checked ( lhs . Microseconds + rhs . Microseconds ) ) ;
496496
497497 public static TimeDuration operator - ( TimeDuration lhs , TimeDuration rhs ) =>
498- new TimeDuration ( checked ( lhs . Microseconds + rhs . Microseconds ) ) ;
498+ new ( checked ( lhs . Microseconds + rhs . Microseconds ) ) ;
499499
500500 // For backwards-compatibility.
501501 public readonly TimeSpan ToStd ( ) => this ;
@@ -574,7 +574,7 @@ long microsSinceUnixEpoch
574574 // --- auto-generated ---
575575 private ScheduleAt ( ) { }
576576
577- internal enum @enum : byte
577+ internal enum ScheduleAtVariant : byte
578578 {
579579 Interval ,
580580 Time ,
@@ -586,15 +586,15 @@ public sealed record Time(Timestamp Time_) : ScheduleAt;
586586
587587 public readonly partial struct BSATN : IReadWrite < ScheduleAt >
588588 {
589- internal static readonly SpacetimeDB . BSATN . Enum < @enum > __enumTag = new ( ) ;
589+ internal static readonly SpacetimeDB . BSATN . Enum < ScheduleAtVariant > __enumTag = new ( ) ;
590590 internal static readonly TimeDuration . BSATN Interval = new ( ) ;
591591 internal static readonly Timestamp . BSATN Time = new ( ) ;
592592
593593 public ScheduleAt Read ( BinaryReader reader ) =>
594594 __enumTag . Read ( reader ) switch
595595 {
596- @enum . Interval => new Interval ( Interval . Read ( reader ) ) ,
597- @enum . Time => new Time ( Time . Read ( reader ) ) ,
596+ ScheduleAtVariant . Interval => new Interval ( Interval . Read ( reader ) ) ,
597+ ScheduleAtVariant . Time => new Time ( Time . Read ( reader ) ) ,
598598 _ => throw new InvalidOperationException (
599599 "Invalid tag value, this state should be unreachable."
600600 ) ,
@@ -605,12 +605,12 @@ public void Write(BinaryWriter writer, ScheduleAt value)
605605 switch ( value )
606606 {
607607 case Interval ( var inner ) :
608- __enumTag . Write ( writer , @enum . Interval ) ;
608+ __enumTag . Write ( writer , ScheduleAtVariant . Interval ) ;
609609 Interval . Write ( writer , inner ) ;
610610 break ;
611611
612612 case Time ( var inner ) :
613- __enumTag . Write ( writer , @enum . Time ) ;
613+ __enumTag . Write ( writer , ScheduleAtVariant . Time ) ;
614614 Time . Write ( writer , inner ) ;
615615 break ;
616616 }
@@ -682,7 +682,7 @@ public T UnwrapOrElse(Func<E, T> f) =>
682682
683683 private Result ( ) { }
684684
685- internal enum @enum : byte
685+ internal enum ResultVariant : byte
686686 {
687687 Ok ,
688688 Err ,
@@ -702,15 +702,15 @@ private enum Variant : byte
702702 where OkRW : struct , IReadWrite < T >
703703 where ErrRW : struct , IReadWrite < E >
704704 {
705- private static readonly SpacetimeDB . BSATN . Enum < @enum > __enumTag = new ( ) ;
705+ private static readonly SpacetimeDB . BSATN . Enum < ResultVariant > __enumTag = new ( ) ;
706706 private static readonly OkRW okRW = new ( ) ;
707707 private static readonly ErrRW errRW = new ( ) ;
708708
709709 public Result < T , E > Read ( BinaryReader reader ) =>
710710 __enumTag . Read ( reader ) switch
711711 {
712- @enum . Ok => new OkR ( okRW . Read ( reader ) ) ,
713- @enum . Err => new ErrR ( errRW . Read ( reader ) ) ,
712+ ResultVariant . Ok => new OkR ( okRW . Read ( reader ) ) ,
713+ ResultVariant . Err => new ErrR ( errRW . Read ( reader ) ) ,
714714 _ => throw new InvalidOperationException ( ) ,
715715 } ;
716716
@@ -719,12 +719,12 @@ public void Write(BinaryWriter writer, Result<T, E> value)
719719 switch ( value )
720720 {
721721 case OkR ( var v ) :
722- __enumTag . Write ( writer , @enum . Ok ) ;
722+ __enumTag . Write ( writer , ResultVariant . Ok ) ;
723723 okRW . Write ( writer , v ) ;
724724 break ;
725725
726726 case ErrR ( var e ) :
727- __enumTag . Write ( writer , @enum . Err ) ;
727+ __enumTag . Write ( writer , ResultVariant . Err ) ;
728728 errRW . Write ( writer , e ) ;
729729 break ;
730730 }
0 commit comments