getTooltip method

String getTooltip()

Retrieve a short, explanatory description of the StatementType.

Implementation

String getTooltip() {
  return switch (this) {
    StatementType.variableDeclarationStatement => 'Declare Variable',
    StatementType.variableAssignmentStatement => 'Update Variable',
    StatementType.forLoopStatement => 'For Loop',
    StatementType.whileLoopStatement => 'While Loop',
    StatementType.ifElseStatement => 'If-Else',
    StatementType.breakStatement => 'Break',
    StatementType.continueStatement => 'Continue',
    StatementType.customFunctionCallStatement => 'Call Function',
    StatementType.returnStatement => 'Return',
    StatementType.printStatement => "Print",
    _ => toString(),
  };
}