Terraria v1.4.4.9
Terraria source code documentation
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Macros

◆ HoistedLocals()

System.Linq.Expressions.Compiler.HoistedLocals.HoistedLocals ( HoistedLocals parent,
ReadOnlyCollection< ParameterExpression > vars )
inlinepackage

Definition at line 20 of file HoistedLocals.cs.

21 {
22 if (parent != null)
23 {
24 vars = vars.AddFirst(parent.SelfVariable);
25 }
27 for (int i = 0; i < vars.Count; i++)
28 {
29 dictionary.Add(vars[i], i);
30 }
31 SelfVariable = Expression.Variable(typeof(object[]), null);
32 Parent = parent;
35 }
readonly ParameterExpression SelfVariable
readonly ReadOnlyCollection< ParameterExpression > Variables
readonly ReadOnlyDictionary< Expression, int > Indexes
static ParameterExpression Variable(Type type)

References System.Collections.Generic.Dictionary< TKey, TValue >.Count, System.dictionary, System.Linq.Expressions.Compiler.HoistedLocals.Indexes, System.Linq.Expressions.Compiler.HoistedLocals.Parent, System.Linq.Expressions.Compiler.HoistedLocals.SelfVariable, System.Linq.Expressions.Expression< TDelegate >.Variable(), and System.Linq.Expressions.Compiler.HoistedLocals.Variables.