describeAdd method

String describeAdd()

Implementation

String describeAdd() {
  switch (this) {
    case StatementType.variableDeclarationStatement:
      return "Declare a new variable...";
    case StatementType.variableAssignmentStatement:
      return "Update an existing variable's value...";
    case StatementType.forLoopStatement:
      return "Add a for-loop...";
    case StatementType.whileLoopStatement:
      return "Add a while-loop...";
    case StatementType.ifElseStatement:
      return "Add a if-then-else decision structure...";
    case StatementType.customFunctionCallStatement:
      return "Call a custom function...";
    case StatementType.printStatement:
      return "Print to the console...";
    case StatementType.returnStatement:
      return "Return a value from your function...";
    case StatementType.statementBlockStatement:
      return "Add a statement block...";
    case StatementType.breakStatement:
      return "Exit the loop.";
    case StatementType.continueStatement:
      return "Skip the rest of the loop and restart from the top.";
  }
}