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

◆ Create()

static Instruction System.Linq.Expressions.Interpreter.RightShiftInstruction.Create ( Type type)
inlinestaticinherited

Definition at line 177 of file RightShiftInstruction.cs.

178 {
179 return type.GetNonNullableType().GetTypeCode() switch
180 {
181 TypeCode.SByte => s_SByte ?? (s_SByte = new RightShiftSByte()),
182 TypeCode.Int16 => s_Int16 ?? (s_Int16 = new RightShiftInt16()),
183 TypeCode.Int32 => s_Int32 ?? (s_Int32 = new RightShiftInt32()),
184 TypeCode.Int64 => s_Int64 ?? (s_Int64 = new RightShiftInt64()),
185 TypeCode.Byte => s_Byte ?? (s_Byte = new RightShiftByte()),
186 TypeCode.UInt16 => s_UInt16 ?? (s_UInt16 = new RightShiftUInt16()),
187 TypeCode.UInt32 => s_UInt32 ?? (s_UInt32 = new RightShiftUInt32()),
188 TypeCode.UInt64 => s_UInt64 ?? (s_UInt64 = new RightShiftUInt64()),
189 _ => throw ContractUtils.Unreachable,
190 };
191 }

References System.Linq.Expressions.Interpreter.RightShiftInstruction.s_Byte, System.Linq.Expressions.Interpreter.RightShiftInstruction.s_Int16, System.Linq.Expressions.Interpreter.RightShiftInstruction.s_Int32, System.Linq.Expressions.Interpreter.RightShiftInstruction.s_Int64, System.Linq.Expressions.Interpreter.RightShiftInstruction.s_SByte, System.Linq.Expressions.Interpreter.RightShiftInstruction.s_UInt16, System.Linq.Expressions.Interpreter.RightShiftInstruction.s_UInt32, System.Linq.Expressions.Interpreter.RightShiftInstruction.s_UInt64, System.type, and System.Dynamic.Utils.ContractUtils.Unreachable.

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