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

◆ Box()

void System.Linq.Expressions.Interpreter.LocalVariables.Box ( ParameterExpression variable,
InstructionList instructions )
inlinepackage

Definition at line 77 of file LocalVariables.cs.

78 {
79 VariableScope variableScope = _variables[variable];
81 _variables[variable].Variable.IsBoxed = true;
82 int num = 0;
83 for (int i = variableScope.Start; i < variableScope.Stop && i < instructions.Count; i++)
84 {
85 if (variableScope.ChildScopes != null && variableScope.ChildScopes[num].Start == i)
86 {
87 VariableScope variableScope2 = variableScope.ChildScopes[num];
88 i = variableScope2.Stop;
89 num++;
90 }
91 else
92 {
93 instructions.SwitchToBoxed(variable2.Index, i);
94 }
95 }
96 }
readonly HybridReferenceDictionary< ParameterExpression, VariableScope > _variables

References System.Linq.Expressions.Interpreter.LocalVariables._variables, and System.Collections.Generic.Dictionary< TKey, TValue >.Count.

Referenced by System.Linq.Expressions.Interpreter.LightCompiler.EnsureAvailableForClosure().