// // Ariadne.Generator's copy of the scripts in this file: the code that actually runs. Edits here are overwritten. // In the copy beside the script, #line paths are relative to it; the compiled code uses full paths. #pragma warning disable using System; namespace Ariadne.Vellum.UnitTests { partial class GatedPlantScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public string Measure__gate; public int Measure__amount; public int Measure__waited; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Measure.amount"); lister.Local("Measure.gate"); lister.Local("Measure.waited"); } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } public GatedPlantScript() { } protected GatedPlantScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { { if (reader.TryField("Total", out int loaded)) { this.Total = loaded; } else if (!reader.HasField("Total")) { throw new global::System.IO.InvalidDataException("GatedPlantScript's save has no field 'Total', which has no initializer to fall back on. Give it one."); } } } protected GatedPlantScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Field("Total"); lister.Local("Measure.amount"); lister.Local("Measure.gate"); lister.Local("Measure.waited"); } #pragma warning restore protected override void __SaveFields(global::Ariadne.IArcWriter writer) { base.__SaveFields(writer); #line 10 "ForeignSpillScripts.cs" writer.Field("Total", this.Total); #line default } public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Measure.amount": #line 12 "ForeignSpillScripts.cs" writer.Local("Measure.amount", this.Measure__amount); #line hidden return; case "Measure.gate": #line 12 "ForeignSpillScripts.cs" writer.Local("Measure.gate", this.Measure__gate); #line hidden return; case "Measure.waited": #line 14 "ForeignSpillScripts.cs" writer.Local("Measure.waited", this.Measure__waited); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { base.LoadLocals(reader); { if (reader.TryLocal("Measure.amount", out int loaded)) { this.Measure__amount = loaded; } } { if (reader.TryLocal("Measure.gate", out string loaded)) { this.Measure__gate = loaded; } } { if (reader.TryLocal("Measure.waited", out int loaded)) { this.Measure__waited = loaded; } } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Gates gates) { #line hidden switch (__frame.ResumeKey) { } #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public bool Measure__Passage(__Frame __frame, global::Ariadne.TickTime __time, Gates gates, string gate__argument, int amount__argument, out int __result) { #line hidden __result = default(int); ref string gate = ref __frame.Measure__gate; if (__frame.ResumeKey == null) { gate = gate__argument; } ref int amount = ref __frame.Measure__amount; if (__frame.ResumeKey == null) { amount = amount__argument; } ref int waited = ref __frame.Measure__waited; switch (__frame.ResumeKey) { case "wait": goto wait; } #line 14 "ForeignSpillScripts.cs" waited = 0; #line hidden wait: #line 17 "ForeignSpillScripts.cs" while (!gates.Open.Contains(gate)) #line hidden { #line 19 "ForeignSpillScripts.cs" waited++; #line 20 "ForeignSpillScripts.cs" __frame.Mark("wait"); return false; #line hidden } #line 23 "ForeignSpillScripts.cs" Total += amount + waited; #line 24 "ForeignSpillScripts.cs" { __result = Total; __frame.Exit(); return true; } #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public void Measure__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "wait": __frame.SaveLocal("Measure.gate", writer); __frame.SaveLocal("Measure.amount", writer); __frame.SaveLocal("Measure.waited", writer); break; } } } } namespace Ariadne.Vellum.UnitTests { partial class GatedSumOperatorScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public int Run__before; public int Run____spill1; public int Run____spill2; public int Run____spill3; public global::Ariadne.Vellum.UnitTests.GatedPlantScript Run____call_sum_receiver; public global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame Run____call_sum_frame; public global::Ariadne.Vellum.UnitTests.GatedPlantScript Run____call_sum__n1_receiver; public global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame Run____call_sum__n1_frame; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__spill2"); lister.Local("Run.before"); { global::Ariadne.IArcPartLister scope = lister.Scope("Run.sum/", typeof(global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame)); if (scope != null) { scope.Local("receiver"); global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame.ListParts(scope); } } { global::Ariadne.IArcPartLister scope = lister.Scope("Run.sum#1/", typeof(global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame)); if (scope != null) { scope.Local("receiver"); global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame.ListParts(scope); } } } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public GatedSumOperatorScript() { } protected GatedSumOperatorScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { { if (reader.TryField("First", out global::Ariadne.Vellum.UnitTests.GatedPlantScript loaded)) { this.First = loaded; } else if (!reader.HasField("First")) { throw new global::System.IO.InvalidDataException("GatedSumOperatorScript's save has no field 'First', which has no initializer to fall back on. Give it one."); } } { if (reader.TryField("Second", out global::Ariadne.Vellum.UnitTests.GatedPlantScript loaded)) { this.Second = loaded; } else if (!reader.HasField("Second")) { throw new global::System.IO.InvalidDataException("GatedSumOperatorScript's save has no field 'Second', which has no initializer to fall back on. Give it one."); } } { if (reader.TryField("Result", out string loaded)) { this.Result = loaded; } else if (!reader.HasField("Result")) { throw new global::System.IO.InvalidDataException("GatedSumOperatorScript's save has no field 'Result', which has no initializer to fall back on. Give it one."); } } } protected GatedSumOperatorScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Field("First"); lister.Field("Second"); lister.Field("Result"); lister.Local("Run.__spill2"); lister.Local("Run.before"); { global::Ariadne.IArcPartLister scope = lister.Scope("Run.sum/", typeof(global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame)); if (scope != null) { scope.Local("receiver"); global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame.ListParts(scope); } } { global::Ariadne.IArcPartLister scope = lister.Scope("Run.sum#1/", typeof(global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame)); if (scope != null) { scope.Local("receiver"); global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame.ListParts(scope); } } } #pragma warning restore protected override void __SaveFields(global::Ariadne.IArcWriter writer) { base.__SaveFields(writer); #line 37 "ForeignSpillScripts.cs" writer.Field("First", this.First); #line 39 "ForeignSpillScripts.cs" writer.Field("Second", this.Second); #line 41 "ForeignSpillScripts.cs" writer.Field("Result", this.Result); #line default } public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.__spill2": #line 48 "ForeignSpillScripts.cs" writer.Local("Run.__spill2", this.Run____spill2); #line hidden return; case "Run.before": #line 45 "ForeignSpillScripts.cs" writer.Local("Run.before", this.Run__before); #line hidden return; case "Run.sum#1/receiver": #line 48 "ForeignSpillScripts.cs" writer.Local("receiver", this.Run____call_sum__n1_receiver); #line hidden return; case "Run.sum/receiver": #line 48 "ForeignSpillScripts.cs" writer.Local("receiver", this.Run____call_sum_receiver); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); base.LoadLocals(reader); { if (reader.TryLocal("Run.__spill2", out int loaded)) { this.Run____spill2 = loaded; } } { if (reader.TryLocal("Run.before", out int loaded)) { this.Run__before = loaded; } } { if (reader.TryScope("Run.sum/", out global::Ariadne.IArcReader scope)) { { if (scope.TryLocal("receiver", out global::Ariadne.Vellum.UnitTests.GatedPlantScript loaded)) { this.Run____call_sum_receiver = loaded; } } if (this.Run____call_sum_receiver != null) { this.Run____call_sum_frame = (global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame)this.Run____call_sum_receiver.NewFrame(); this.Run____call_sum_frame.LoadLocals(scope); } } } { if (reader.TryScope("Run.sum#1/", out global::Ariadne.IArcReader scope)) { { if (scope.TryLocal("receiver", out global::Ariadne.Vellum.UnitTests.GatedPlantScript loaded)) { this.Run____call_sum__n1_receiver = loaded; } } if (this.Run____call_sum__n1_receiver != null) { this.Run____call_sum__n1_frame = (global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame)this.Run____call_sum__n1_receiver.NewFrame(); this.Run____call_sum__n1_frame.LoadLocals(scope); } } } } public override void AttachWaits(global::Ariadne.WakeSlot slot) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); base.AttachWaits(slot); if (this.Run____call_sum_frame != null) { this.Run____call_sum_frame.AttachWaits(slot); } if (this.Run____call_sum__n1_frame != null) { this.Run____call_sum__n1_frame.AttachWaits(slot); } } public override void EndWaits() { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); base.EndWaits(); if (this.Run____call_sum_frame != null) { this.Run____call_sum_frame.EndWaits(); } if (this.Run____call_sum__n1_frame != null) { this.Run____call_sum__n1_frame.EndWaits(); } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Gates gates) { #line hidden ref int before = ref __frame.Run__before; switch (__frame.ResumeKey) { case "sum": goto sum; case "sum#1": goto sum__1; } #line 45 "ForeignSpillScripts.cs" before = 100; #line hidden sum: #line 48 "ForeignSpillScripts.cs" { int __value; using (__frame.Enter("sum")) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); if (__frame.ResumeKey == null) { __frame.Run____call_sum_receiver = (First); __frame.Run____call_sum_frame = null; } if (__frame.Run____call_sum_frame == null) { __frame.Run____call_sum_frame = (global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame)__frame.Run____call_sum_receiver.NewFrame(); } if (!__frame.Run____call_sum_receiver.Measure__Passage(__frame.Lend(__frame.Run____call_sum_frame), __time, gates, __frame.ResumeKey == null ? ("a") : default(string), __frame.ResumeKey == null ? (5) : default(int), __result: out __value)) { return false; } } __frame.Run____spill1 = __value; } #line 48 "ForeignSpillScripts.cs" __frame.Run____spill2 = before + __frame.Run____spill1; #line hidden sum__1: #line 48 "ForeignSpillScripts.cs" { int __value; using (__frame.Enter("sum#1")) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); if (__frame.ResumeKey == null) { __frame.Run____call_sum__n1_receiver = (Second); __frame.Run____call_sum__n1_frame = null; } if (__frame.Run____call_sum__n1_frame == null) { __frame.Run____call_sum__n1_frame = (global::Ariadne.Vellum.UnitTests.GatedPlantScript.__Frame)__frame.Run____call_sum__n1_receiver.NewFrame(); } if (!__frame.Run____call_sum__n1_receiver.Measure__Passage(__frame.Lend(__frame.Run____call_sum__n1_frame), __time, gates, __frame.ResumeKey == null ? ("b") : default(string), __frame.ResumeKey == null ? (7) : default(int), __result: out __value)) { return false; } } __frame.Run____spill3 = __value; } #line 48 "ForeignSpillScripts.cs" Result = "sum " + (__frame.Run____spill2 + __frame.Run____spill3); #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "sum": __frame.SaveLocal("Run.before", writer); { global::Ariadne.IArcWriter scope = writer.Scope("Run.sum/"); __frame.SaveLocal("Run.sum/receiver", scope); if (__frame.Run____call_sum_receiver != null) { __frame.Run____call_sum_receiver.Measure__LocalsToSave(__frame.Lend(__frame.Run____call_sum_frame), depth + 1, scope); } } break; case "sum#1": __frame.SaveLocal("Run.__spill2", writer); { global::Ariadne.IArcWriter scope = writer.Scope("Run.sum#1/"); __frame.SaveLocal("Run.sum#1/receiver", scope); if (__frame.Run____call_sum__n1_receiver != null) { __frame.Run____call_sum__n1_receiver.Measure__LocalsToSave(__frame.Lend(__frame.Run____call_sum__n1_frame), depth + 1, scope); } } break; } } } } namespace Ariadne.Vellum.UnitTests { partial class DelayPlantScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public static void ListParts(global::Ariadne.IArcPartLister lister) { } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } public DelayPlantScript() { } protected DelayPlantScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { } protected DelayPlantScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Gates gates) { #line hidden switch (__frame.ResumeKey) { } #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public bool Ask__Passage(__Frame __frame, global::Ariadne.TickTime __time, Gates gates, out global::System.TimeSpan __result) { #line hidden __result = default(global::System.TimeSpan); switch (__frame.ResumeKey) { case "ask": goto ask; } #line hidden ask: #line 60 "ForeignSpillScripts.cs" while (!gates.Open.Contains("answer")) #line hidden { #line 62 "ForeignSpillScripts.cs" __frame.Mark("ask"); return false; #line hidden } #line 65 "ForeignSpillScripts.cs" { __result = TimeSpan.FromSeconds(2); __frame.Exit(); return true; } #line hidden __frame.Exit(); return true; #line default } } } namespace Ariadne.Vellum.UnitTests { partial class AskWaitOperatorScript { [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] public partial class __Frame : global::Ariadne.Frame { public global::System.TimeSpan Run____spill1; public global::Amphora.Duration Run____wait1; public global::Ariadne.Vellum.UnitTests.DelayPlantScript Run____call_first_receiver; public global::Ariadne.Vellum.UnitTests.DelayPlantScript.__Frame Run____call_first_frame; public static void ListParts(global::Ariadne.IArcPartLister lister) { lister.Local("Run.__wait1"); { global::Ariadne.IArcPartLister scope = lister.Scope("Run.first/", typeof(global::Ariadne.Vellum.UnitTests.DelayPlantScript.__Frame)); if (scope != null) { scope.Local("receiver"); global::Ariadne.Vellum.UnitTests.DelayPlantScript.__Frame.ListParts(scope); } } } } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected override global::Ariadne.Frame __CreateFrame() { return new __Frame(); } [global::System.CodeDom.Compiler.GeneratedCode("Ariadne.Generator", "1.0")] protected override bool __Resume(global::Ariadne.UnitTests.ArcTests.Gates context, global::Ariadne.TickTime __time) { return Run__Passage((__Frame)__CurrentFrame, __time, context); } protected override void __SaveLocals(global::Ariadne.IArcWriter writer) { Run__LocalsToSave((__Frame)__CurrentFrame, 0, writer); } public AskWaitOperatorScript() { } protected AskWaitOperatorScript(global::Ariadne.IArcReader reader, global::Ariadne.AutoLoadEveryField load) : base(reader) { { if (reader.TryField("Delay", out global::Ariadne.Vellum.UnitTests.DelayPlantScript loaded)) { this.Delay = loaded; } else if (!reader.HasField("Delay")) { throw new global::System.IO.InvalidDataException("AskWaitOperatorScript's save has no field 'Delay', which has no initializer to fall back on. Give it one."); } } { if (reader.TryField("Result", out string loaded)) { this.Result = loaded; } else if (!reader.HasField("Result")) { throw new global::System.IO.InvalidDataException("AskWaitOperatorScript's save has no field 'Result', which has no initializer to fall back on. Give it one."); } } } protected AskWaitOperatorScript(global::Ariadne.IArcReader reader) : this(reader, default(global::Ariadne.AutoLoadEveryField)) { } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] private static void __ListParts(global::Ariadne.IArcPartLister lister) { lister.Field("Delay"); lister.Field("Result"); lister.Local("Run.__wait1"); { global::Ariadne.IArcPartLister scope = lister.Scope("Run.first/", typeof(global::Ariadne.Vellum.UnitTests.DelayPlantScript.__Frame)); if (scope != null) { scope.Local("receiver"); global::Ariadne.Vellum.UnitTests.DelayPlantScript.__Frame.ListParts(scope); } } } #pragma warning restore protected override void __SaveFields(global::Ariadne.IArcWriter writer) { base.__SaveFields(writer); #line 78 "ForeignSpillScripts.cs" writer.Field("Delay", this.Delay); #line 80 "ForeignSpillScripts.cs" writer.Field("Result", this.Result); #line default } public partial class __Frame { public override void SaveLocal(string key, global::Ariadne.IArcWriter writer) { switch (key) { case "Run.__wait1": #line 85 "ForeignSpillScripts.cs" writer.Local("Run.__wait1", this.Run____wait1); #line hidden return; case "Run.first/receiver": #line 85 "ForeignSpillScripts.cs" writer.Local("receiver", this.Run____call_first_receiver); #line hidden return; } #line default base.SaveLocal(key, writer); } } #pragma warning disable public partial class __Frame { public override void LoadLocals(global::Ariadne.IArcReader reader) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); base.LoadLocals(reader); { if (reader.TryLocal("Run.__wait1", out global::Amphora.Duration loaded)) { this.Run____wait1 = loaded; } } { if (reader.TryScope("Run.first/", out global::Ariadne.IArcReader scope)) { { if (scope.TryLocal("receiver", out global::Ariadne.Vellum.UnitTests.DelayPlantScript loaded)) { this.Run____call_first_receiver = loaded; } } if (this.Run____call_first_receiver != null) { this.Run____call_first_frame = (global::Ariadne.Vellum.UnitTests.DelayPlantScript.__Frame)this.Run____call_first_receiver.NewFrame(); this.Run____call_first_frame.LoadLocals(scope); } } } } public override void AttachWaits(global::Ariadne.WakeSlot slot) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); base.AttachWaits(slot); if (this.Run____call_first_frame != null) { this.Run____call_first_frame.AttachWaits(slot); } } public override void EndWaits() { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); base.EndWaits(); if (this.Run____call_first_frame != null) { this.Run____call_first_frame.EndWaits(); } } } #pragma warning disable [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected bool Run__Passage(__Frame __frame, global::Ariadne.TickTime __time, Gates gates) { #line hidden switch (__frame.ResumeKey) { case "first": goto first; case "first#1": goto first__1__resume; } #line hidden first: #line 85 "ForeignSpillScripts.cs" { global::System.TimeSpan __value; using (__frame.Enter("first")) { global::System.Runtime.CompilerServices.RuntimeHelpers.EnsureSufficientExecutionStack(); if (__frame.ResumeKey == null) { __frame.Run____call_first_receiver = (Delay); __frame.Run____call_first_frame = null; } if (__frame.Run____call_first_frame == null) { __frame.Run____call_first_frame = (global::Ariadne.Vellum.UnitTests.DelayPlantScript.__Frame)__frame.Run____call_first_receiver.NewFrame(); } if (!__frame.Run____call_first_receiver.Ask__Passage(__frame.Lend(__frame.Run____call_first_frame), __time, gates, __result: out __value)) { return false; } } __frame.Run____spill1 = __value; } #line hidden first__1: #line 85 "ForeignSpillScripts.cs" __frame.Run____wait1 = __time.DeadlineAfter(__frame.Run____spill1); #line hidden first__1__resume: #line 85 "ForeignSpillScripts.cs" if (__time.GameTime < __frame.Run____wait1) { __frame.Sleep(__frame.Run____wait1); __frame.Mark("first#1"); return false; } #line 86 "ForeignSpillScripts.cs" Result = "done"; #line hidden __frame.Exit(); return true; #line default } [global::System.ComponentModel.EditorBrowsable(global::System.ComponentModel.EditorBrowsableState.Never)] protected void Run__LocalsToSave(__Frame __frame, int depth, global::Ariadne.IArcWriter writer) { if (depth >= __frame.Cursor.Count) { return; } switch (__frame.Cursor[depth]) { case "first": { global::Ariadne.IArcWriter scope = writer.Scope("Run.first/"); __frame.SaveLocal("Run.first/receiver", scope); } break; case "first#1": __frame.SaveLocal("Run.__wait1", writer); break; } } } }