Files
bluflame/intromat/Intromat/Nodes/ExecutionValueBase.cs
2026-04-18 22:31:51 +02:00

24 lines
596 B
C#

using System.Text;
using Intromat.Model.Compiler;
namespace Intromat.Nodes
{
public abstract class ExecutionValueBase : IStatement
{
public IStatement? FlowOut { get; set; }
public virtual void Compile(CompilerContext context, StringBuilder sb)
{
if (FlowOut != null)
{
FlowOut.Compile(context, sb);
sb.Append("\n");
}
}
public virtual void CompileHeader(CompilerContext context, StringBuilder sb)
{
FlowOut?.CompileHeader(context, sb);
}
}
}