Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
IndexedBranchInstruction.cs
Go to the documentation of this file.
1
using
System.Collections.Generic
;
2
3
namespace
System.Linq.Expressions.Interpreter
;
4
5
internal
abstract
class
IndexedBranchInstruction
:
Instruction
6
{
7
internal
readonly
int
_labelIndex
;
8
9
public
IndexedBranchInstruction
(
int
labelIndex
)
10
{
11
_labelIndex
=
labelIndex
;
12
}
13
14
public
RuntimeLabel
GetLabel
(
InterpretedFrame
frame)
15
{
16
return
frame.
Interpreter
.
_labels
[
_labelIndex
];
17
}
18
19
public
override
string
ToDebugString
(
int
instructionIndex
,
object
cookie
,
Func<int, int>
labelIndexer
,
IReadOnlyList<object>
objects
)
20
{
21
int
num =
labelIndexer
(
_labelIndex
);
22
return
ToString
() + ((num !=
int
.MinValue) ? (
" -> "
+ num) :
""
);
23
}
24
25
public
override
string
ToString
()
26
{
27
return
InstructionName
+
"["
+
_labelIndex
+
"]"
;
28
}
29
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Linq.Expressions.Interpreter.IndexedBranchInstruction.IndexedBranchInstruction
IndexedBranchInstruction(int labelIndex)
Definition
IndexedBranchInstruction.cs:9
System.Linq.Expressions.Interpreter.IndexedBranchInstruction.ToString
override string ToString()
Definition
IndexedBranchInstruction.cs:25
System.Linq.Expressions.Interpreter.IndexedBranchInstruction._labelIndex
readonly int _labelIndex
Definition
IndexedBranchInstruction.cs:7
System.Linq.Expressions.Interpreter.IndexedBranchInstruction.ToDebugString
override string ToDebugString(int instructionIndex, object cookie, Func< int, int > labelIndexer, IReadOnlyList< object > objects)
Definition
IndexedBranchInstruction.cs:19
System.Linq.Expressions.Interpreter.IndexedBranchInstruction.GetLabel
RuntimeLabel GetLabel(InterpretedFrame frame)
Definition
IndexedBranchInstruction.cs:14
System.Linq.Expressions.Interpreter.IndexedBranchInstruction
Definition
IndexedBranchInstruction.cs:6
System.Linq.Expressions.Interpreter.Instruction.InstructionName
string InstructionName
Definition
Instruction.cs:19
System.Linq.Expressions.Interpreter.Instruction
Definition
Instruction.cs:6
System.Linq.Expressions.Interpreter.InterpretedFrame.Interpreter
readonly Interpreter Interpreter
Definition
InterpretedFrame.cs:11
System.Linq.Expressions.Interpreter.InterpretedFrame
Definition
InterpretedFrame.cs:7
System.Linq.Expressions.Interpreter.Interpreter._labels
readonly RuntimeLabel[] _labels
Definition
Interpreter.cs:14
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Linq.Expressions.Interpreter
Definition
ActionCallInstruction.cs:3
System.Linq.Expressions.Interpreter.RuntimeLabel
Definition
RuntimeLabel.cs:7
source
System.Linq.Expressions
System.Linq.Expressions.Interpreter
IndexedBranchInstruction.cs
Generated by
1.10.0