Terraria v1.4.4.9
Terraria source code documentation
Loading...
Searching...
No Matches

◆ Create()

static GotoInstruction System.Linq.Expressions.Interpreter.GotoInstruction.Create ( int labelIndex,
bool hasResult,
bool hasValue,
bool labelTargetGetsValue )
inlinestaticpackage

Definition at line 47 of file GotoInstruction.cs.

48 {
49 if (labelIndex < 32)
50 {
51 int num = (8 * labelIndex) | (labelTargetGetsValue ? 4 : 0) | (hasResult ? 2 : 0) | (hasValue ? 1 : 0);
52 return s_cache[num] ?? (s_cache[num] = new GotoInstruction(labelIndex, hasResult, hasValue, labelTargetGetsValue));
53 }
54 return new GotoInstruction(labelIndex, hasResult, hasValue, labelTargetGetsValue);
55 }
GotoInstruction(int targetIndex, bool hasResult, bool hasValue, bool labelTargetGetsValue)

References System.Linq.Expressions.Interpreter.GotoInstruction.GotoInstruction(), and System.Linq.Expressions.Interpreter.GotoInstruction.s_cache.

Referenced by System.Linq.Expressions.Interpreter.InstructionList.EmitGoto().