Including tools into codegen

This commit is contained in:
micialware committed 2025-06-27 16:12:38 +03:00
1 parent 745def1365
commit f31ddf1604
22 files changed
+78 -574

No files matched your search

@@ -1,24 +0,0 @@
using System.Linq;
namespace mROA.Codegen.Tools.Reading
{
public class InsertSectionReader : LeadingTextSectionReader
{
public InsertSectionReader() : base("<!I")
{
}
public override ITemplateSection ExtractSection(ref int index, TemplateDocument document)
{
var from = index;
index = PassCaretToCloseSymbol();
var to = index - 1;
var tagText = GetTagValue(from, to);
var parts = tagText.Split(' ');
return new InsertTemplateSection(parts[0], document, parts.Skip(1).ToArray());
}
}
}