port from perforce
This commit is contained in:
24
intromat/Intromat/Nodes/ExecutionValueBase.cs
Normal file
24
intromat/Intromat/Nodes/ExecutionValueBase.cs
Normal file
@@ -0,0 +1,24 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user