Парсер шаблонов готов

This commit is contained in:
2025-03-23 19:32:41 +03:00
parent e93a028bc4
commit b58bddc1a3
19 changed files with 352 additions and 22 deletions
+2 -6
View File
@@ -2,7 +2,7 @@ using System;
namespace mROA.CodegenTools
{
public class DefineTemplateSection : ITemplateSection, ITagged
public class DefineTemplateSection : ITagged
{
public TemplateDocument Context { get; set; }
public string StoredText { get; }
@@ -18,14 +18,10 @@ namespace mROA.CodegenTools
public string Tag => _tag;
public int TargetLength => StoredText.Length;
public string Bake()
{
return String.Empty;
}
public override string ToString()
{
return StoredText;
return $"{nameof(_tag)}: {_tag}, {nameof(StoredText)}: {StoredText}";
}
}
}