예제 #1
0
 public void GenerateCode(Writer.Writer Writer, API api)
 {
     if (statements != null)
     {
         statements.GenerateCode(Writer, api);
     }
 }
예제 #2
0
 public override void GenerateCode(Writer.Writer Writer, API api)
 {
     Writer.WriteStringLine($"\t\tfor (");
     if (this.Initializer != null)
     {
         this.Initializer.GenerateCode(Writer, api);
     }
     Writer.WriteString(";");
     if (this.expression != null)
     {
         expression.GenerateCode(Writer, api);
     }
     Writer.WriteString(";");
     Writer.WriteStringLine(") {");
     if (this.StatementBlock != null)
     {
         StatementBlock.GenerateCode(Writer, api);
     }
     Writer.WriteStringLine("\t\t}");
 }