Пример #1
0
        public static void get_Item(IMethod method, AbcCode code)
        {
            var type = method.DeclaringType.GetTypeArgument(0);

            code.LoadThis();
            code.GetLocal(1);
            code.GetArrayElem(type, true);
            code.ReturnValue();
        }
Пример #2
0
        public IEnumerable <IInstruction> GetArrayElem(IType elemType)
        {
            //stack [arr, index]
            EnsureType(elemType);
            var code = new AbcCode(_abc);

            code.GetArrayElem(elemType, false);
            return(code);
        }