private boolean visitClass(NodeTraversal t, Node n) {
    Node superclass = n.getSecondChild();
    if (superclass.isEmpty()) {
      return true;
    }

    Node constructor = NodeUtil.getEs6ClassConstructorMemberFunctionDef(n);
    if (constructor == null) {
      return true;
    }

    FindSuperOrReturn finder = new FindSuperOrReturn();
    NodeTraversal.traverse(compiler, NodeUtil.getFunctionBody(constructor.getOnlyChild()), finder);

    if (!finder.found) {
      t.report(constructor, MISSING_CALL_TO_SUPER);
      return false;
    }
    return true;
  }
private boolean visitClass ( NodeTraversal t , Node n ) { Node superclass = n . getSecondChild ( ) ; if ( superclass . isEmpty ( ) ) { return true ; } Node constructor = NodeUtil . getEs6ClassConstructorMemberFunctionDef ( n ) ; if ( constructor == null ) { return true ; } FindSuperOrReturn finder = new FindSuperOrReturn ( ) ; NodeTraversal . traverse ( compiler , NodeUtil . getFunctionBody ( constructor . getOnlyChild ( ) ) , finder ) ; if ( ! finder . found ) { t . report ( constructor , MISSING_CALL_TO_SUPER ) ; return false ; } return true ; }
@return Whether to continue traversing this class