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

◆ MatchPattern()

QilNode System.Xml.Xsl.Xslt.MatcherBuilder.MatchPattern ( QilIterator it,
TemplateMatch match )
inlineprivate

Definition at line 109 of file MatcherBuilder.cs.

110 {
111 QilNode condition = match.Condition;
112 if (condition == null)
113 {
114 return _f.True();
115 }
116 condition = condition.DeepClone(_f.BaseFactory);
117 return _refReplacer.Replace(condition, match.Iterator, it);
118 }
virtual QilNode DeepClone(QilFactory f)
Definition QilNode.cs:91
readonly ReferenceReplacer _refReplacer
readonly XPathQilFactory _f
QilNode Replace(QilNode expr, QilReference lookFor, QilReference replaceBy)

References System.Xml.Xsl.Xslt.MatcherBuilder._f, System.Xml.Xsl.Xslt.MatcherBuilder._refReplacer, System.Xml.Xsl.Qil.QilPatternFactory.BaseFactory, System.Xml.Xsl.Qil.QilNode.DeepClone(), System.match, System.Xml.Xsl.Xslt.ReferenceReplacer.Replace(), and System.Xml.Xsl.Qil.QilPatternFactory.True().

Referenced by System.Xml.Xsl.Xslt.MatcherBuilder.MatchPatterns(), and System.Xml.Xsl.Xslt.MatcherBuilder.MatchPatternsWhosePriorityGreater().