Beispiel #1
0
 public void Compile(AssemblyGen assembly)
 {
     if (imports != null)
     {
         foreach (var lib in Imports)
         {
             TypeContext.Register(assembly.Context, lib.Key, lib.Value);
         }
     }
     foreach (var member in Members)
     {
         switch (member.DeclarationType)
         {
         case DeclarationType.Class:
             ((TypeDeclaration)member).Compile(assembly);
             break;
         }
     }
 }
 public override void GenerateCode(MethodBodyGenerator generator)
 {
     TypeContext.Register(generator.Context, Library, Imports);
 }