Inference/src/TypeSystem/Operations/AssignmentOperation.cs
/// <summary>
/// It performs a an assigment operation with a StringType as left operand.
/// </summary>
/// <param name="leftOperand">A StringType as left operand</param>
/// <returns>result the evaluation of the operator, in this case it can be =, and += operations, with these two types if they satisfies the condition embebed in the code.</returns>
It performs a an assigment operation with a StringType as left operand.
It performs a an assigment operation with a StringType as left operand .
public override object Exec(StringType leftOperand, object arg) {
            if (op == AssignmentOperator.Assign || op == AssignmentOperator.PlusAssign)
                return rightOperand.AcceptOperation(PromotionOperation.Create(leftOperand, this.op, this.methodAnalyzed, this.location), arg);
            ErrorManager.Instance.NotifyError(new OperationNotAllowedError(leftOperand.FullName, rightOperand.FullName, this.location));
            return null;
        }
public override object Exec ( StringType leftOperand , object arg ) { if ( op == AssignmentOperator . Assign || op == AssignmentOperator . PlusAssign ) return rightOperand . AcceptOperation ( PromotionOperation . Create ( leftOperand , this . op , this . methodAnalyzed , this . location ) , arg ) ; ErrorManager . Instance . NotifyError ( new OperationNotAllowedError ( leftOperand . FullName , rightOperand . FullName , this . location ) ) ; return null ; }
It performs a an assigment operation with a StringType as left operand.
It performs a an assigment operation with a StringType as left operand .
// * se podría aquí hacer un base.ReportError()?;
result the evaluation of the operator, in this case it can be =, and += operations, with these two types if they satisfies the condition embebed in the code.
result the evaluation of the operator in this case it can be = and + = operations with these two types if they satisfies the condition embebed in the code .
leftOperand
StringType
A StringType as left operand
A StringType as left operand
arg
object