Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ InvokeRelationalOperator()

QilNode System.Xml.Xsl.XPath.XPathQilFactory.InvokeRelationalOperator ( QilNodeType op,
QilNode left,
QilNode right )
inlineinherited

Definition at line 83 of file XPathQilFactory.cs.

84 {
85 left = TypeAssert(left, XmlQueryTypeFactory.ItemS);
86 right = TypeAssert(right, XmlQueryTypeFactory.ItemS);
87 double val = op switch
88 {
89 QilNodeType.Lt => 2.0,
90 QilNodeType.Le => 3.0,
91 QilNodeType.Gt => 4.0,
92 _ => 5.0,
93 };
94 return XsltInvokeEarlyBound(QName("RelationalOperator"), XsltMethods.RelationalOperator, XmlQueryTypeFactory.BooleanX, new QilNode[3]
95 {
96 Double(val),
97 left,
98 right
99 });
100 }
static readonly MethodInfo RelationalOperator

References System.Xml.Xsl.XmlQueryTypeFactory.BooleanX, System.Xml.Dictionary, System.Xml.Xsl.XmlQueryTypeFactory.ItemS, System.Xml.QName, System.Xml.Xsl.Runtime.XsltMethods.RelationalOperator, System.Xml.Xsl.Qil.TypeAssert, and System.Xml.Xsl.Qil.XsltInvokeEarlyBound.

Referenced by System.Xml.Xsl.XPath.XPathBuilder.RelationalOperator().