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