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

◆ CompileChoose()

QilNode System.Xml.Xsl.Xslt.QilGenerator.CompileChoose ( XslNode node)
inlineprivate

Definition at line 1185 of file QilGenerator.cs.

1186 {
1187 IList<XslNode> content = node.Content;
1188 QilNode qilNode = null;
1189 int num = content.Count - 1;
1190 while (0 <= num)
1191 {
1192 XslNode xslNode = content[num];
1193 QilList nsList = EnterScope(xslNode);
1195 ExitScope();
1196 SetLineInfoCheck(qilNode, xslNode.SourceLine);
1197 qilNode = SetDebugNs(qilNode, nsList);
1198 num--;
1199 }
1200 if (qilNode == null)
1201 {
1202 return _f.Sequence();
1203 }
1204 if (!IsDebug)
1205 {
1206 return qilNode;
1207 }
1208 return _f.Sequence(qilNode);
1209 }
QilNode CompileWhen(XslNode whenNode, QilNode otherwise)
readonly XsltQilFactory _f
QilNode CompileInstructions(IList< XslNode > instructions)
QilList EnterScope(XslNode node)
void SetLineInfoCheck(QilNode n, ISourceLineInfo lineInfo)
QilNode SetDebugNs(QilNode n, QilList nsList)

References System.Xml.Xsl.Xslt.QilGenerator._f, System.Xml.Xsl.Xslt.QilGenerator.CompileInstructions(), System.Xml.Xsl.Xslt.QilGenerator.CompileWhen(), System.Xml.Dictionary, System.Xml.Xsl.Xslt.QilGenerator.EnterScope(), System.Xml.Xsl.Xslt.QilGenerator.ExitScope(), System.Xml.Xsl.Xslt.QilGenerator.InstructionList(), System.Xml.Xsl.Xslt.QilGenerator.IsDebug, System.Xml.Xsl.Qil.QilPatternFactory.Sequence(), System.Xml.Xsl.Xslt.QilGenerator.SetDebugNs(), and System.Xml.Xsl.Xslt.QilGenerator.SetLineInfoCheck().

Referenced by System.Xml.Xsl.Xslt.QilGenerator.CompileInstructions().