Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ CompileAndSortMatches()

void System.Xml.Xsl.Xslt.QilGenerator.CompileAndSortMatches ( Stylesheet sheet)
inlineprivate

Definition at line 1659 of file QilGenerator.cs.

1660 {
1661 foreach (Template template in sheet.Templates)
1662 {
1663 if (template.Match == null)
1664 {
1665 continue;
1666 }
1667 EnterScope(template);
1668 QilNode qilNode = CompileMatchPattern(template.Match);
1669 if (qilNode.NodeType == QilNodeType.Sequence)
1670 {
1672 for (int i = 0; i < qilList.Count; i++)
1673 {
1674 sheet.AddTemplateMatch(template, (QilLoop)qilList[i]);
1675 }
1676 }
1677 else
1678 {
1679 sheet.AddTemplateMatch(template, (QilLoop)qilNode);
1680 }
1681 ExitScope();
1682 }
1683 sheet.SortTemplateMatches();
1684 Stylesheet[] imports = sheet.Imports;
1685 foreach (Stylesheet sheet2 in imports)
1686 {
1688 }
1689 }
QilNode CompileMatchPattern(string pttrn)
QilList EnterScope(XslNode node)
void CompileAndSortMatches(Stylesheet sheet)

References System.Xml.Xsl.Xslt.QilGenerator.CompileAndSortMatches(), System.Xml.Xsl.Xslt.QilGenerator.CompileMatchPattern(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, System.Xml.Xsl.Xslt.QilGenerator.EnterScope(), and System.Xml.Xsl.Xslt.QilGenerator.ExitScope().

Referenced by System.Xml.Xsl.Xslt.QilGenerator.Compile(), and System.Xml.Xsl.Xslt.QilGenerator.CompileAndSortMatches().