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

◆ GetBox()

IStrongBox System.Runtime.CompilerServices.RuntimeOps.ExpressionQuoter.GetBox ( ParameterExpression variable)
inlineprivate

Definition at line 200 of file RuntimeOps.cs.

201 {
203 {
205 {
206 return null;
207 }
208 }
210 object[] array = _locals;
211 while (true)
212 {
214 {
215 return (IStrongBox)array[value];
216 }
218 if (hoistedLocals == null)
219 {
220 break;
221 }
223 }
225 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
static object[] GetParent(object[] locals)
readonly Stack< HashSet< ParameterExpression > > _shadowedVars
Definition RuntimeOps.cs:89

References System.Runtime.CompilerServices.RuntimeOps.ExpressionQuoter._locals, System.Runtime.CompilerServices.RuntimeOps.ExpressionQuoter._scope, System.Runtime.CompilerServices.RuntimeOps.ExpressionQuoter._shadowedVars, System.array, System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Linq.Expressions.Compiler.HoistedLocals.GetParent(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), System.Dynamic.Utils.ContractUtils.Unreachable, and System.value.

Referenced by System.Runtime.CompilerServices.RuntimeOps.ExpressionQuoter.VisitParameter(), and System.Runtime.CompilerServices.RuntimeOps.ExpressionQuoter.VisitRuntimeVariables().