Moving codegen tools to another project
This commit is contained in:
1 parent
fa0565e699
commit
745def1365
27 files changed
+640
-22
No files matched your search
@@ -0,0 +1,20 @@
|
||||
namespace mROA.CodegenTools.Reading
|
||||
{
|
||||
public class LinkSectionReader : LeadingTextSectionReader
|
||||
{
|
||||
public LinkSectionReader() : base("<!L")
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
public override ITemplateSection ExtractSection(ref int index, TemplateDocument document)
|
||||
{
|
||||
var from = index;
|
||||
index = PassCaretToCloseSymbol();
|
||||
var to = index - 1;
|
||||
|
||||
var tagText = GetTagValue(from, to);
|
||||
return new LinkTemplateSection(tagText, document);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user