forEach(callback) {
    const db = this._conn;
    return new Promise((resolve, reject) => {
      db.each(
        `SELECT hash, ast FROM parsed_source`,
        function (err, row) {
          if (err) return reject(err);

          callback(new SourceFileFromCorpus(row));
        },
        function (err, numberOfRows) {
          if (err) reject(err);
          else resolve(numberOfRows);
        }
      );
    });
  }
/**
   * Calls the given function for each source file in the corpus.
   */
Calls the given function for each source file in the corpus.
Calls the given function for each source file in the corpus .
forEach(callback) {
    const db = this._conn;
    return new Promise((resolve, reject) => {
      db.each(
        `SELECT hash, ast FROM parsed_source`,
        function (err, row) {
          if (err) return reject(err);
          callback(new SourceFileFromCorpus(row));
        },
        function (err, numberOfRows) {
          if (err) reject(err);
          else resolve(numberOfRows);
        }
      );
    });
  }
forEach ( callback ) { const db = this . _conn ; return new Promise ( ( resolve , reject ) => { db . each ( ` ` , function ( err , row ) { if ( err ) return reject ( err ) ; callback ( new SourceFileFromCorpus ( row ) ) ; } , function ( err , numberOfRows ) { if ( err ) reject ( err ) ; else resolve ( numberOfRows ) ; } ) ; } ) ; }
Calls the given function for each source file in the corpus.
Calls the given function for each source file in the corpus .