Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
LoadObjectInstruction.cs
Go to the documentation of this file.
1
namespace
System.Linq.Expressions.Interpreter
;
2
3
internal
sealed
class
LoadObjectInstruction
:
Instruction
4
{
5
private
readonly
object
_value
;
6
7
public
override
int
ProducedStack
=> 1;
8
9
public
override
string
InstructionName
=>
"LoadObject"
;
10
11
internal
LoadObjectInstruction
(
object
value
)
12
{
13
_value
=
value
;
14
}
15
16
public
override
int
Run
(
InterpretedFrame
frame)
17
{
18
frame.
Data
[frame.
StackIndex
++] =
_value
;
19
return
1;
20
}
21
22
public
override
string
ToString
()
23
{
24
return
"LoadObject("
+ (
_value
??
"null"
)?.
ToString
() +
")"
;
25
}
26
}
System.Linq.Expressions.Interpreter.Instruction
Definition
Instruction.cs:6
System.Linq.Expressions.Interpreter.InterpretedFrame.Data
readonly object[] Data
Definition
InterpretedFrame.cs:23
System.Linq.Expressions.Interpreter.InterpretedFrame.StackIndex
int StackIndex
Definition
InterpretedFrame.cs:27
System.Linq.Expressions.Interpreter.InterpretedFrame
Definition
InterpretedFrame.cs:7
System.Linq.Expressions.Interpreter.LoadObjectInstruction.InstructionName
override string InstructionName
Definition
LoadObjectInstruction.cs:9
System.Linq.Expressions.Interpreter.LoadObjectInstruction.Run
override int Run(InterpretedFrame frame)
Definition
LoadObjectInstruction.cs:16
System.Linq.Expressions.Interpreter.LoadObjectInstruction.ToString
override string ToString()
Definition
LoadObjectInstruction.cs:22
System.Linq.Expressions.Interpreter.LoadObjectInstruction.LoadObjectInstruction
LoadObjectInstruction(object value)
Definition
LoadObjectInstruction.cs:11
System.Linq.Expressions.Interpreter.LoadObjectInstruction.ProducedStack
override int ProducedStack
Definition
LoadObjectInstruction.cs:7
System.Linq.Expressions.Interpreter.LoadObjectInstruction._value
readonly object _value
Definition
LoadObjectInstruction.cs:5
System.Linq.Expressions.Interpreter.LoadObjectInstruction
Definition
LoadObjectInstruction.cs:4
System.Linq.Expressions.Interpreter
Definition
ActionCallInstruction.cs:3
System.ExceptionArgument.value
@ value
source
System.Linq.Expressions
System.Linq.Expressions.Interpreter
LoadObjectInstruction.cs
Generated by
1.10.0