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

◆ ResolveVariable() [2/2]

Storage System.Linq.Expressions.Compiler.CompilerScope.ResolveVariable ( ParameterExpression variable,
HoistedLocals hoistedLocals )
inlineprivate

Definition at line 344 of file CompilerScope.cs.

345 {
347 {
349 {
350 return value;
351 }
352 if (compilerScope.IsMethod)
353 {
354 break;
355 }
356 }
357 for (HoistedLocals hoistedLocals2 = hoistedLocals; hoistedLocals2 != null; hoistedLocals2 = hoistedLocals2.Parent)
358 {
360 {
361 return new ElementBoxStorage(ResolveVariable(hoistedLocals2.SelfVariable, hoistedLocals), value2, variable);
362 }
363 }
364 throw Error.UndefinedVariable(variable.Name, variable.Type, CurrentLambdaName);
365 }
bool TryGetValue(TKey key, [MaybeNullWhen(false)] out TValue value)
Storage ResolveVariable(ParameterExpression variable)

References System.Linq.Expressions.Compiler.CompilerScope.CurrentLambdaName, System.Linq.Expressions.Compiler.CompilerScope.ResolveVariable(), System.Collections.Generic.Dictionary< TKey, TValue >.TryGetValue(), System.Linq.Expressions.Error.UndefinedVariable(), and System.value.