Terraria
v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches
InstructionArray.cs
Go to the documentation of this file.
1
using
System.Collections.Generic
;
2
using
System.Diagnostics
;
3
using
System.Dynamic.Utils
;
4
5
namespace
System.Linq.Expressions.Interpreter
;
6
7
[
DebuggerTypeProxy
(
typeof
(DebugView))]
8
internal
readonly
struct
InstructionArray
9
{
10
internal
sealed
class
DebugView
11
{
12
private
readonly
InstructionArray
_array
;
13
14
[
DebuggerBrowsable
(
DebuggerBrowsableState
.RootHidden)]
15
public
InstructionList
.
DebugView
.
InstructionView
[]
A0
=>
GetInstructionViews
(
includeDebugCookies
:
true
);
16
17
public
DebugView
(
InstructionArray
array
)
18
{
19
ContractUtils
.
RequiresNotNull
(
array
,
"array"
);
20
_array
=
array
;
21
}
22
23
public
InstructionList
.
DebugView
.
InstructionView
[]
GetInstructionViews
(
bool
includeDebugCookies
=
false
)
24
{
25
return
InstructionList
.
DebugView
.
GetInstructionViews
(
_array
.
Instructions
,
_array
.
Objects
, (
int
index
) =>
_array
.
Labels
[
index
].
Index
,
includeDebugCookies
?
_array
.
DebugCookies
:
null
);
26
}
27
}
28
29
internal
readonly
int
MaxStackDepth
;
30
31
internal
readonly
int
MaxContinuationDepth
;
32
33
internal
readonly
Instruction
[]
Instructions
;
34
35
internal
readonly
object
[]
Objects
;
36
37
internal
readonly
RuntimeLabel
[]
Labels
;
38
39
internal
readonly
List<KeyValuePair<int, object>
>
DebugCookies
;
40
41
internal
InstructionArray
(
int
maxStackDepth
,
int
maxContinuationDepth
,
Instruction
[]
instructions
,
object
[]
objects
,
RuntimeLabel
[]
labels
,
List
<
KeyValuePair<int, object>
>
debugCookies
)
42
{
43
MaxStackDepth
=
maxStackDepth
;
44
MaxContinuationDepth
=
maxContinuationDepth
;
45
Instructions
=
instructions
;
46
DebugCookies
=
debugCookies
;
47
Objects
=
objects
;
48
Labels
=
labels
;
49
}
50
}
System.Collections.Generic.Dictionary
Definition
Dictionary.cs:14
System.Collections.Generic.List
Definition
List.cs:12
System.Dynamic.Utils.ContractUtils.RequiresNotNull
static void RequiresNotNull(object value, string paramName)
Definition
ContractUtils.cs:20
System.Dynamic.Utils.ContractUtils
Definition
ContractUtils.cs:8
System.Linq.Expressions.Interpreter.InstructionArray.DebugView.A0
InstructionList.DebugView.InstructionView[] A0
Definition
InstructionArray.cs:15
System.Linq.Expressions.Interpreter.InstructionArray.DebugView._array
readonly InstructionArray _array
Definition
InstructionArray.cs:12
System.Linq.Expressions.Interpreter.InstructionArray.DebugView.DebugView
DebugView(InstructionArray array)
Definition
InstructionArray.cs:17
System.Linq.Expressions.Interpreter.InstructionArray.DebugView.GetInstructionViews
InstructionList.DebugView.InstructionView[] GetInstructionViews(bool includeDebugCookies=false)
Definition
InstructionArray.cs:23
System.Linq.Expressions.Interpreter.InstructionArray.DebugView
Definition
InstructionArray.cs:11
System.Linq.Expressions.Interpreter.InstructionList.DebugView.GetInstructionViews
InstructionView[] GetInstructionViews(bool includeDebugCookies=false)
Definition
InstructionList.cs:63
System.Linq.Expressions.Interpreter.InstructionList.DebugView
Definition
InstructionList.cs:13
System.Linq.Expressions.Interpreter.InstructionList
Definition
InstructionList.cs:11
System.Linq.Expressions.Interpreter.Instruction
Definition
Instruction.cs:6
System.Collections.Generic
Definition
IHashKeyCollection.cs:1
System.Diagnostics.DebuggerBrowsableState
DebuggerBrowsableState
Definition
DebuggerBrowsableState.cs:4
System.Diagnostics
Definition
AggregationManager.cs:6
System.Dynamic.Utils
Definition
CacheDict.cs:4
System.Linq.Expressions.Interpreter
Definition
ActionCallInstruction.cs:3
System.Linq.ExceptionArgument.index
@ index
System.ExceptionArgument.array
@ array
System.Linq.Expressions.Interpreter.InstructionArray.DebugCookies
readonly List< KeyValuePair< int, object > > DebugCookies
Definition
InstructionArray.cs:39
System.Linq.Expressions.Interpreter.InstructionArray.InstructionArray
InstructionArray(int maxStackDepth, int maxContinuationDepth, Instruction[] instructions, object[] objects, RuntimeLabel[] labels, List< KeyValuePair< int, object > > debugCookies)
Definition
InstructionArray.cs:41
System.Linq.Expressions.Interpreter.InstructionArray.MaxStackDepth
readonly int MaxStackDepth
Definition
InstructionArray.cs:29
System.Linq.Expressions.Interpreter.InstructionArray.MaxContinuationDepth
readonly int MaxContinuationDepth
Definition
InstructionArray.cs:31
System.Linq.Expressions.Interpreter.InstructionArray.Labels
readonly RuntimeLabel[] Labels
Definition
InstructionArray.cs:37
System.Linq.Expressions.Interpreter.InstructionArray.Instructions
readonly Instruction[] Instructions
Definition
InstructionArray.cs:33
System.Linq.Expressions.Interpreter.InstructionArray.Objects
readonly object[] Objects
Definition
InstructionArray.cs:35
System.Linq.Expressions.Interpreter.InstructionArray
Definition
InstructionArray.cs:9
System.Linq.Expressions.Interpreter.InstructionList.DebugView.InstructionView
Definition
InstructionList.cs:16
System.Linq.Expressions.Interpreter.RuntimeLabel.Index
readonly int Index
Definition
RuntimeLabel.cs:8
System.Linq.Expressions.Interpreter.RuntimeLabel
Definition
RuntimeLabel.cs:7
source
System.Linq.Expressions
System.Linq.Expressions.Interpreter
InstructionArray.cs
Generated by
1.10.0