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

◆ VisitSubtract()

override QilNode System.Xml.Xsl.IlGen.XmlILOptimizerVisitor.VisitSubtract ( QilBinary local0)
inlineprotectedvirtual

Reimplemented from System.Xml.Xsl.Qil.QilVisitor.

Definition at line 861 of file XmlILOptimizerVisitor.cs.

862 {
865 if (this[XmlILOptimization.FoldNone] && (object)qilNode.XmlType == XmlQueryTypeFactory.None && AllowReplace(XmlILOptimization.FoldNone, local0))
866 {
867 return Replace(XmlILOptimization.FoldNone, local0, VisitNop(f.Nop(qilNode)));
868 }
869 if (this[XmlILOptimization.FoldNone] && (object)qilNode2.XmlType == XmlQueryTypeFactory.None && AllowReplace(XmlILOptimization.FoldNone, local0))
870 {
872 }
874 {
876 }
877 return NoReplace(local0);
878 }
bool AllowReplace(XmlILOptimization pattern, QilNode original)
override QilNode VisitNop(QilUnary local0)
QilNode FoldArithmetic(QilNodeType opType, QilLiteral left, QilLiteral right)
bool CanFoldArithmetic(QilNodeType opType, QilLiteral left, QilLiteral right)
QilUnary Nop(QilNode child)

References System.Xml.Xsl.IlGen.XmlILOptimizerVisitor.AllowReplace(), System.Xml.Xsl.IlGen.XmlILOptimizerVisitor.CanFoldArithmetic(), System.Xml.Xsl.Qil.QilReplaceVisitor.f, System.Xml.Xsl.IlGen.XmlILOptimizerVisitor.FoldArithmetic(), System.Xml.Xsl.IlGen.XmlILOptimizerVisitor.IsLiteral(), System.Xml.Xsl.XmlQueryTypeFactory.None, System.Xml.Xsl.Qil.QilFactory.Nop(), System.Xml.Xsl.IlGen.XmlILOptimizerVisitor.NoReplace(), System.Xml.Replace, and System.Xml.Xsl.IlGen.XmlILOptimizerVisitor.VisitNop().