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

◆ CompileQuoteUnaryExpression()

void System.Linq.Expressions.Interpreter.LightCompiler.CompileQuoteUnaryExpression ( Expression expr)
inlineprivate

Definition at line 2127 of file LightCompiler.cs.

2128 {
2129 UnaryExpression unaryExpression = (UnaryExpression)expr;
2130 QuoteVisitor quoteVisitor = new QuoteVisitor();
2131 quoteVisitor.Visit(unaryExpression.Operand);
2133 foreach (ParameterExpression hoistedParameter in quoteVisitor._hoistedParameters)
2134 {
2137 }
2138 _instructions.Emit(new QuoteInstruction(unaryExpression.Operand, (dictionary.Count > 0) ? dictionary : null));
2139 }
LocalVariable EnsureAvailableForClosure(ParameterExpression expr)
LocalVariable ResolveLocal(ParameterExpression variable)

References System.Linq.Expressions.Interpreter.LightCompiler._instructions, System.dictionary, System.Linq.Expressions.Interpreter.InstructionList.Emit(), System.Linq.Expressions.Interpreter.LightCompiler.EnsureAvailableForClosure(), and System.Linq.Expressions.Interpreter.LightCompiler.ResolveLocal().

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