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