Moving codegen tools to another project

This commit is contained in:
2025-06-03 12:09:32 +03:00
parent fa0565e699
commit 745def1365
27 changed files with 640 additions and 22 deletions
@@ -0,0 +1,31 @@
namespace mROA.CodegenTools
{
public class LiteralTemplateSection : ITemplateSection, IBaking
{
private readonly string _internalText;
public LiteralTemplateSection(string internalText, TemplateDocument context)
{
_internalText = internalText;
Context = context;
}
public string Bake()
{
return ToString();
}
public TemplateDocument Context { get; set; }
public int TargetLength => _internalText.Length;
public object Clone()
{
return new LiteralTemplateSection(_internalText, Context);
}
public override string ToString()
{
return _internalText;
}
}
}