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

◆ AllocateLocals()

void System.Linq.Expressions.Compiler.CompilerScope.AllocateLocals ( LambdaCompiler lc)
inlineprivate

Definition at line 491 of file CompilerScope.cs.

492 {
493 foreach (ParameterExpression variable in GetVariables())
494 {
496 {
497 Storage value = ((!IsMethod || !lc.Parameters.Contains(variable)) ? ((Storage)new LocalStorage(lc, variable)) : ((Storage)new ArgumentStorage(lc, variable)));
499 }
500 }
501 }
bool ICollection< KeyValuePair< TKey, TValue > >. Contains(KeyValuePair< TKey, TValue > keyValuePair)
void Add(TKey key, TValue value)
IEnumerable< ParameterExpression > GetVariables()
readonly Dictionary< ParameterExpression, VariableStorageKind > Definitions
readonly Dictionary< ParameterExpression, Storage > _locals

References System.Linq.Expressions.Compiler.CompilerScope._locals, System.Collections.Generic.Dictionary< TKey, TValue >.Add(), System.Collections.Generic.Dictionary< TKey, TValue >.Contains(), System.Linq.Expressions.Compiler.CompilerScope.Definitions, System.Linq.Expressions.Compiler.CompilerScope.GetVariables(), System.Linq.Expressions.Compiler.CompilerScope.IsMethod, and System.value.

Referenced by System.Linq.Expressions.Compiler.CompilerScope.Enter().