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

◆ Run()

override int System.Linq.Expressions.Interpreter.NewInstruction.Run ( InterpretedFrame frame)
inline

Definition at line 24 of file NewInstruction.cs.

25 {
26 int num = frame.StackIndex - _argumentCount;
27 object[] args = GetArgs(frame, num);
28 object obj;
29 try
30 {
31 obj = _constructor.Invoke(args);
32 }
34 {
35 ExceptionHelpers.UnwrapAndRethrow(exception);
37 }
38 frame.Data[num] = obj;
39 frame.StackIndex = num + 1;
40 return 1;
41 }
object[] GetArgs(InterpretedFrame frame, int first)
object Invoke(object?[]? parameters)

References System.Linq.Expressions.Interpreter.NewInstruction._argumentCount, System.Linq.Expressions.Interpreter.NewInstruction._constructor, System.Linq.Expressions.Interpreter.InterpretedFrame.Data, System.exception, System.Linq.Expressions.Interpreter.NewInstruction.GetArgs(), System.Reflection.ConstructorInfo.Invoke(), System.obj, System.Dynamic.Utils.ContractUtils.Unreachable, and System.Linq.Expressions.Interpreter.ExceptionHelpers.UnwrapAndRethrow().