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

◆ LambdaCompiler() [1/2]

System.Linq.Expressions.Compiler.LambdaCompiler.LambdaCompiler ( AnalyzedTree tree,
LambdaExpression lambda )
inlineprivate

Definition at line 1017 of file LambdaCompiler.cs.

1018 {
1021 DynamicMethod dynamicMethod = new DynamicMethod(lambda.Name ?? ("lambda_method" + num), lambda.ReturnType, parameterTypes, restrictedSkipVisibility: true);
1022 _tree = tree;
1023 _lambda = lambda;
1025 _ilg = dynamicMethod.GetILGenerator();
1026 _hasClosureArgument = true;
1027 _scope = tree.Scopes[lambda];
1028 _boundConstants = tree.Constants[lambda];
1030 }
static Type[] GetParameterTypes(LambdaExpression lambda, Type firstType)
static int Increment(ref int location)

References System.Linq.Expressions.Compiler.LambdaCompiler._boundConstants, System.Linq.Expressions.Compiler.LambdaCompiler._hasClosureArgument, System.Linq.Expressions.Compiler.LambdaCompiler._ilg, System.Linq.Expressions.Compiler.LambdaCompiler._lambda, System.Linq.Expressions.Compiler.LambdaCompiler._method, System.Linq.Expressions.Compiler.LambdaCompiler._scope, System.Linq.Expressions.Compiler.LambdaCompiler._tree, System.Linq.Expressions.Compiler.LambdaCompiler.GetParameterTypes(), System.Threading.Interlocked.Increment(), System.Linq.Expressions.Compiler.LambdaCompiler.InitializeMethod(), and System.Linq.Expressions.Compiler.LambdaCompiler.s_lambdaMethodIndex.

Referenced by System.Linq.Expressions.Compiler.LambdaCompiler.Compile(), System.Linq.Expressions.Compiler.LambdaCompiler.EmitDelegateConstruction(), and System.Linq.Expressions.Compiler.LambdaCompiler.EmitInlinedInvoke().