Ejemplo n.º 1
0
		override public Expression DoResolveLValue (EmitContext ec, Expression right_side)
		{
			VariableInfo vi = VariableInfo;

			if (ec.DoFlowAnalysis)
				ec.SetVariableAssigned (vi);

			Expression e = DoResolve (ec);

			if (e == null)
				return null;

			if (is_readonly){
				Error (1604, "cannot assign to `" + Name + "' because it is readonly");
				return null;
			}
			
			return this;
		}