class TrivialEvaluateRule extends CobolCheck {

  @Override
  public void visitNode(AstNode evaluateNode) {
    List<AstNode> whenClauses = evaluateNode.getChildren(getCobolGrammar().evaluateWhen);
    if (whenClauses.size() == 1) {
      reportIssue("Change this EVALUATE into an IF statement.").on(evaluateNode.getToken());
    }
  }

}