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

◆ Or()

QilNode System.Xml.Xsl.Qil.QilPatternFactory.Or ( QilNode left,
QilNode right )
inlineinherited

Definition at line 207 of file QilPatternFactory.cs.

208 {
209 CheckLogicArg(left);
210 CheckLogicArg(right);
211 if (!_debug)
212 {
213 if (left.NodeType == QilNodeType.True || right.NodeType == QilNodeType.False)
214 {
215 return left;
216 }
217 if (left.NodeType == QilNodeType.False || right.NodeType == QilNodeType.True)
218 {
219 return right;
220 }
221 }
222 return _f.Or(left, right);
223 }
QilBinary Or(QilNode left, QilNode right)

References System.Xml.Xsl.Qil.QilPatternFactory._debug, System.Xml.Xsl.Qil.QilPatternFactory._f, System.Xml.Xsl.Qil.QilPatternFactory.CheckLogicArg(), System.Xml.Xsl.Qil.QilNode.NodeType, and System.Xml.Xsl.Qil.QilFactory.Or().

Referenced by System.Xml.Xsl.Xslt.QilGenerator.CompileLetterValueAttribute(), System.Xml.Xsl.XPath.XPathBuilder.LogicalOperator(), and System.Xml.Xsl.Xslt.QilGenerator.MatchPattern().