Inference/src/CodeGeneration/ILCodeGenerator.cs
/// <summary>
/// Stores the information of the local variable.
/// </summary>
/// <param name="name">Local variable identifier.</param>
/// <param name="type">Local variable type.</param>
Stores the information of the local variable.
Stores the information of the local variable .
public override void AddLocalVariable(string name, TypeExpression type) {
            if (this.currentLocalVars.Length == 0)
                LocalVariableIndex = 0;
            else
                this.currentLocalVars.Append(",");
            this.currentLocalVars.AppendLine();
            this.currentLocalVars.AppendFormat("\t\t\t[{0}] {1} {2}", LocalVariableIndex++, type.ILType(), name);
        }
public override void AddLocalVariable ( string name , TypeExpression type ) { if ( this . currentLocalVars . Length == 0 ) LocalVariableIndex = 0 ; else this . currentLocalVars . Append ( " " ) ; this . currentLocalVars . AppendLine ( ) ; this . currentLocalVars . AppendFormat ( " \t \t \t " , LocalVariableIndex ++ , type . ILType ( ) , name ) ; }
Stores the information of the local variable.
Stores the information of the local variable .
name
string
Local variable identifier.
Local variable identifier .
type
TypeExpression
Local variable type.
Local variable type .