Inference/src/TypeSystem/Operations/AssignmentOperation.cs
/// <summary>
/// It performs a an assigment operation with a PropertyType type as left operand. 
/// </summary>
/// <param name="leftOperand">A ProperyType as left operand, the property is not read-only we'll do the operation with the PropertyTypeExpressin, the propoerty encapsulate</param>
/// <returns>result the evaluation of the operator with these two types if they satisfies the condition embebed in the code.
/// the property is not read-only we'll do the operation with the PropertyTypeExpressin, the propoerty encapsulate.
/// </returns>
It performs a an assigment operation with a PropertyType type as left operand.
It performs a an assigment operation with a PropertyType type as left operand .
public override object Exec(PropertyType leftOperand, object arg) {
            if (!leftOperand.MemberInfo.hasModifier(Modifier.CanWrite)) {
                ErrorManager.Instance.NotifyError(new PropertyWriteError(leftOperand.MemberInfo.MemberIdentifier, this.location));
                return null;
            }
            if (leftOperand.PropertyTypeExpression != null)
                return leftOperand.PropertyTypeExpression.AcceptOperation(new AssignmentOperation(this.rightOperand, this.op, null, this.unification, this.actualImplicitObject, this.location), arg);
            return null;
        }
public override object Exec ( PropertyType leftOperand , object arg ) { if ( ! leftOperand . MemberInfo . hasModifier ( Modifier . CanWrite ) ) { ErrorManager . Instance . NotifyError ( new PropertyWriteError ( leftOperand . MemberInfo . MemberIdentifier , this . location ) ) ; return null ; } if ( leftOperand . PropertyTypeExpression != null ) return leftOperand . PropertyTypeExpression . AcceptOperation ( new AssignmentOperation ( this . rightOperand , this . op , null , this . unification , this . actualImplicitObject , this . location ) , arg ) ; return null ; }
It performs a an assigment operation with a PropertyType type as left operand.
It performs a an assigment operation with a PropertyType type as left operand .
result the evaluation of the operator with these two types if they satisfies the condition embebed in the code.
the property is not read-only we'll do the operation with the PropertyTypeExpressin, the propoerty encapsulate.
result the evaluation of the operator with these two types if they satisfies the condition embebed in the code . the property is not read - only we ' ll do the operation with the PropertyTypeExpressin the propoerty encapsulate .
leftOperand
PropertyType
A ProperyType as left operand, the property is not read-only we'll do the operation with the PropertyTypeExpressin, the propoerty encapsulate
A ProperyType as left operand the property is not read - only we ' ll do the operation with the PropertyTypeExpressin the propoerty encapsulate
arg
object