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

◆ EmitMemberInit() [2/2]

void System.Linq.Expressions.Compiler.LambdaCompiler.EmitMemberInit ( ReadOnlyCollection< MemberBinding > bindings,
bool keepOnStack,
Type objectType )
inlineprivate

Definition at line 1866 of file LambdaCompiler.cs.

1867 {
1868 int count = bindings.Count;
1869 if (count == 0)
1870 {
1871 if (!keepOnStack)
1872 {
1874 }
1875 return;
1876 }
1877 for (int i = 0; i < count; i++)
1878 {
1879 if (keepOnStack || i < count - 1)
1880 {
1882 }
1883 EmitBinding(bindings[i], objectType);
1884 }
1885 }
void EmitBinding(MemberBinding binding, Type objectType)
virtual void Emit(OpCode opcode)
static readonly OpCode Pop
Definition OpCodes.cs:79
static readonly OpCode Dup
Definition OpCodes.cs:77

References System.Linq.Expressions.Compiler.LambdaCompiler._ilg, System.Linq.count, System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.Reflection.Emit.OpCodes.Dup, System.Reflection.Emit.ILGenerator.Emit(), System.Linq.Expressions.Compiler.LambdaCompiler.EmitBinding(), and System.Reflection.Emit.OpCodes.Pop.