Ejemplo n.º 1
0
        internal static ConversionInstruction GetInstruction(OpCodes opcode)
        {
            ConversionInstruction result = _knownInstructions[(int)opcode];

            if (null == result)
            {
                throw new ArgumentException();
            }
            return(result);
        }
Ejemplo n.º 2
0
 private static void RegisterKnownInstruction(OpCodes opcode, BuiltinLanguageType from, BuiltinLanguageType to)
 {
     _knownInstructions[(int)opcode] = new ConversionInstruction(opcode, from, to);
 }