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

◆ EvaluateKey()

static void System.Xml.Xsl.XsltOld.XsltCompileContext.EvaluateKey ( XPathNavigator node,
Query matchExpr,
string matchStr,
Query useExpr,
Hashtable keyTable )
inlinestaticprivate

Definition at line 695 of file XsltCompileContext.cs.

696 {
697 try
698 {
699 if (matchExpr.MatchNode(node) == null)
700 {
701 return;
702 }
703 }
704 catch (XPathException)
705 {
706 throw XsltException.Create(System.SR.Xslt_InvalidPattern, matchStr);
707 }
708 object obj = useExpr.Evaluate(new XPathSingletonIterator(node, moved: true));
710 {
711 bool checkDuplicates = false;
712 while (xPathNodeIterator.MoveNext())
713 {
715 checkDuplicates = true;
716 }
717 }
718 else
719 {
720 string key = XmlConvert.ToXPathString(obj);
722 }
723 }
static string Xslt_InvalidPattern
Definition SR.cs:2134
Definition SR.cs:7
static void AddKeyValue(Hashtable keyTable, string key, XPathNavigator value, bool checkDuplicates)

References System.Xml.Xsl.XsltOld.XsltCompileContext.AddKeyValue(), System.Xml.Xsl.XsltException.Create(), System.Xml.Dictionary, System.key, System.obj, System.Xml.XmlConvert.ToXPathString(), and System.SR.Xslt_InvalidPattern.

Referenced by System.Xml.Xsl.XsltOld.XsltCompileContext.BuildKeyTable().