2 instantiations of LocalBuilder
mscorlib (2)
system\reflection\emit\dynamicilgenerator.cs (1)
80localBuilder = new LocalBuilder(m_localCount, localType, m_methodBuilder);
system\reflection\emit\ilgenerator.cs (1)
1295localBuilder = new LocalBuilder(m_localCount, localType, methodBuilder, pinned);
533 references to LocalBuilder
mscorlib (23)
system\reflection\emit\cominterfaces.cs (1)
147[TypeLibImportClassAttribute(typeof(System.Reflection.Emit.LocalBuilder))]
system\reflection\emit\dynamicilgenerator.cs (2)
63public override LocalBuilder DeclareLocal(Type localType, bool pinned) 65LocalBuilder localBuilder;
system\reflection\emit\ilgenerator.cs (5)
861public virtual void Emit(OpCode opcode, LocalBuilder local) 1192public virtual void EmitWriteLine(LocalBuilder localBuilder) 1262public virtual LocalBuilder DeclareLocal(Type localType) 1267public virtual LocalBuilder DeclareLocal(Type localType, bool pinned) 1272LocalBuilder localBuilder;
system\runtime\interopservices\tceadaptergen\eventproviderwriter.cs (14)
145LocalBuilder ltSinkHelper = il.DeclareLocal( SinkHelperClass ); 146LocalBuilder ltCookie = il.DeclareLocal( typeof(Int32) ); 147LocalBuilder ltLockTaken = il.DeclareLocal( typeof(bool) ); 302LocalBuilder ltNumSinkHelpers = il.DeclareLocal( typeof(Int32) ); 303LocalBuilder ltSinkHelperCounter = il.DeclareLocal( typeof(Int32) ); 304LocalBuilder ltCurrSinkHelper = il.DeclareLocal( SinkHelperClass ); 305LocalBuilder ltLockTaken = il.DeclareLocal(typeof(bool)); 492LocalBuilder ltCP = il.DeclareLocal( typeof(IConnectionPoint) ); 493LocalBuilder ltEvGuid = il.DeclareLocal( typeof(Guid) ); 494LocalBuilder ltByteArrayGuid = il.DeclareLocal( typeof(Byte[]) ); 626LocalBuilder ltNumSinkHelpers = il.DeclareLocal( typeof(Int32) ); 627LocalBuilder ltSinkHelperCounter = il.DeclareLocal( typeof(Int32) ); 628LocalBuilder ltCurrSinkHelper = il.DeclareLocal( SinkHelperClass ); 629LocalBuilder ltLockTaken = il.DeclareLocal(typeof(bool));
system\runtime\interopservices\tceadaptergen\eventsinkhelperwriter.cs (1)
241LocalBuilder ltRetVal = il.DeclareLocal( ReturnType );
System (41)
regex\system\text\regularexpressions\RegexCompiler.cs (41)
78internal LocalBuilder _textstartV; 79internal LocalBuilder _textbegV; 80internal LocalBuilder _textendV; 81internal LocalBuilder _textposV; 82internal LocalBuilder _textV; 83internal LocalBuilder _trackposV; 84internal LocalBuilder _trackV; 85internal LocalBuilder _stackposV; 86internal LocalBuilder _stackV; 87internal LocalBuilder _tempV; 88internal LocalBuilder _temp2V; 89internal LocalBuilder _temp3V; 90internal LocalBuilder _loopV; 487internal void Ldloc(LocalBuilder lt) { 494internal void Stloc(LocalBuilder lt) { 516internal void Mvfldloc(FieldInfo ft, LocalBuilder lt) { 524internal void Mvlocfld(LocalBuilder lt, FieldInfo ft) { 762internal void PushTrack(LocalBuilder lt) { 826internal void PushStack(LocalBuilder lt) { 1226LocalBuilder chV = _tempV; 1227LocalBuilder testV = _tempV; 1228LocalBuilder limitV = _temp2V; 1393LocalBuilder cV = _temp2V; 1394LocalBuilder chV = _tempV; 1527internal LocalBuilder DeclareInt() { 1534internal LocalBuilder DeclareIntArray() { 1541internal LocalBuilder DeclareString() { 1818LocalBuilder mark = _tempV; 1886LocalBuilder mark = _tempV; 1999LocalBuilder count = _tempV; 2000LocalBuilder mark = _temp2V; 2053LocalBuilder count = _tempV; 2110LocalBuilder count = _tempV; 2111LocalBuilder mark = _temp2V; 2164LocalBuilder cV = _tempV; 2577LocalBuilder lenV = _tempV; 2578LocalBuilder indexV = _temp2V; 2677LocalBuilder lenV = _tempV; 2783LocalBuilder cV = _tempV; 2784LocalBuilder lenV = _temp2V; 2938LocalBuilder cV = _tempV;
System.Core (71)
Microsoft\Scripting\Compiler\BoundConstants.cs (4)
84private readonly Dictionary<TypedConstant, LocalBuilder> _cache = new Dictionary<TypedConstant, LocalBuilder>(); 116LocalBuilder local; 155LocalBuilder local = lc.IL.DeclareLocal(reference.Key.Type);
Microsoft\Scripting\Compiler\CompilerScope.Storage.cs (4)
52private readonly LocalBuilder _local; 117LocalBuilder value = Compiler.GetLocal(Variable.Type); 145private readonly LocalBuilder _boxLocal; 167LocalBuilder value = Compiler.GetLocal(Variable.Type);
Microsoft\Scripting\Compiler\DebugInfoGenerator.cs (1)
61internal virtual void SetLocalName(LocalBuilder localBuilder, string name) {
Microsoft\Scripting\Compiler\ILGen.cs (5)
777LocalBuilder locFrom = null; 778LocalBuilder locTo = null; 810LocalBuilder locTo = null; 835LocalBuilder locFrom = null; 997LocalBuilder lb = il.DeclareLocal(type);
Microsoft\Scripting\Compiler\LabelInfo.cs (1)
55private LocalBuilder _value;
Microsoft\Scripting\Compiler\LambdaCompiler.Address.cs (11)
86LocalBuilder loc = GetLocal(rightType); 157LocalBuilder temp = GetLocal(GetMemberType(member)); 210LocalBuilder tmp = GetLocal(type); 249LocalBuilder instanceLocal = null; 264var valueLocal = GetLocal(node.Type); 287LocalBuilder instanceLocal = null; 298List<LocalBuilder> args = new List<LocalBuilder>(); 302var argLocal = GetLocal(arg.Type); 312var valueLocal = GetLocal(node.Type); 323foreach (var arg in args) {
Microsoft\Scripting\Compiler\LambdaCompiler.Binary.cs (9)
386LocalBuilder locLeft = GetLocal(leftType); 387LocalBuilder locRight = GetLocal(rightType); 500LocalBuilder locLeft = GetLocal(leftType); 501LocalBuilder locRight = GetLocal(rightType); 502LocalBuilder locResult = GetLocal(resultType); 571LocalBuilder locLeft = GetLocal(type); 572LocalBuilder locRight = GetLocal(type); 643LocalBuilder locLeft = GetLocal(type); 644LocalBuilder locRight = GetLocal(type);
Microsoft\Scripting\Compiler\LambdaCompiler.cs (7)
76private readonly KeyedQueue<Type, LocalBuilder> _freeLocals = new KeyedQueue<Type, LocalBuilder>(); 246internal LocalBuilder GetLocal(Type type) { 249LocalBuilder local; 258internal void FreeLocal(LocalBuilder local) { 264internal LocalBuilder GetNamedLocal(Type type, ParameterExpression variable) { 267LocalBuilder lb = _ilg.DeclareLocal(type);
Microsoft\Scripting\Compiler\LambdaCompiler.Expressions.cs (11)
257LocalBuilder temp = null; 502var siteTemp = GetLocal(typeof(CallSite)); 524LocalBuilder temp = GetLocal(node.Type); 599LocalBuilder value = GetLocal(variable.Type); 661LocalBuilder temp = null; 840LocalBuilder loc = null; 873LocalBuilder loc = null; 948LocalBuilder anyNull = _ilg.DeclareLocal(typeof(bool)); 985LocalBuilder result = GetLocal(resultType); 1017LocalBuilder anyNull = _ilg.DeclareLocal(typeof(bool)); 1018LocalBuilder allNull = _ilg.DeclareLocal(typeof(bool));
Microsoft\Scripting\Compiler\LambdaCompiler.Logical.cs (10)
113LocalBuilder loc = GetLocal(b.Left.Type); 163LocalBuilder loc = GetLocal(b.Left.Type); 229LocalBuilder locLeft = GetLocal(type); 230LocalBuilder locRight = GetLocal(type); 289LocalBuilder locLeft = GetLocal(b.Left.Type); 294LocalBuilder locRight = GetLocal(b.Right.Type); 345LocalBuilder locLeft = GetLocal(type); 346LocalBuilder locRight = GetLocal(type); 416LocalBuilder locLeft = GetLocal(b.Left.Type); 421LocalBuilder locRight = GetLocal(b.Right.Type);
Microsoft\Scripting\Compiler\LambdaCompiler.Statements.cs (4)
242internal readonly LocalBuilder Value; 248internal SwitchInfo(SwitchExpression node, LocalBuilder value, Label @default) { 377LocalBuilder value = GetLocal(node.SwitchValue.Type); 716LocalBuilder value = null;
Microsoft\Scripting\Compiler\LambdaCompiler.Unary.cs (3)
83LocalBuilder loc = GetLocal(node.Operand.Type); 112LocalBuilder loc = GetLocal(operandType); 149LocalBuilder loc = GetLocal(operandType);
Microsoft\Scripting\Compiler\SymbolDocumentGenerator.cs (1)
70internal override void SetLocalName(LocalBuilder localBuilder, string name) {
System.Data.Entity (2)
System\Data\Metadata\Edm\LightweightCodeGenerator.cs (2)
238LocalBuilder local = gen.DeclareLocal(realType); 355LocalBuilder local = gen.DeclareLocal(realType);
System.Data.Linq (46)
SqlClient\Reader\ObjectReaderCompiler.cs (46)
673LocalBuilder locDataReader; 722private Type Generate(SqlNode node, LocalBuilder locInstance) { 828LocalBuilder loc = gen.DeclareLocal(u.Operand.ClrType); 843LocalBuilder loc = gen.DeclareLocal(actualType); 897LocalBuilder loc = gen.DeclareLocal(actualType); 908LocalBuilder loc = gen.DeclareLocal(pType); 933LocalBuilder locInstance = gen.DeclareLocal(sn.ClrType); 934LocalBuilder locStoreInMember = null; 972LocalBuilder locCached = gen.DeclareLocal(sn.ClrType); 1053private void GenerateMemberAssignment(MetaDataMember mm, LocalBuilder locInstance, SqlExpression expr, LocalBuilder locStoreInMember) { 1106private void GenerateAssignValue(MetaDataMember mm, LocalBuilder locInstance, SqlExpression expr, LocalBuilder locStoreInMember) { 1125LocalBuilder locValue = gen.DeclareLocal(memberType); 1155private void GenerateAssignDeferredEntitySet(MetaDataMember mm, LocalBuilder locInstance, SqlExpression expr, LocalBuilder locStoreInMember) { 1173LocalBuilder locSource = gen.DeclareLocal(eType); 1217private void GenerateAssignEntitySet(MetaDataMember mm, LocalBuilder locInstance, SqlExpression expr, LocalBuilder locStoreInMember) { 1235LocalBuilder locSource = gen.DeclareLocal(eType); 1275private void GenerateAssignDeferredReference(MetaDataMember mm, LocalBuilder locInstance, SqlExpression expr, LocalBuilder locStoreInMember) { 1300LocalBuilder locSource = gen.DeclareLocal(eType); 1320private void GenerateLoadForMemberAccess(LocalBuilder loc) { 1359private Type GenerateLink(SqlLink link, LocalBuilder locInstance) { 1408private Type GenerateDeferredSource(SqlExpression expr, LocalBuilder locInstance) { 1420private Type GenerateClientQuery(SqlClientQuery cq, LocalBuilder locInstance) { 1466LocalBuilder locCount = gen.DeclareLocal(typeof(int)); 1467LocalBuilder locHasRows = gen.DeclareLocal(typeof(bool)); 1470LocalBuilder locList = gen.DeclareLocal(listType); 1490LocalBuilder locI = gen.DeclareLocal(typeof(int)); 1554private Type GenerateExpressionForType(SqlExpression expr, Type type, LocalBuilder locInstance) { 1630LocalBuilder loc = gen.DeclareLocal(actualType); 1714LocalBuilder locSeq = gen.DeclareLocal(actualType); 1720LocalBuilder locEs = gen.DeclareLocal(expectedType); 1813LocalBuilder locOrdinal = gen.DeclareLocal(typeof(int)); 1840private void GenerateColumnAccess(Type cType, ProviderType pType, int ordinal, LocalBuilder locOrdinal) { 1904private Type GenerateClientCase(SqlClientCase scc, bool isDeferred, LocalBuilder locInstance) { 1905LocalBuilder locDiscriminator = gen.DeclareLocal(scc.Expression.ClrType); 1937LocalBuilder locDiscriminator = gen.DeclareLocal(stc.Discriminator.ClrType); 1978LocalBuilder locDiscriminator = gen.DeclareLocal(dt.Discriminator.ClrType); 1985private Type GenerateDiscriminatedType(MetaType targetType, LocalBuilder locDiscriminator, ProviderType discriminatorType) { 2055LocalBuilder locLeft = gen.DeclareLocal(type); 2056LocalBuilder locRight = gen.DeclareLocal(type); 2081LocalBuilder loc = gen.DeclareLocal(type); 2329LocalBuilder loc = gen.DeclareLocal(type);
System.Data.SqlXml (46)
System\Xml\Xsl\IlGen\GenerateHelper.cs (4)
447private LocalBuilder locXOut; 637public LocalBuilder DeclareLocal(string name, Type type) { 638LocalBuilder locBldr = this.ilgen.DeclareLocal(type); 1565public void Emit(OpCode opcode, LocalBuilder locBldr) {
System\Xml\Xsl\IlGen\IteratorDescriptor.cs (12)
89public static StorageDescriptor Local(LocalBuilder loc, Type itemStorageType, bool isCached) { 105public static StorageDescriptor Current(LocalBuilder locIter, Type itemStorageType) { 147public StorageDescriptor ToLocal(LocalBuilder loc) { 177public LocalBuilder LocalLocation { 178get { return this.locationObject as LocalBuilder; } 185public LocalBuilder CurrentLocation { 186get { return this.locationObject as LocalBuilder; } 224private LocalBuilder locPos; 337public LocalBuilder LocalPosition { 371LocalBuilder locIdx = this.helper.DeclareLocal("$$$idx", typeof(int)); 538public void EnsureLocal(LocalBuilder bldr) { 586public void EnsureLocalNoCache(LocalBuilder bldr) {
System\Xml\Xsl\IlGen\XmlIlVisitor.cs (29)
142LocalBuilder locParam = this.helper.DeclareLocal("$$$param", typeof(object)); 378LocalBuilder locNav; 843LocalBuilder locBool = null, locCond = null; 911private void ConditionalBranch(QilNode ndBranch, Type itemStorageType, LocalBuilder locResult) { 1078LocalBuilder locIdx, locList; 1184LocalBuilder locIter, locNav; 1287LocalBuilder locAgg; 1396LocalBuilder locStringConcat; 1463private void GenerateConcat(QilNode ndStr, LocalBuilder locStringConcat) { 1773LocalBuilder locIter; 1896LocalBuilder locIndex = this.helper.DeclareLocal("$$$index", typeof(XmlILIndex)); 1981LocalBuilder locPos = null; 2080LocalBuilder locPos; 2095LocalBuilder locCache, locKeys; 2159private void VisitSortKey(QilSortKey ndKey, LocalBuilder locKeys) { 2324LocalBuilder locMerge = this.helper.DeclareLocal("$$$dodMerge", typeof(DodSequenceMerge)); 2413LocalBuilder locNav = this.helper.DeclareLocal("$$$navAttr", typeof(XPathNavigator)); 2434LocalBuilder locNav = this.helper.DeclareLocal("$$$navParent", typeof(XPathNavigator)); 2453LocalBuilder locNav = this.helper.DeclareLocal("$$$navRoot", typeof(XPathNavigator)); 2557LocalBuilder locIter = this.helper.DeclareLocal("$$$iterId", typeof(IdIterator)); 3310LocalBuilder locArgs = this.helper.DeclareLocal("$$$args", typeof(IList<XPathItem>[])); 3619private void SyncToNavigator(LocalBuilder locNav, QilNode ndCtxt) { 3638LocalBuilder locIter = this.helper.DeclareLocal(iterName, iterType); 3661LocalBuilder locIter = this.helper.DeclareLocal(iterName, iterType); 3696LocalBuilder locIter = this.helper.DeclareLocal(iterName, iterType); 3729private void GenerateSimpleIterator(Type itemStorageType, LocalBuilder locIter, MethodInfo methNext) { 3759private void GenerateContainerIterator(QilNode nd, LocalBuilder locIter, Label lblOnEndNested, 4444private void NestedVisitEnsureLocal(QilNode nd, LocalBuilder loc) { 4469LocalBuilder locCache;
System\Xml\Xsl\XmlIlGenerator.cs (1)
357LocalBuilder locTypes = this.helper.DeclareLocal("$$$types", typeof(Type[]));
System.Runtime.Serialization (163)
System\Runtime\Serialization\BitFlagsGenerator.cs (6)
17LocalBuilder[] locals; 24locals = new LocalBuilder[localCount]; 50public LocalBuilder GetLocal(int i) 62LocalBuilder local = locals[GetByteIndex(bitIndex)]; 73LocalBuilder localArray = ilg.DeclareLocal(Globals.TypeOfByteArray, "localArray"); 85LocalBuilder local = locals[GetByteIndex(bitIndex)];
System\Runtime\Serialization\CodeGenerator.cs (32)
171LocalBuilder stringFormatArray; 286else if (var is LocalBuilder) 287return ((LocalBuilder)var).LocalType; 292internal LocalBuilder DeclareLocal(Type type, string name, object initialValue) 294LocalBuilder local = DeclareLocal(type, name); 300internal LocalBuilder DeclareLocal(Type type, string name) 305internal LocalBuilder DeclareLocal(Type type, string name, bool isPinned) 307LocalBuilder local = ilGen.DeclareLocal(type, isPinned); 316internal void Set(LocalBuilder local, object value) 322internal object For(LocalBuilder local, object start, object end) 397internal void ForEach(LocalBuilder local, Type elementType, Type enumeratorType, 398LocalBuilder enumerator, MethodInfo getCurrentMethod) 847LocalBuilder zero = DeclareLocal(type, "zero"); 868else if (obj is LocalBuilder) 869Ldloc((LocalBuilder)obj); 878else if (var is LocalBuilder) 879Stloc((LocalBuilder)var); 907else if (obj is LocalBuilder) 908LdlocAddress((LocalBuilder)obj); 1190internal void LdlocAddress(LocalBuilder localBuilder) 1198internal void Ldloc(LocalBuilder localBuilder) 1206internal void Stloc(LocalBuilder local) 1269internal void Ldloca(LocalBuilder localBuilder) 1760LocalBuilder topValue = DeclareLocal(Globals.TypeOfString, "topValue"); 1798LocalBuilder arrayVar = DeclareLocal(type, "arrayVar"); 1801LocalBuilder arrayValueString = DeclareLocal(typeof(string), "arrayValueString"); 1803LocalBuilder i = DeclareLocal(typeof(int), "i"); 1907internal void ElseIfIsEmptyString(LocalBuilder strLocal) 1925internal void IfNotIsEmptyString(LocalBuilder strLocal) 2354LocalBuilder indexVar; 2361internal ForState(LocalBuilder indexVar, Label beginLabel, Label testLabel, object end) 2369internal LocalBuilder Index
System\Runtime\Serialization\Json\JsonFormatReaderGenerator.cs (35)
111LocalBuilder objectLocal; 348LocalBuilder extensionDataLocal = ilg.DeclareLocal(Globals.TypeOfExtensionDataObject, "extensionData"); 366void ReadMembers(ClassDataContract classContract, LocalBuilder extensionDataLocal) 376LocalBuilder memberIndexLocal = ilg.DeclareLocal(Globals.TypeOfInt, "memberIndex", -1); 414Label[] memberLabels, Label throwDuplicateMemberLabel, LocalBuilder memberIndexLocal) 427LocalBuilder value = null; 466LocalBuilder localArray = ilg.DeclareLocal(Globals.TypeOfByteArray, name); 518LocalBuilder ReadValue(Type type, string name) 520LocalBuilder value = ilg.DeclareLocal(type, "valueRead"); 521LocalBuilder nullableValue = null; 532LocalBuilder objectId = ilg.DeclareLocal(Globals.TypeOfString, "objectIdRead"); 608void InternalDeserialize(LocalBuilder value, Type type, string name) 627void WrapNullableObject(LocalBuilder innerValue, LocalBuilder outerValue, int nullables) 700LocalBuilder objectId = ilg.DeclareLocal(Globals.TypeOfString, "objectIdRead"); 711LocalBuilder growingCollection = null; 718LocalBuilder i = ilg.DeclareLocal(Globals.TypeOfInt, "i"); 724LocalBuilder value = ReadCollectionItem(collectionContract, itemType); 807LocalBuilder nodeType = ilg.DeclareLocal(typeof(XmlNodeType), "nodeType"); 841LocalBuilder pairKey = ilg.DeclareLocal(keyType, "key"); 845LocalBuilder pairKeyNullable = ilg.DeclareLocal(keyTypeOriginal, "keyOriginal"); 850LocalBuilder pairValue = ReadValue(valueType, String.Empty); 862LocalBuilder size = ilg.DeclareLocal(Globals.TypeOfInt, "arraySize"); 906LocalBuilder i = ilg.DeclareLocal(Globals.TypeOfInt, "i"); 911LocalBuilder value = ReadCollectionItem(collectionContract, itemType); 992LocalBuilder ReadCollectionItem(CollectionDataContract collectionContract, Type itemType) 997LocalBuilder value = ilg.DeclareLocal(itemType, "valueRead"); 1014void StoreCollectionValue(LocalBuilder collection, LocalBuilder value, CollectionDataContract collectionContract) 1025LocalBuilder pairKey = ilg.DeclareLocal(keyMember.MemberType, keyMember.Name); 1026LocalBuilder pairValue = ilg.DeclareLocal(valueMember.MemberType, valueMember.Name); 1044void StoreKeyValuePair(LocalBuilder collection, CollectionDataContract collectionContract, LocalBuilder pairKey, LocalBuilder pairValue) 1051void HandleUnexpectedItemInCollection(LocalBuilder iterator)
System\Runtime\Serialization\Json\JsonFormatWriterGenerator.cs (24)
82LocalBuilder objectLocal; 268LocalBuilder extensionDataLocal = ilg.DeclareLocal(Globals.TypeOfExtensionDataObject, "extensionData"); 282int WriteMembers(ClassDataContract classContract, LocalBuilder extensionDataLocal, ClassDataContract derivedMostClassContract) 293LocalBuilder memberValue = null; 341private LocalBuilder LoadMemberValue(DataMember member) 345LocalBuilder memberValue = ilg.DeclareLocal(member.MemberType, member.Name + "Value"); 352LocalBuilder itemName = ilg.DeclareLocal(typeof(XmlDictionaryString), "itemName"); 360LocalBuilder i = ilg.DeclareLocal(Globals.TypeOfInt, "i"); 372LocalBuilder memberValue = ilg.DeclareLocal(itemType, "memberValue"); 458LocalBuilder currentValue = ilg.DeclareLocal(elementType, "currentValue"); 460LocalBuilder enumerator = ilg.DeclareLocal(enumeratorType, "enumerator"); 488LocalBuilder pairKey = ilg.DeclareLocal(Globals.TypeOfString, "key"); 489LocalBuilder pairValue = ilg.DeclareLocal(keyValueTypes[1], "value"); 548bool TryWritePrimitive(Type type, LocalBuilder value, MemberInfo memberInfo, LocalBuilder arrayItemIndex, LocalBuilder name, int nameIndex) 594bool TryWritePrimitiveArray(Type type, Type itemType, LocalBuilder value, LocalBuilder itemName) 654void WriteValue(LocalBuilder memberValue) 729void InternalSerialize(MethodInfo methodInfo, LocalBuilder memberValue, Type memberType, bool writeXsiType) 735LocalBuilder typeHandleValue = ilg.DeclareLocal(typeof(RuntimeTypeHandle), "typeHandleValue"); 747LocalBuilder UnwrapNullableObject(LocalBuilder memberValue)// Leaves !HasValue on stack 775void WriteStartElement(LocalBuilder nameLocal, int nameIndex)
System\Runtime\Serialization\XmlDataContract.cs (1)
360System.Reflection.Emit.LocalBuilder local = ilg.DeclareLocal(type, type.Name + "Value");
System\Runtime\Serialization\XmlFormatReaderGenerator.cs (35)
112LocalBuilder objectLocal; 146LocalBuilder objectId = null; 322bool InvokeFactoryMethod(ClassDataContract classContract, LocalBuilder objectId) 341LocalBuilder extensionDataLocal = ilg.DeclareLocal(Globals.TypeOfExtensionDataObject, "extensionData"); 359void ReadMembers(ClassDataContract classContract, LocalBuilder extensionDataLocal) 364LocalBuilder memberIndexLocal = ilg.DeclareLocal(Globals.TypeOfInt, "memberIndex", -1); 369LocalBuilder requiredIndexLocal = hasRequiredMembers ? ilg.DeclareLocal(Globals.TypeOfInt, "requiredIndex", firstRequiredMember) : null; 397int ReadMembers(ClassDataContract classContract, bool[] requiredMembers, Label[] memberLabels, LocalBuilder memberIndexLocal, LocalBuilder requiredIndexLocal) 416LocalBuilder value = null; 474LocalBuilder ReadValue(Type type, string name, string ns) 476LocalBuilder value = ilg.DeclareLocal(type, "valueRead"); 477LocalBuilder nullableValue = null; 488LocalBuilder objectId = ilg.DeclareLocal(Globals.TypeOfString, "objectIdRead"); 564void InternalDeserialize(LocalBuilder value, Type type, string name, string ns) 582void WrapNullableObject(LocalBuilder innerValue, LocalBuilder outerValue, int nullables) 646LocalBuilder size = ilg.DeclareLocal(Globals.TypeOfInt, "arraySize"); 650LocalBuilder objectId = ilg.DeclareLocal(Globals.TypeOfString, "objectIdRead"); 663LocalBuilder growingCollection = null; 670LocalBuilder i = ilg.DeclareLocal(Globals.TypeOfInt, "i"); 675LocalBuilder value = ReadCollectionItem(collectionContract, itemType, itemName, itemNs); 711LocalBuilder j = ilg.DeclareLocal(Globals.TypeOfInt, "j"); 715LocalBuilder itemValue = ReadCollectionItem(collectionContract, itemType, itemName, itemNs); 756LocalBuilder size = ilg.DeclareLocal(Globals.TypeOfInt, "arraySize"); 766LocalBuilder i = ilg.DeclareLocal(Globals.TypeOfInt, "i"); 771LocalBuilder value = ReadCollectionItem(collectionContract, itemType, itemName, itemNs); 797bool TryReadPrimitiveArray(Type type, Type itemType, LocalBuilder size) 844LocalBuilder ReadCollectionItem(CollectionDataContract collectionContract, Type itemType, string itemName, string itemNs) 849LocalBuilder value = ilg.DeclareLocal(itemType, "valueRead"); 865void StoreCollectionValue(LocalBuilder collection, LocalBuilder value, CollectionDataContract collectionContract) 876LocalBuilder pairKey = ilg.DeclareLocal(keyMember.MemberType, keyMember.Name); 877LocalBuilder pairValue = ilg.DeclareLocal(valueMember.MemberType, valueMember.Name); 897void HandleUnexpectedItemInCollection(LocalBuilder iterator)
System\Runtime\Serialization\XmlFormatWriterGenerator.cs (30)
93LocalBuilder objectLocal; 96LocalBuilder contractNamespacesLocal; 97LocalBuilder memberNamesLocal; 98LocalBuilder childElementNamespacesLocal; 285LocalBuilder extensionDataLocal = ilg.DeclareLocal(Globals.TypeOfExtensionDataObject, "extensionData"); 299int WriteMembers(ClassDataContract classContract, LocalBuilder extensionDataLocal, ClassDataContract derivedMostClassContract) 304LocalBuilder namespaceLocal = ilg.DeclareLocal(typeof(XmlDictionaryString), "ns"); 320LocalBuilder memberValue = null; 365private LocalBuilder LoadMemberValue(DataMember member) 369LocalBuilder memberValue = ilg.DeclareLocal(member.MemberType, member.Name + "Value"); 376LocalBuilder itemNamespace = ilg.DeclareLocal(typeof(XmlDictionaryString), "itemNamespace"); 381LocalBuilder itemName = ilg.DeclareLocal(typeof(XmlDictionaryString), "itemName"); 397LocalBuilder i = ilg.DeclareLocal(Globals.TypeOfInt, "i"); 408LocalBuilder memberValue = ilg.DeclareLocal(itemType, "memberValue"); 494LocalBuilder currentValue = ilg.DeclareLocal(elementType, "currentValue"); 496LocalBuilder enumerator = ilg.DeclareLocal(enumeratorType, "enumerator"); 540bool TryWritePrimitive(Type type, LocalBuilder value, MemberInfo memberInfo, LocalBuilder arrayItemIndex, LocalBuilder ns, LocalBuilder name, int nameIndex) 586bool TryWritePrimitiveArray(Type type, Type itemType, LocalBuilder value, LocalBuilder itemName, LocalBuilder itemNamespace) 631void WriteValue(LocalBuilder memberValue, bool writeXsiType) 706void InternalSerialize(MethodInfo methodInfo, LocalBuilder memberValue, Type memberType, bool writeXsiType) 712LocalBuilder typeHandleValue = ilg.DeclareLocal(typeof(RuntimeTypeHandle), "typeHandleValue"); 725LocalBuilder UnwrapNullableObject(LocalBuilder memberValue)// Leaves !HasValue on stack 758void WriteStartElement(Type type, XmlDictionaryString ns, LocalBuilder namespaceLocal, LocalBuilder nameLocal, int nameIndex)
System.ServiceModel (34)
System\ServiceModel\Dispatcher\CodeGenerator.cs (17)
204else if (var is LocalBuilder) 205return ((LocalBuilder)var).LocalType; 210internal LocalBuilder DeclareLocal(Type type, string name) 215internal LocalBuilder DeclareLocal(Type type, string name, bool isPinned) 217LocalBuilder local = ilGen.DeclareLocal(type, isPinned); 334else if (obj is LocalBuilder) 335Ldloc((LocalBuilder)obj); 344else if (var is LocalBuilder) 345Stloc((LocalBuilder)var); 354else if (obj is LocalBuilder) 355LdlocAddress((LocalBuilder)obj); 541internal void LdlocAddress(LocalBuilder localBuilder) 549internal void Ldloc(LocalBuilder localBuilder) 557internal void Stloc(LocalBuilder local) 620internal void Ldloca(LocalBuilder localBuilder) 1101LocalBuilder topValue = DeclareLocal(typeof(string), "topValue"); 1134internal void LoadZeroValueIntoLocal(Type type, LocalBuilder local)
System\ServiceModel\Dispatcher\InvokerUtil.cs (17)
106LocalBuilder instanceLocal = ilg.DeclareLocal(type, type.Name + "Instance"); 149LocalBuilder returnLocal = ilg.DeclareLocal(ilg.CurrentMethod.ReturnType, "returnParam"); 150LocalBuilder[] parameterLocals = new LocalBuilder[parameters.Length]; 195LocalBuilder returnLocal = ilg.DeclareLocal(ilg.CurrentMethod.ReturnType, "returnParam"); 196LocalBuilder[] parameterLocals = new LocalBuilder[parameters.Length - 2]; 241LocalBuilder returnLocal = ilg.DeclareLocal(ilg.CurrentMethod.ReturnType, "returnParam"); 242LocalBuilder[] parameterLocals = new LocalBuilder[parameters.Length - 1]; 256void DeclareParameterLocals(ParameterInfo[] parameters, LocalBuilder[] parameterLocals) 264void LoadInputParametersIntoLocals(ParameterInfo[] parameters, LocalBuilder[] parameterLocals, ArgBuilder inputParametersArg, out int inputParameterCount) 294void LoadZeroValueInputParametersIntoLocals(ParameterInfo[] parameters, LocalBuilder[] parameterLocals) 311LocalBuilder targetLocal = ilg.DeclareLocal(targetType, "target"); 317void LoadParameters(ParameterInfo[] parameters, LocalBuilder[] parameterLocals) 328void InvokeMethod(MethodInfo method, LocalBuilder returnLocal) 338void LoadOutputParametersIntoArray(ParameterInfo[] parameters, LocalBuilder[] parameterLocals, ArgBuilder outputParametersArg, out int outputParameterCount)
System.Web.Extensions (1)
UI\WebControls\Dynamic.cs (1)
369LocalBuilder other = gen.DeclareLocal(tb);
System.Xml (106)
System\Xml\Serialization\CodeGenerator.cs (43)
54Dictionary<Tuple<Type, string>, Queue<LocalBuilder>> freeLocals; 99this.freeLocals = new Dictionary<Tuple<Type, string>, Queue<LocalBuilder>>(); 142internal LocalBuilder GetLocal(string name) { 147internal LocalBuilder retLocal; 149internal LocalBuilder ReturnLocal { 160Dictionary<Type, LocalBuilder> TmpLocals = new Dictionary<Type, LocalBuilder>(); 161internal LocalBuilder GetTempLocal(Type type) { 162LocalBuilder localTmp; 173else if (var is LocalBuilder) 174return ((LocalBuilder)var).LocalType; 188LocalBuilder loc; 227private bool TryDequeueLocal(Type type, string name, out LocalBuilder local) { 232Queue<LocalBuilder> freeLocalQueue; 248internal LocalBuilder DeclareLocal(Type type, string name) { 250LocalBuilder local; 260internal LocalBuilder DeclareOrGetLocal(Type type, string name) { 261LocalBuilder local; 288internal object For(LocalBuilder local, object start, object end) { 787LocalBuilder tmpLoc = GetTempLocal(memberType); 872else if (obj is LocalBuilder) 873Ldloc((LocalBuilder)obj); 910else if (obj is LocalBuilder) 911LdlocAddress((LocalBuilder)obj); 1203internal void LdlocAddress(LocalBuilder localBuilder) { 1210internal void Ldloc(LocalBuilder localBuilder) { 1216LocalBuilder local = currentScope[name]; 1221LocalBuilder local = null; 1229internal void Stloc(LocalBuilder local) { 1235LocalBuilder local = currentScope[name]; 1300internal void Ldloca(LocalBuilder localBuilder) { 2457LocalBuilder indexVar; 2462internal ForState(LocalBuilder indexVar, Label beginLabel, Label testLabel, object end) { 2469internal LocalBuilder Index { 2529readonly Dictionary<string, LocalBuilder> locals; 2533this.locals = new Dictionary<string, LocalBuilder>(); 2540public void Add(string key, LocalBuilder value) { 2548public bool TryGetValue(string key, out LocalBuilder value) { 2561public LocalBuilder this[string key] { 2563LocalBuilder value; 2572public void AddToFreeLocals(Dictionary<Tuple<Type, string>, Queue<LocalBuilder>> freeLocals) { 2575Queue<LocalBuilder> freeLocalQueue; 2582freeLocalQueue = new Queue<LocalBuilder>();
System\Xml\Serialization\SourceInfo.cs (1)
109LocalBuilder localTmp = ILG.GetTempLocal(eType);
System\Xml\Serialization\XmlSerializationILGen.cs (1)
161LocalBuilder _tmpLoc = ilg.DeclareLocal(typeof(Hashtable), "_tmp");
System\Xml\Serialization\XmlSerializationReaderILGen.cs (41)
434LocalBuilder localP = ilg.DeclareLocal(typeof(object[]), "p"); 633LocalBuilder arrayLoc = ilg.GetLocal(arrayName); 654LocalBuilder oLoc = ilg.DeclareLocal(typeof(object), "o"); 752LocalBuilder locVals = ilg.GetLocal("vals"); 753LocalBuilder locI = ilg.GetLocal("i"); 804LocalBuilder locVals = ilg.GetLocal("vals"); 805LocalBuilder locI = ilg.GetLocal("i"); 816LocalBuilder locVals = ilg.GetLocal("vals"); 817LocalBuilder locI = ilg.GetLocal("i"); 934LocalBuilder locVals = ilg.GetLocal("vals"); 935LocalBuilder locI = ilg.GetLocal("i"); 1006LocalBuilder hLoc = ilg.DeclareLocal(typeof(Hashtable), "h"); 1098LocalBuilder localTmp = ilg.GetTempLocal(typeof(string)); 1226LocalBuilder eLoc = ilg.DeclareOrGetLocal(typeof(object), "e"); 1285LocalBuilder aLoc = ilg.DeclareLocal(mapping.TypeDesc.Type, aVar); 1315LocalBuilder oLoc = ilg.DeclareLocal(nullableMapping.TypeDesc.Type, "o"); 1373LocalBuilder locXsiType = ilg.DeclareLocal(typeof(XmlQualifiedName), "xsiType"); 1374LocalBuilder locIsNull = ilg.DeclareLocal(typeof(Boolean), "isNull"); 1556LocalBuilder oLoc = ilg.GetLocal("o"); 1750LocalBuilder sLoc = ilg.GetLocal(source); 1843void WriteAttributes(Member[] members, Member anyAttribute, string elseCall, LocalBuilder firstParam) { 2017LocalBuilder localAttr = ilg.DeclareOrGetLocal(typeof(XmlAttribute), "attr"); 2104LocalBuilder attrLoc = ilg.GetLocal("attr"); 2125LocalBuilder locListValues = ilg.DeclareOrGetLocal(typeof(string), "listValues"); 2126LocalBuilder locVals = ilg.DeclareOrGetLocal(typeof(string[]), "vals"); 2156LocalBuilder localI = ilg.DeclareOrGetLocal(typeof(Int32), "i"); 2453LocalBuilder tmpLoc = ilg.GetLocal("tmp"); 2703LocalBuilder arrayLoc = ilg.GetLocal(member.ArrayName); 2739LocalBuilder localA = ilg.GetLocal(match.Groups["locA1"].Value); 2740LocalBuilder localI = ilg.GetLocal(match.Groups["locI1"].Value); 2772LocalBuilder localA = ilg.GetLocal(source.Substring(0, index)); 2800Debug.Assert(elementType != null && variable is LocalBuilder); 2803ilg.Stloc((LocalBuilder)variable); 2833LocalBuilder localA = ilg.GetLocal(source.Substring(0, index)); 3236LocalBuilder tserLoc = ilg.DeclareOrGetLocal(typeof(XmlQualifiedName), "tser"); 3303LocalBuilder tserLoc = ilg.GetLocal("tser"); 3478LocalBuilder paramsRead = ilg.DeclareLocal(typeof(Boolean[]), "paramsRead"); 3487LocalBuilder loc = ilg.DeclareLocal( 3621LocalBuilder localO = ilg.GetLocal(match.Groups["o"].Value); 3633LocalBuilder localO = ilg.GetLocal(match.Groups["o"].Value); 3645LocalBuilder localO = ilg.GetLocal(match.Groups["o"].Value);
System\Xml\Serialization\XmlSerializationWriterILGen.cs (20)
359LocalBuilder pLengthLoc = ilg.DeclareLocal(typeof(int), "pLength"); 567LocalBuilder sLoc = ilg.DeclareLocal(typeof(string), "s"); 579LocalBuilder localTmp = ilg.DeclareLocal(mapping.TypeDesc.Type, "localTmp"); 606LocalBuilder strArray = ilg.DeclareLocal(typeof(String[]), "strArray"); 617LocalBuilder longArray = ilg.DeclareLocal(typeof(long[]), "longArray"); 676LocalBuilder numLoc = ilg.DeclareLocal(typeof(Int64), "num"); 922LocalBuilder tLoc = ilg.DeclareLocal(typeof(Type), "t"); 1148LocalBuilder sbLoc = ilg.DeclareOrGetLocal(typeof(StringBuilder), "sb"); 1166LocalBuilder localI = ilg.DeclareOrGetLocal(typeof(Int32), iVar); 1170LocalBuilder localI = ilg.DeclareOrGetLocal(typeof(Int32), iVar); 1379LocalBuilder aLoc = ilg.GetLocal(aName); 1395LocalBuilder cLoc = ilg.GetLocal(cName); 1440LocalBuilder eLoc = ilg.DeclareLocal(typeof(IEnumerator), "e"); 1501LocalBuilder localI = ilg.DeclareOrGetLocal(typeof(Int32), iPlusArrayName); 1613LocalBuilder elemLoc = ilg.DeclareLocal(typeof(XmlElement), "elem"); 2120LocalBuilder local = ilg.GetLocal(source); 2301LocalBuilder tmpLoc = ilg.GetTempLocal(type); 2370LocalBuilder localA = initValue.ILG.DeclareOrGetLocal(localType, variableName); 2402LocalBuilder sLoc = ilg.DeclareOrGetLocal(type, source); 2421LocalBuilder local = initValue.ILG.DeclareOrGetLocal(localType, variableName);