Moving codegen tools to another project
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
namespace mROA.CodegenTools
|
||||
{
|
||||
public class DefineTemplateSection : ITagged
|
||||
{
|
||||
public DefineTemplateSection(string storedText, string tag, TemplateDocument context)
|
||||
{
|
||||
StoredText = storedText;
|
||||
Tag = tag;
|
||||
Context = context;
|
||||
}
|
||||
|
||||
public string StoredText { get; }
|
||||
public TemplateDocument Context { get; set; }
|
||||
|
||||
public string Tag { get; }
|
||||
|
||||
public int TargetLength => StoredText.Length;
|
||||
|
||||
public object Clone()
|
||||
{
|
||||
return new DefineTemplateSection(StoredText, Tag, Context);
|
||||
}
|
||||
|
||||
|
||||
public override string ToString()
|
||||
{
|
||||
return StoredText;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user