Files
mROA/mROA.Codegen/Tools/DefineTemplateSection.cs
T

30 lines
704 B
C#
Raw Normal View History

2025-03-29 19:31:10 +03:00
namespace mROA.Codegen.Tools
{
public class DefineTemplateSection : ITagged
{
public DefineTemplateSection(string storedText, string tag, TemplateDocument context)
{
StoredText = storedText;
2025-03-29 19:31:10 +03:00
Tag = tag;
Context = context;
}
2025-03-29 19:31:10 +03:00
public string StoredText { get; }
public TemplateDocument Context { get; set; }
2025-03-29 19:31:10 +03:00
public string Tag { get; }
2025-03-29 19:31:10 +03:00
public int TargetLength => StoredText.Length;
public object Clone()
{
2025-03-29 19:31:10 +03:00
return new DefineTemplateSection(StoredText, Tag, Context);
}
2025-03-29 19:31:10 +03:00
public override string ToString()
{
2025-03-29 19:31:10 +03:00
return StoredText;
}
}
}