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

◆ GenerateScriptCall()

QilNode System.Xml.Xsl.Xslt.QilGenerator.GenerateScriptCall ( QilName name,
XmlExtensionFunction scrFunc,
IList< QilNode > args )
inlineprivate

Definition at line 2359 of file QilGenerator.cs.

2360 {
2361 for (int i = 0; i < args.Count; i++)
2362 {
2363 XmlQueryType xmlArgumentType = scrFunc.GetXmlArgumentType(i);
2364 switch (xmlArgumentType.TypeCode)
2365 {
2366 case XmlTypeCode.Boolean:
2367 args[i] = _f.ConvertToBoolean(args[i]);
2368 break;
2369 case XmlTypeCode.Double:
2370 args[i] = _f.ConvertToNumber(args[i]);
2371 break;
2372 case XmlTypeCode.String:
2373 args[i] = _f.ConvertToString(args[i]);
2374 break;
2375 case XmlTypeCode.Node:
2377 break;
2378 }
2379 }
2380 return _f.XsltInvokeEarlyBound(name, scrFunc.Method, scrFunc.XmlReturnType, args);
2381 }
QilNode XsltInvokeEarlyBound(QilNode name, MethodInfo d, XmlQueryType t, IList< QilNode > args)
readonly XsltQilFactory _f

References System.Xml.Xsl.Xslt.QilGenerator._f, System.Xml.Xsl.XPath.XPathQilFactory.ConvertToBoolean(), System.Xml.Xsl.XPath.XPathQilFactory.ConvertToNode(), System.Xml.Xsl.XPath.XPathQilFactory.ConvertToNodeSet(), System.Xml.Xsl.XPath.XPathQilFactory.ConvertToNumber(), System.Xml.Xsl.XPath.XPathQilFactory.ConvertToString(), System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Xml.Dictionary, and System.Xml.Xsl.Qil.QilPatternFactory.XsltInvokeEarlyBound().

Referenced by System.Xml.Xsl.Xslt.QilGenerator.ResolveFunction().