21 lines
489 B
C#
21 lines
489 B
C#
using System.Diagnostics;
|
|
using System.Text;
|
|
using Intromat.Model.Compiler;
|
|
|
|
namespace Intromat.Nodes.Code
|
|
{
|
|
public class StringLiteralValue : LiteralValueBase<string?>
|
|
{
|
|
public override string? PreviewValue => Value;
|
|
|
|
public override void Compile(CompilerContext context, StringBuilder sb)
|
|
{
|
|
sb.Append($"\"{Value}\"");
|
|
}
|
|
|
|
public override string Evaluate()
|
|
{
|
|
return Value ?? string.Empty;
|
|
}
|
|
}
|
|
} |