Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
EnterExceptionHandlerInstruction.cs
Go to the documentation of this file.
1
using
System.Diagnostics.CodeAnalysis
;
2
3
namespace
System.Linq.Expressions.Interpreter
;
4
5
internal
sealed
class
EnterExceptionHandlerInstruction
:
Instruction
6
{
7
internal
static
readonly
EnterExceptionHandlerInstruction
Void
=
new
EnterExceptionHandlerInstruction
(hasValue: false);
8
9
internal
static
readonly
EnterExceptionHandlerInstruction
NonVoid
=
new
EnterExceptionHandlerInstruction
(hasValue: true);
10
11
private
readonly
bool
_hasValue
;
12
13
public
override
string
InstructionName
=>
"EnterExceptionHandler"
;
14
15
public
override
int
ConsumedStack
16
{
17
get
18
{
19
if
(!
_hasValue
)
20
{
21
return
0;
22
}
23
return
1;
24
}
25
}
26
27
public
override
int
ProducedStack
=> 1;
28
29
private
EnterExceptionHandlerInstruction
(
bool
hasValue)
30
{
31
_hasValue
= hasValue;
32
}
33
34
[ExcludeFromCodeCoverage(Justification =
"Known to be a no-op, this instruction is skipped on execution"
)]
35
public
override
int
Run
(
InterpretedFrame
frame)
36
{
37
return
1;
38
}
39
}
System.Linq.Expressions.Interpreter.EnterExceptionHandlerInstruction.EnterExceptionHandlerInstruction
EnterExceptionHandlerInstruction(bool hasValue)
Definition
EnterExceptionHandlerInstruction.cs:29
System.Linq.Expressions.Interpreter.EnterExceptionHandlerInstruction.InstructionName
override string InstructionName
Definition
EnterExceptionHandlerInstruction.cs:13
System.Linq.Expressions.Interpreter.EnterExceptionHandlerInstruction.ConsumedStack
override int ConsumedStack
Definition
EnterExceptionHandlerInstruction.cs:16
System.Linq.Expressions.Interpreter.EnterExceptionHandlerInstruction._hasValue
readonly bool _hasValue
Definition
EnterExceptionHandlerInstruction.cs:11
System.Linq.Expressions.Interpreter.EnterExceptionHandlerInstruction.ProducedStack
override int ProducedStack
Definition
EnterExceptionHandlerInstruction.cs:27
System.Linq.Expressions.Interpreter.EnterExceptionHandlerInstruction.NonVoid
static readonly EnterExceptionHandlerInstruction NonVoid
Definition
EnterExceptionHandlerInstruction.cs:9
System.Linq.Expressions.Interpreter.EnterExceptionHandlerInstruction.Run
override int Run(InterpretedFrame frame)
Definition
EnterExceptionHandlerInstruction.cs:35
System.Linq.Expressions.Interpreter.EnterExceptionHandlerInstruction
Definition
EnterExceptionHandlerInstruction.cs:6
System.Linq.Expressions.Interpreter.Instruction
Definition
Instruction.cs:6
System.Linq.Expressions.Interpreter.InterpretedFrame
Definition
InterpretedFrame.cs:7
System.Diagnostics.CodeAnalysis
Definition
AllowNullAttribute.cs:1
System.Linq.Expressions.Interpreter
Definition
ActionCallInstruction.cs:3
System.Void
Definition
Void.cs:7
source
System.Linq.Expressions
System.Linq.Expressions.Interpreter
EnterExceptionHandlerInstruction.cs
Generated by
1.10.0