Codegen in modidier support

This commit is contained in:
2026-01-29 23:15:39 +03:00
parent b4280cd06d
commit 84f9840024
17 changed files with 316 additions and 75 deletions
@@ -3,25 +3,27 @@ namespace mROA.Codegen.Templates
public class IndexProviderTemplate : TemplateView
{
private const string TemplateFile = "IndexProvider.cstmpl";
private const string NamespaceTag = "namespace";
private const string LevelTag = "level";
private const string LenTag = "len";
private const string IndexSpanTag = "indexSpan";
private const string RemoteTypePairTag = "remoteTypePair";
public IndexProviderTemplate() : base(TemplateFile) { }
public IndexProviderTemplate() : base(TemplateFile)
{
}
public void DefineNamespace(string value)
{
Define(NamespaceTag, value);
}
public void DefineLevel(string value)
{
Define(LevelTag, value);
}
public void DefineLen(string value)
{
Define(LenTag, value);
@@ -31,7 +33,7 @@ namespace mROA.Codegen.Templates
{
Insert(IndexSpanTag, value);
}
public void InsertRemoteTypePair(string value)
{
Insert(RemoteTypePairTag, value);