17 using System.Collections.Generic;
23 namespace CodeGeneration {
49 this.ilStamentsCodeGeneration.WriteIndentation(indent);
50 this.ilStamentsCodeGeneration.WriteLine(
"Unbox\t{0}", type.ILType());
51 this.ilStamentsCodeGeneration.WriteLine(
"ldobj\t{0}", type.ILType());
55 #region CallVirt <token>
68 this.ilStamentsCodeGeneration.WriteIndentation(indent);
69 this.ilStamentsCodeGeneration.Write(
"CallVirt\t");
70 this.WriteCall(memberType, klass, member, arguments);
71 this.ilStamentsCodeGeneration.WriteLine();
RrotorCodeGenerator(TextWriter writer)
Constructor of CodeGenerator.
This class encapsulates the IL CLR code generator IL.
Abstract class that represents all different types.
Representa a method type.
override void UnboxAny(int indent, TypeExpression type)
Writes the Unbox and ldobj instruction
override void CallVirt(int indent, MethodType memberType, TypeExpression klass, string member, AST.CompoundExpression arguments)
Writes the CallVirt instruction.