Example #1
0
 public override void GenerateCode(ICodeGen gen)
 {
     if (this.GetType() is Func)
     {
         if (this.GetType() is ExternFunc)
         {
             gen.Import(this);
         }
         else
         {
             this.GetType().GenerateCode(gen);
         }
     }
     else
     {
         gen.Decl(this);
     }
 }
Example #2
0
 public override void GenerateCode(ICodeGen gen)
 {
     if (this.GetType() is Func)
     {
         if (this.GetType() is ExternFunc)
         {
             gen.Import(this);
         }
         else
         {
             this.GetType().GenerateCode(gen);
         }
     }
     else
     {
         gen.Decl(this);
     }
 }