code: static boolean isControlStructureCodeBlock(Node parent, Node n) {
      switch (parent.getToken()) {
        case DO:
          return parent.getFirstChild() == n;
        case TRY:
          return parent.getFirstChild() == n || parent.getLastChild() == n;
        case FOR:
        case FOR_IN:
        case FOR_OF:
        case FOR_AWAIT_OF:
        case WHILE:
        case LABEL:
        case WITH:
        case CATCH:
          return parent.getLastChild() == n;
        case IF:
        case SWITCH:
        case CASE:
          return parent.getFirstChild() != n;
        case DEFAULT_CASE:
          return true;
        default:
          checkState(isControlStructure(parent), parent);
          return false;
      }
    }
docs: Determines whether the given node is code node for FOR, DO,
  WHILE, WITH, or IF node.