Inference/src/CodeGeneration/Operations/CGRuntimeCheckArgumentOperation.cs
/// <summary>
/// Checks if the IntType parameter passed (operand) matches with the proper argument.
/// It makes to 2 calls to CGRuntimeCheckTypeExpressionOperation operation. One using a CharType object, and the 
/// other with IntType object, with no try to convert to double (toDouble parameter = false)
/// </summary>
/// <param name="operand">IntType parameter to check</param>
/// <returns></returns>
Checks if the IntType parameter passed (operand) matches with the proper argument.
It makes to 2 calls to CGRuntimeCheckTypeExpressionOperation operation. One using a CharType object, and the
other with IntType object, with no try to convert to double (toDouble parameter = false)
Checks if the IntType parameter passed ( operand ) matches with the proper argument . It makes to 2 calls to CGRuntimeCheckTypeExpressionOperation operation . One using a CharType object and the other with IntType object with no try to convert to double ( toDouble parameter = false )
public override object Exec(IntType operand, object arg) {
            string nextArgument = this.codeGenerator.NewLabel;
            CharType.Instance.AcceptOperation(new CGRuntimeCheckTypeExpressionOperation<T>(this.indent, this.codeGenerator, nextArgument, false), arg);
            IntType.Instance.AcceptOperation(new CGRuntimeCheckTypeExpressionOperation<T>(this.indent, this.codeGenerator, nextArgument, false), arg);
            this.nextMethod.Add(this.codeGenerator.NewLabel);
            this.codeGenerator.br(this.indent, this.nextMethod[this.nextMethod.Count - 1]);
            this.codeGenerator.WriteLabel(this.indent, nextArgument);
            return null;
        }
public override object Exec ( IntType operand , object arg ) { string nextArgument = this . codeGenerator . NewLabel ; CharType . Instance . AcceptOperation ( new CGRuntimeCheckTypeExpressionOperation < T > ( this . indent , this . codeGenerator , nextArgument , false ) , arg ) ; IntType . Instance . AcceptOperation ( new CGRuntimeCheckTypeExpressionOperation < T > ( this . indent , this . codeGenerator , nextArgument , false ) , arg ) ; this . nextMethod . Add ( this . codeGenerator . NewLabel ) ; this . codeGenerator . br ( this . indent , this . nextMethod [ this . nextMethod . Count - 1 ] ) ; this . codeGenerator . WriteLabel ( this . indent , nextArgument ) ; return null ; }
Checks if the IntType parameter passed (operand) matches with the proper argument.
Checks if the IntType parameter passed ( operand ) matches with the proper argument .
None
operand
IntType
IntType parameter to check
IntType parameter to check
arg
object