Skip to content

Commit 14777b6

Browse files
committed
[ci skip] move AppendValue to Append.cs
1 parent 937daee commit 14777b6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Lib/Public/Hypervisor/InsnImpl/Append.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ namespace Starscript;
77
// ReSharper disable once ClassWithVirtualMembersNeverInherited.Global
88
public partial class StarscriptHypervisor
99
{
10+
private static void AppendValue(StringBuilder sb, Value? value) => sb.Append(value ?? Value.Null);
11+
1012
protected override void Append(ref StringBuilder sb) => AppendValue(sb, Pop());
1113

1214
protected override void ConstantAppend(ref StringBuilder sb, ref ExecutableScript script, ref int insnPtr)

src/Lib/Public/Hypervisor/Starscript.cs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,4 @@ protected StarscriptHypervisor(ValueMap? globals = null, ValueMap? locals = null
5050
/// Useful for maintaining multiple <see cref="StarscriptHypervisor"/>s for varied use-cases, inheriting from a single globals map with minor differences.
5151
/// </summary>
5252
public StarscriptHypervisor CopyGlobalsToNew() => CreateFromParent(this);
53-
54-
private static void AppendValue(StringBuilder sb, Value? value) => sb.Append(value ?? Value.Null);
5553
}

0 commit comments

Comments
 (0)