Example #1
0
        internal ConversionOpcode(Emit.OpCode opcode) : base(opcode)
        {
            var match = nameRegex.Match(opcode.Name);

            targetDataType    = DataTypeEnum.TryParseNameInOpcode(match.Groups[2].Value).Value;
            isSourceUnsigned  = match.Groups[3].Success;
            isOverflowChecked = match.Groups[1].Success;
        }
Example #2
0
        internal ElementReferenceOpcode(Emit.OpCode opcode) : base(opcode)
        {
            string name     = opcode.Name;
            int    dotIndex = name.LastIndexOf('.');

            if (dotIndex >= 0)
            {
                dataType = DataTypeEnum.TryParseNameInOpcode(name.Substring(dotIndex + 1));
            }
        }