Inference/src/CodeGeneration/VisitorCLRCodeGeneration.cs
/// <summary>
/// Obtains the type if the current argument by means of introspection
/// </summary>
/// <param name="index">index of the current argument</param>
/// <param name="argType">type of the current argument</param>
Obtains the type if the current argument by means of introspection
Obtains the type if the current argument by means of introspection
private void IntropectiveInvocationLoadArgument(int index, TypeExpression argType) {
            this.codeGenerator.dup(this.indent);
            this.codeGenerator.ldci4(this.indent, index);
            this.codeGenerator.ldtoken(this.indent, TypeMapping.Instance.GetBCLName(argType.ILType(), true));
            this.codeGenerator.Call(this.indent, "class", "[mscorlib]System.Type", "[mscorlib]System.Type", "GetTypeFromHandle", new string[] { "valuetype [mscorlib]System.RuntimeTypeHandle" });
            this.codeGenerator.stelemRef(this.indent);
        }
private void IntropectiveInvocationLoadArgument ( int index , TypeExpression argType ) { this . codeGenerator . dup ( this . indent ) ; this . codeGenerator . ldci4 ( this . indent , index ) ; this . codeGenerator . ldtoken ( this . indent , TypeMapping . Instance . GetBCLName ( argType . ILType ( ) , true ) ) ; this . codeGenerator . Call ( this . indent , " " , " " , " " , " " , new string [ ] { " " } ) ; this . codeGenerator . stelemRef ( this . indent ) ; }
Obtains the type if the current argument by means of introspection
Obtains the type if the current argument by means of introspection
index
int
index of the current argument
index of the current argument
argType
TypeExpression
type of the current argument
type of the current argument