docs: function generateExports(symbols) {
    const namespaces = {};
    const imports = [];
    let blocks = [];
    symbols.forEach(function(symbol) {
      const name = symbol.name;
      if (name.indexOf('#') == -1) {
        const imp = getImport(symbol);
        if (imp) {
          imports[getImport(symbol)] = true;
        }
        const block = formatSymbolExport(symbol, namespaces, imports);
        if (block !== blocks[blocks.length - 1]) {
          blocks.push(block);
        }
      }
    });
    const nsdefs = [];
    const ns = Object.keys(namespaces).sort();
    for (let i = 0, ii = ns.length; i < ii; ++i) {
      if (namespaces[ns[i]]) {
        nsdefs.push(`${ns[i]} = {};`);
      }
    }
    blocks = Object.keys(imports).concat('\nvar ol = {};\n', nsdefs.sort()).concat(blocks.sort());
    blocks.push('', 'export default ol;');
    return blocks.join('\n');
  }