public void Visit(ArrayAccessValue operand)
        {
            operand.Parent().Accept(this);
            object parent = _value;

            operand.Index().Accept(this);
            int index = (int)_value;

            _value = Sharpen.Runtime.GetArrayValue(parent, index);
        }
        public virtual void Visit(ArrayAccessValue operand)
        {
            ITypeRef cmpType = DeduceFieldClass(operand.Parent()).ElementType;

            operand.Parent().Accept(this);
            bool outerInArithmetic = _inArithmetic;

            _inArithmetic = true;
            operand.Index().Accept(this);
            _inArithmetic = outerInArithmetic;
            _methodBuilder.LoadArrayElement(cmpType);
            Box(cmpType, !_inArithmetic);
        }
Пример #3
0
 public virtual void Visit(ArrayAccessValue operand)
 {
     operand.Parent().Accept(this);
     operand.Index().Accept(this);
 }
Пример #4
0
 public virtual void Visit(ArrayAccessValue operand)
 {
     operand.Parent().Accept(this);
     _clazz = _clazz.ElementType;
 }
Пример #5
0
 public virtual void Visit(ArrayAccessValue operand)
 {
 }