24 lines
596 B
C#
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);
|
|
}
|
|
}
|
|
} |