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);
		}
Пример #2
0
 public virtual void Visit(ArrayAccessValue operand)
 {
     operand.Parent().Accept(this);
     operand.Index().Accept(this);
 }
		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);
		}