25 references to DeclareLocal
System.Private.Xml (25)
System\Xml\Serialization\CodeGenerator.cs (4)
143internal LocalBuilder ReturnLocal => retLocal ??= DeclareLocal(_methodBuilder!.ReturnType, "_ret"); 155localTmp = DeclareLocal(type, $"_tmp{_tmpLocals.Count}"); 257local = DeclareLocal(type, name); 940local = DeclareLocal(type, name);
System\Xml\Serialization\XmlSerializationILGen.cs (1)
178LocalBuilder _tmpLoc = ilg.DeclareLocal(typeof(Hashtable), "_tmp");
System\Xml\Serialization\XmlSerializationReaderILGen.cs (9)
414LocalBuilder localP = ilg.DeclareLocal(typeof(object[]), "p"); 640LocalBuilder oLoc = ilg.DeclareLocal(typeof(object), "o"); 978LocalBuilder hLoc = ilg.DeclareLocal(typeof(Hashtable), "h"); 1253LocalBuilder aLoc = ilg.DeclareLocal(arrayMapping.TypeDesc.Type!, aVar); 1286LocalBuilder oLoc = ilg.DeclareLocal(nullableMapping.TypeDesc.Type!, "o"); 1346LocalBuilder locXsiType = ilg.DeclareLocal(typeof(XmlQualifiedName), "xsiType"); 1347LocalBuilder locIsNull = ilg.DeclareLocal(typeof(bool), "isNull"); 3415LocalBuilder paramsRead = ilg.DeclareLocal(typeof(Span<bool>), "paramsRead"); 3433LocalBuilder loc = ilg.DeclareLocal(
System\Xml\Serialization\XmlSerializationWriterILGen.cs (11)
384LocalBuilder pLengthLoc = ilg.DeclareLocal(typeof(int), "pLength"); 611LocalBuilder sLoc = ilg.DeclareLocal(typeof(string), "s"); 624LocalBuilder localTmp = ilg.DeclareLocal(mapping.TypeDesc.Type!, "localTmp"); 654LocalBuilder strArray = ilg.DeclareLocal(typeof(string[]), "strArray"); 666LocalBuilder longArray = ilg.DeclareLocal(typeof(long[]), "longArray"); 720LocalBuilder numLoc = ilg.DeclareLocal(typeof(long), "num"); 958LocalBuilder tLoc = ilg.DeclareLocal(typeof(Type), "t"); 1481LocalBuilder eLoc = ilg.DeclareLocal(typeof(IEnumerator), "e"); 1670LocalBuilder elemLoc = ilg.DeclareLocal(typeof(XmlElement), "elem"); 2428LocalBuilder enumerator = ilg.DeclareLocal(typeof(IEnumerator<>).MakeGenericType(typeof(ConstructorInfo)), "e"); 2440LocalBuilder constructorInfo = ilg.DeclareLocal(typeof(ConstructorInfo), "constructorInfo");