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

◆ SortNewNodeSet()

void System.Xml.Xsl.XsltOld.ActionFrame.SortNewNodeSet ( Processor proc,
ArrayList sortarray )
inlinepackage

Definition at line 182 of file ActionFrame.cs.

183 {
184 int count = sortarray.Count;
186 for (int i = 0; i < count; i++)
187 {
188 Sort sort = (Sort)sortarray[i];
189 Query compiledQuery = proc.GetCompiledQuery(sort.select);
190 xPathSortComparer.AddSort(compiledQuery, new XPathComparerHelper(sort.order, sort.caseOrder, sort.lang, sort.dataType));
191 }
193 while (NewNextNode(proc))
194 {
198 for (int j = 0; j < count; j++)
199 {
200 sortKey[j] = xPathSortComparer.Expression(j).Evaluate(_newNodeSet);
201 }
204 }
206 _newNodeSet = new XPathSortArrayIterator(list);
207 }
void Add(TKey key, TValue value)
bool NewNextNode(Processor proc)

References System.Xml.Xsl.XsltOld.ActionFrame._newNodeSet, System.Xml.Xsl.XsltOld.ActionFrame._nodeSet, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Xml.XPath.XPathNavigator.Clone(), System.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.XPath.XPathNodeIterator.Current, System.Xml.Dictionary, System.list, and System.Xml.Xsl.XsltOld.ActionFrame.NewNextNode().

Referenced by System.Xml.Xsl.XsltOld.ApplyTemplatesAction.Execute(), and System.Xml.Xsl.XsltOld.ForEachAction.Execute().