addExportStatement(statements) {
    let exportProperties = this.getExportProperties();
    let exportObject = createObjectLiteral(exportProperties);
    if (this.exportVisitor.starExports.length) {
      let starExports = this.exportVisitor.starExports;
      let starIdents = starExports.map((moduleSpecifier) => {
        return createIdentifierExpression(
          this.getTempVarNameForModuleSpecifier(moduleSpecifier));
      });

      if (exportProperties.length)
        starIdents.push(exportObject);

      // let ${exports} = {};
      let exports = this.getTempIdentifier();
      statements.push(createVariableStatement(LET, exports, createObjectLiteral("")));

      let key = this.getTempIdentifier();
      starIdents.forEach((starIdent) => {
        statements.push(
          // for
          createForInStatement(
            // let ${key}
            createVariableDeclarationList(LET, key, null),
            // in ${starIdent}
            starIdent,
            // if
            createIfStatement(
              // (${starIdent}.hasOwnProperty(${key}))
              createCallExpression(
                createMemberExpression(starIdent, 'hasOwnProperty'),
                createArgumentList([createIdentifierExpression(key)])),
              // true part: $exports[${key}] = $starIdent[${key}]
              createAssignmentStatement(
                createMemberLookupExpression(
                  createIdentifierExpression(exports),
                  createIdentifierExpression(key)),
                createMemberLookupExpression(
                  starIdent,
                  createIdentifierExpression(key)))))
        );
      });
      // return ${exports}
      statements.push(createReturnStatement(createIdentifierExpression(exports)));
      return statements;
    }
    statements.push(parseStatement `return ${exportObject}`);
    return statements;
  }
Handles importing modules that have `export * from './path/to/foo.js'` declarations.
Generates the following output:

forEach $starIdent
 let ${exports} = {};
 for (let ${key} in ${starIdent})
   if (${starIdent}.hasOwnProperty(${key}))
     $exports[${key}] = $starIdent[${key}];
 return ${exports};

@returns {Array} statements