Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
BranchFalseInstruction.cs
Go to the documentation of this file.
1
namespace
System.Linq.Expressions.Interpreter
;
2
3
internal
sealed
class
BranchFalseInstruction
:
OffsetInstruction
4
{
5
private
static
Instruction
[]
s_cache
;
6
7
public
override
Instruction
[] Cache
8
{
9
get
10
{
11
if
(
s_cache
==
null
)
12
{
13
s_cache
=
new
Instruction
[32];
14
}
15
return
s_cache
;
16
}
17
}
18
19
public
override
string
InstructionName
=>
"BranchFalse"
;
20
21
public
override
int
ConsumedStack
=> 1;
22
23
public
override
int
Run
(
InterpretedFrame
frame)
24
{
25
if
(!(
bool
)frame.
Pop
())
26
{
27
return
_offset
;
28
}
29
return
1;
30
}
31
}
System.Linq.Expressions.Interpreter.BranchFalseInstruction.Run
override int Run(InterpretedFrame frame)
Definition
BranchFalseInstruction.cs:23
System.Linq.Expressions.Interpreter.BranchFalseInstruction.ConsumedStack
override int ConsumedStack
Definition
BranchFalseInstruction.cs:21
System.Linq.Expressions.Interpreter.BranchFalseInstruction.InstructionName
override string InstructionName
Definition
BranchFalseInstruction.cs:19
System.Linq.Expressions.Interpreter.BranchFalseInstruction.s_cache
static Instruction[] s_cache
Definition
BranchFalseInstruction.cs:5
System.Linq.Expressions.Interpreter.BranchFalseInstruction
Definition
BranchFalseInstruction.cs:4
System.Linq.Expressions.Interpreter.Instruction
Definition
Instruction.cs:6
System.Linq.Expressions.Interpreter.InterpretedFrame.Pop
object Pop()
Definition
InterpretedFrame.cs:90
System.Linq.Expressions.Interpreter.InterpretedFrame
Definition
InterpretedFrame.cs:7
System.Linq.Expressions.Interpreter.OffsetInstruction._offset
int _offset
Definition
OffsetInstruction.cs:7
System.Linq.Expressions.Interpreter.OffsetInstruction
Definition
OffsetInstruction.cs:6
System.Linq.Expressions.Interpreter
Definition
ActionCallInstruction.cs:3
source
System.Linq.Expressions
System.Linq.Expressions.Interpreter
BranchFalseInstruction.cs
Generated by
1.10.0