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

◆ VisitXsltConvert()

override QilNode System.Xml.Xsl.IlGen.XmlILVisitor.VisitXsltConvert ( QilTargetType ndConv)
inlineprotectedvirtual

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

Definition at line 2329 of file XmlILVisitor.cs.

2330 {
2331 XmlQueryType xmlType = ndConv.Source.XmlType;
2332 XmlQueryType targetType = ndConv.TargetType;
2334 {
2336 }
2337 else
2338 {
2339 NestedVisitEnsureStack(ndConv.Source, typeof(XPathItem), !xmlType.IsSingleton);
2340 GetXsltConvertMethod(xmlType.IsSingleton ? XmlQueryTypeFactory.Item : XmlQueryTypeFactory.ItemS, targetType, out meth);
2341 }
2342 if (meth != null)
2343 {
2344 _helper.Call(meth);
2345 }
2346 _iterCurr.Storage = StorageDescriptor.Stack(GetItemStorageType(targetType), !targetType.IsSingleton);
2347 return ndConv;
2348 }
bool GetXsltConvertMethod(XmlQueryType typSrc, XmlQueryType typDst, out MethodInfo meth)

References System.Xml.Xsl.IlGen.XmlILVisitor._helper, System.Xml.Xsl.IlGen.GenerateHelper.Call(), System.Xml.Dictionary, System.Xml.Xsl.IlGen.XmlILVisitor.GetItemStorageType(), System.Xml.Xsl.IlGen.XmlILVisitor.GetXsltConvertMethod(), System.Xml.Xsl.XmlQueryType.IsSingleton, System.Xml.Xsl.XmlQueryTypeFactory.Item, System.Xml.Xsl.XmlQueryTypeFactory.ItemS, System.Xml.Xsl.IlGen.XmlILVisitor.NestedVisitEnsureStack(), and System.Xml.Xsl.IlGen.StorageDescriptor.Stack().