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

◆ GetVariables() [2/2]

static IReadOnlyList< ParameterExpression > System.Linq.Expressions.Compiler.CompilerScope.GetVariables ( object scope)
inlinestaticprivate

Definition at line 527 of file CompilerScope.cs.

528 {
529 if (scope is LambdaExpression provider)
530 {
531 return new ParameterList(provider);
532 }
533 if (!(scope is BlockExpression blockExpression))
534 {
535 return new ParameterExpression[1] { ((CatchBlock)scope).Variable };
536 }
537 return blockExpression.Variables;
538 }

References System.Linq.Expressions.Expression< TDelegate >.Variable().