/// <summary> /// Adds to <see cref="Utilities.linesOfCode"/> the code generated by this block. /// Called by blocks that contain this UserControl. /// </summary> public void PrintCode() { CleanPossibleError(); Utilities.linesOfCode.Add(new CodeLine("for (", this, Utilities.linesOfCodeCount + 1)); Utilities.linesOfCodeCount++; ValuesInput.PrintCode(); ((CodeLine)Utilities.linesOfCode[Utilities.linesOfCodeCount - 1]).content += ") loops {"; instructions.PrintCode(); Utilities.linesOfCode.Add(new CodeLine("}", this, Utilities.linesOfCodeCount + 1)); Utilities.linesOfCodeCount++; }
/// <summary> /// Adds to <see cref="Utilities.linesOfCode"/> the code generated by this block. /// Called by blocks that contain this UserControl. /// </summary> public void PrintCode() { instructions.PrintCode(); }