Including tools into codegen
This commit is contained in:
@@ -1,31 +0,0 @@
|
||||
namespace mROA.Codegen.Tools
|
||||
{
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user