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

◆ GenerateInvoke()

QilNode System.Xml.Xsl.Xslt.InvokeGenerator.GenerateInvoke ( QilFunction func,
IList< XslNode > actualArgs )
inline

Definition at line 28 of file InvokeGenerator.cs.

29 {
31 _formalArgs = func.Arguments;
34 {
37 if (qilNode == null)
38 {
39 qilNode = ((!_debug) ? Clone(qilParameter.DefaultValue) : ((!(qilParameter.Name.NamespaceUri == "urn:schemas-microsoft-com:xslt-debug")) ? _fac.DefaultValueMarker() : Clone(qilParameter.DefaultValue)));
40 }
41 XmlQueryType xmlType = qilParameter.XmlType;
42 XmlQueryType xmlType2 = qilNode.XmlType;
43 if (!xmlType2.IsSubtypeOf(xmlType))
44 {
45 qilNode = _fac.TypeAssert(qilNode, xmlType);
46 }
48 }
50 while (_iterStack.Count != 0)
51 {
53 }
54 return qilNode2;
55 }
virtual void Add(QilNode node)
Definition QilNode.cs:121
QilNode Invoke(QilFunction func, QilList args)
QilNode Loop(QilIterator variable, QilNode body)
QilNode TypeAssert(QilNode expr, XmlQueryType t)
QilNode FindActualArg(QilParameter formalArg, IList< XslNode > actualArgs)
readonly Stack< QilIterator > _iterStack

References System.Xml.Xsl.Xslt.InvokeGenerator._curArg, System.Xml.Xsl.Xslt.InvokeGenerator._debug, System.Xml.Xsl.Xslt.InvokeGenerator._fac, System.Xml.Xsl.Xslt.InvokeGenerator._formalArgs, System.Xml.Xsl.Xslt.InvokeGenerator._invokeArgs, System.Xml.Xsl.Xslt.InvokeGenerator._iterStack, System.Xml.Xsl.Qil.QilPatternFactory.ActualParameterList(), System.Xml.Xsl.Qil.QilNode.Add(), System.Collections.Generic.Stack< T >.Clear(), System.Xml.Xsl.Qil.QilCloneVisitor.Clone(), System.Collections.Generic.Stack< T >.Count, System.Xml.Xsl.Qil.QilList.Count, System.Xml.Xsl.Xslt.XsltQilFactory.DefaultValueMarker(), System.Xml.Dictionary, System.Xml.Xsl.Xslt.InvokeGenerator.FindActualArg(), System.Xml.Xsl.Qil.QilPatternFactory.Invoke(), System.Xml.Xsl.Qil.QilPatternFactory.Loop(), System.Collections.Generic.Stack< T >.Pop(), and System.Xml.Xsl.Qil.QilPatternFactory.TypeAssert().

Referenced by System.Xml.Xsl.Xslt.MatcherBuilder.BuildMatcher(), System.Xml.Xsl.Xslt.QilGenerator.CompileCallTemplate(), and System.Xml.Xsl.Xslt.QilGenerator.CompileUseAttributeSet().