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

◆ Create()

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

Definition at line 177 of file LeftShiftInstruction.cs.

178 {
179 return type.GetNonNullableType().GetTypeCode() switch
180 {
181 TypeCode.SByte => s_SByte ?? (s_SByte = new LeftShiftSByte()),
182 TypeCode.Int16 => s_Int16 ?? (s_Int16 = new LeftShiftInt16()),
183 TypeCode.Int32 => s_Int32 ?? (s_Int32 = new LeftShiftInt32()),
184 TypeCode.Int64 => s_Int64 ?? (s_Int64 = new LeftShiftInt64()),
185 TypeCode.Byte => s_Byte ?? (s_Byte = new LeftShiftByte()),
186 TypeCode.UInt16 => s_UInt16 ?? (s_UInt16 = new LeftShiftUInt16()),
187 TypeCode.UInt32 => s_UInt32 ?? (s_UInt32 = new LeftShiftUInt32()),
188 TypeCode.UInt64 => s_UInt64 ?? (s_UInt64 = new LeftShiftUInt64()),
189 _ => throw ContractUtils.Unreachable,
190 };
191 }

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

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