Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
AssignLocalBoxedInstruction.cs
Go to the documentation of this file.
1
using
System.Runtime.CompilerServices
;
2
3
namespace
System.Linq.Expressions.Interpreter
;
4
5
internal
sealed
class
AssignLocalBoxedInstruction
:
LocalAccessInstruction
6
{
7
public
override
int
ConsumedStack
=> 1;
8
9
public
override
int
ProducedStack
=> 1;
10
11
public
override
string
InstructionName
=>
"AssignLocalBox"
;
12
13
internal
AssignLocalBoxedInstruction
(
int
index
)
14
: base(
index
)
15
{
16
}
17
18
public
override
int
Run
(
InterpretedFrame
frame)
19
{
20
IStrongBox
strongBox = (
IStrongBox
)frame.
Data
[
_index
];
21
strongBox.Value = frame.
Peek
();
22
return
1;
23
}
24
}
System.Linq.Expressions.Interpreter.AssignLocalBoxedInstruction.AssignLocalBoxedInstruction
AssignLocalBoxedInstruction(int index)
Definition
AssignLocalBoxedInstruction.cs:13
System.Linq.Expressions.Interpreter.AssignLocalBoxedInstruction.ProducedStack
override int ProducedStack
Definition
AssignLocalBoxedInstruction.cs:9
System.Linq.Expressions.Interpreter.AssignLocalBoxedInstruction.InstructionName
override string InstructionName
Definition
AssignLocalBoxedInstruction.cs:11
System.Linq.Expressions.Interpreter.AssignLocalBoxedInstruction.Run
override int Run(InterpretedFrame frame)
Definition
AssignLocalBoxedInstruction.cs:18
System.Linq.Expressions.Interpreter.AssignLocalBoxedInstruction.ConsumedStack
override int ConsumedStack
Definition
AssignLocalBoxedInstruction.cs:7
System.Linq.Expressions.Interpreter.AssignLocalBoxedInstruction
Definition
AssignLocalBoxedInstruction.cs:6
System.Linq.Expressions.Interpreter.InterpretedFrame.Peek
object Peek()
Definition
InterpretedFrame.cs:100
System.Linq.Expressions.Interpreter.InterpretedFrame.Data
readonly object[] Data
Definition
InterpretedFrame.cs:23
System.Linq.Expressions.Interpreter.InterpretedFrame
Definition
InterpretedFrame.cs:7
System.Linq.Expressions.Interpreter.LocalAccessInstruction._index
readonly int _index
Definition
LocalAccessInstruction.cs:7
System.Linq.Expressions.Interpreter.LocalAccessInstruction
Definition
LocalAccessInstruction.cs:6
System.Runtime.CompilerServices.IStrongBox
Definition
IStrongBox.cs:4
System.Linq.Expressions.Interpreter
Definition
ActionCallInstruction.cs:3
System.Linq.ExceptionArgument.index
@ index
System.Runtime.CompilerServices
Definition
NullablePublicOnlyAttribute.cs:3
source
System.Linq.Expressions
System.Linq.Expressions.Interpreter
AssignLocalBoxedInstruction.cs
Generated by
1.10.0