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

◆ CreateFunctionMetadata()

void System.Xml.Xsl.XmlILGenerator.CreateFunctionMetadata ( IList< QilNode > funcList)
inlineprivate

Definition at line 67 of file XmlILGenerator.cs.

68 {
69 foreach (QilFunction func in funcList)
70 {
71 Type[] array = new Type[func.Arguments.Count];
72 string[] array2 = new string[func.Arguments.Count];
73 for (int i = 0; i < func.Arguments.Count; i++)
74 {
77 if (qilParameter.DebugName != null)
78 {
79 array2[i] = qilParameter.DebugName;
80 }
81 }
82 Type returnType = ((!XmlILConstructInfo.Read(func).PushToWriterLast) ? XmlILTypeHelper.GetStorageType(func.XmlType) : typeof(void));
85 for (int j = 0; j < func.Arguments.Count; j++)
86 {
87 XmlILAnnotation.Write(func.Arguments[j]).ArgumentPosition = j;
88 }
89 XmlILAnnotation.Write(func).FunctionBinding = functionBinding;
90 }
91 }
static XmlILAnnotation Write(QilNode nd)
static XmlILConstructInfo Read(QilNode nd)
MethodInfo DefineMethod(string name, Type returnType, Type[] paramTypes, string[] paramNames, XmlILMethodAttributes xmlAttrs)
static Type GetStorageType(XmlQueryType qyTyp)

References System.Xml.Xsl.XmlILGenerator._module, System.array, System.Xml.Xsl.IlGen.XmlILModule.DefineMethod(), System.Xml.Dictionary, System.Xml.Xsl.IlGen.XmlILTypeHelper.GetStorageType(), System.Xml.Xsl.IlGen.XmlILConstructInfo.Read(), and System.Xml.Xsl.IlGen.XmlILAnnotation.Write().

Referenced by System.Xml.Xsl.XmlILGenerator.Generate().